From patchwork Fri Feb 18 21:24:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Dapper CVE-2010-4163: block: check for proper length of iov entries earlier in blk_rq_map_user_iov() From: Tim Gardner X-Patchwork-Id: 83655 Message-Id: <20110218212404.9705BF89F8@sepang.rtg.net> To: kernel-team@lists.ubuntu.com Date: Fri, 18 Feb 2011 14:24:04 -0700 (MST) The following changes since commit 352701fdc50086ac0db65862e16dc8b20918d174: Steve Conklin (1): UBUNTU: Ubuntu-2.6.15-55.93 are available in the git repository at: git://kernel.ubuntu.com/rtg/ubuntu-dapper.git CVE-2010-4163 Tim Gardner (1): block: check for proper length of iov entries earlier in blk_rq_map_user_iov(), CVE-2010-4163 fs/bio.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) >From a80bcfd393b668c43d9a8cd2b00b93fd6b31fa00 Mon Sep 17 00:00:00 2001 From: Tim Gardner Date: Fri, 18 Feb 2011 14:22:11 -0700 Subject: [PATCH] block: check for proper length of iov entries earlier in blk_rq_map_user_iov(), CVE-2010-4163 BugLink: http://bugs.launchpad.net/bugs/721504 CVE-2010-4163 commit 9284bcf checks for proper length of iov entries in blk_rq_map_user_iov(). But if the map is unaligned, kernel will break out the loop without checking for the proper length. So we need to check the proper length before the unalign check. Signed-off-by: Xiaotian Feng Cc: stable@kernel.org Signed-off-by: Jens Axboe (backported from commit 5478755616ae2ef1ce144dded589b62b2a50d575) Signed-off-by: Tim Gardner Acked-by: Brad Figg --- fs/bio.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)