From: James Morris Date: Tue, 03 Oct 2017 11:03:46 +0000 Subject: Re: [PATCH 6/7] ecryptfs: fix out-of-bounds read of key payload Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit List-Id: References: <20170928212602.41744-1-ebiggers3@gmail.com> <20170928212602.41744-7-ebiggers3@gmail.com> In-Reply-To: <20170928212602.41744-7-ebiggers3@gmail.com> To: Eric Biggers Cc: keyrings@vger.kernel.org, David Howells , Michael Halcrow , linux-cachefs@redhat.com, ecryptfs@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-security-module@vger.kernel.org, Eric Biggers , stable@vger.kernel.org On Thu, 28 Sep 2017, Eric Biggers wrote: > From: Eric Biggers > > eCryptfs blindly casts the user-supplied key payload to a > 'struct ecryptfs_auth_tok' without validating that the payload does, in > fact, have the size of a 'struct ecryptfs_auth_tok'. Fix it. > > Fixes: 237fead61998 ("[PATCH] ecryptfs: fs/Makefile and fs/Kconfig") > Cc: [v2.6.19+] > Signed-off-by: Eric Biggers Reviewed-by: James Morris -- James Morris