From patchwork Wed Apr 20 20:23:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leann Ogasawara X-Patchwork-Id: 92317 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 67AE1B701E for ; Thu, 21 Apr 2011 06:23:19 +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 1QCdva-0000hI-Dm; Wed, 20 Apr 2011 20:23:10 +0000 Received: from adelie.canonical.com ([91.189.90.139]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1QCdvZ-0000hB-4r for kernel-team@lists.ubuntu.com; Wed, 20 Apr 2011 20:23:09 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QCdvZ-0007au-1I for ; Wed, 20 Apr 2011 20:23:09 +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 1QCdvY-0000oh-LQ for kernel-team@lists.ubuntu.com; Wed, 20 Apr 2011 20:23:09 +0000 Subject: [Dapper 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:05 -0700 Message-ID: <1303330985.2050.9.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 a6abc5582f64808c74c4973590bc5cbf8d67cead: Dan Rosenberg (1): irda: prevent integer underflow in IRLMP_ENUMDEVICES, CVE-2010-4529 are available in the git repository at: git://kernel.ubuntu.com/ogasawara/ubuntu-dapper.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 ab564569938b086bdc8fce1b189a757cd2683d1b 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 6079e88..873895a 100644 --- a/drivers/media/dvb/ttpci/av7110_ca.c +++ b/drivers/media/dvb/ttpci/av7110_ca.c @@ -280,7 +280,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) ?