From patchwork Wed Apr 20 20:23:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leann Ogasawara X-Patchwork-Id: 92318 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 386C0B701E for ; Thu, 21 Apr 2011 06:23:22 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1QCdvg-0000iD-R1; Wed, 20 Apr 2011 20:23:16 +0000 Received: from adelie.canonical.com ([91.189.90.139]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1QCdvf-0000i1-QR for kernel-team@lists.ubuntu.com; Wed, 20 Apr 2011 20:23:15 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QCdvf-0007fe-NH for ; Wed, 20 Apr 2011 20:23:15 +0000 Received: from c-76-105-148-120.hsd1.or.comcast.net ([76.105.148.120] helo=[192.168.1.4]) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QCdvf-0000ok-BQ for kernel-team@lists.ubuntu.com; Wed, 20 Apr 2011 20:23:15 +0000 Subject: [Hardy CVE-2011-0521] [media] [v3,media] av7110: check for negative array offset, CVE-2011-0521 From: Leann Ogasawara To: kernel-team Date: Wed, 20 Apr 2011 13:23:07 -0700 Message-ID: <1303330987.2050.10.camel@emiko> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com The following changes since commit 62419a42fd4f8a418e90ca0d474eae77c138152e: Tim Gardner (1): UBUNTU: [Config] remove generated files are available in the git repository at: git://kernel.ubuntu.com/ogasawara/ubuntu-hardy.git CVE-2011-0521 Dan Carpenter (1): [media] [v3,media] av7110: check for negative array offset, CVE-2011-0521 drivers/media/dvb/ttpci/av7110_ca.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From 28700f242783963aa5025036050fb3a2f50c51d1 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 7 Jan 2011 16:41:54 -0300 Subject: [PATCH] [media] [v3,media] av7110: check for negative array offset, CVE-2011-0521 BugLink: http://bugs.launchpad.net/bugs/767526 CVE-2011-0521 info->num comes from the user. It's type int. If the user passes in a negative value that would cause memory corruption. Signed-off-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab (cherry picked from commit cb26a24ee9706473f31d34cc259f4dcf45cd0644) Signed-off-by: Leann Ogasawara Acked-by: Brad Figg Acked-by: Stefan Bader --- drivers/media/dvb/ttpci/av7110_ca.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/dvb/ttpci/av7110_ca.c b/drivers/media/dvb/ttpci/av7110_ca.c index c58e3fc..1e89adc 100644 --- a/drivers/media/dvb/ttpci/av7110_ca.c +++ b/drivers/media/dvb/ttpci/av7110_ca.c @@ -277,7 +277,7 @@ static int dvb_ca_ioctl(struct inode *inode, struct file *file, { ca_slot_info_t *info=(ca_slot_info_t *)parg; - if (info->num > 1) + if (info->num < 0 || info->num > 1) return -EINVAL; av7110->ci_slot[info->num].num = info->num; av7110->ci_slot[info->num].type = FW_CI_LL_SUPPORT(av7110->arm_app) ?