From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58F43217673 for ; Wed, 26 Feb 2025 02:14:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536088; cv=none; b=f4Cq8F4JYBgKRYhaomLqUbXuLbusss3AvzPaelKDx/p5WXJTUswHxADoT/RCTGA+81HJ5MtrcbjUqdT8jh5JHDAvS0aRJ7Dtppf9Zs5vR9e4Gc4e4SKvMeU478EvhWnl7yozgXLWAxR7WVBajXsDoC7QDfHWm8ozH359p1/KKS8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536088; c=relaxed/simple; bh=UyulUZc2feLTItJl0i6JBS2qvJD36+t6K1ubgPLdpOQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Dn/kyhUPSAeNHOneIzHHoto9SXMc9iydPsziLAoWSf4IFue7Up1lcGwCXwpi4L2Sn2qYixHQiO9B1aOJAL0IpbHig0851UdagDA6YIaW0cql7eMZv7ltgNM91utJlvrWac2b8bC3egKiqF1bnf6k7qPsP/v6ZPpKztJ8nxNy6jY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=flHE6njI; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="flHE6njI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28AE8C4CEDD; Wed, 26 Feb 2025 02:14:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536088; bh=UyulUZc2feLTItJl0i6JBS2qvJD36+t6K1ubgPLdpOQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=flHE6njIMW//HeCZ9afZ+7YT807QCyt2bTICIA2KIkyNNHQardentHtBw+hweXKMq XSs9zB2nuhjx7tTpc/csl84dr8Ib27jxuHpOMicXGv0N0b3NF9+I8vYwWyD3ENbq7M fZF5kckwbYh9u4XFl/v1ITp+fA6pAEx8sDHVUx34= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49478: media: pvrusb2: fix array-index-out-of-bounds in pvr2_i2c_core_init Date: Wed, 26 Feb 2025 03:12:32 +0100 Message-ID: <2025022604-CVE-2022-49478-4f2d@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3801; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UyulUZc2feLTItJl0i6JBS2qvJD36+t6K1ubgPLdpOQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yv9M3XCW0+XRFR6RxYvULh227Wdemv3z4q89fRHNM yJbFi1i6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJBBUyLDh37GDGjCe77phr +PS6/PJm4mOxUWaYZ7ew7MjKCO5rZtUH5/iIX7xjFJ9SCgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: media: pvrusb2: fix array-index-out-of-bounds in pvr2_i2c_core_init Syzbot reported that -1 is used as array index. The problem was in missing validation check. hdw->unit_number is initialized with -1 and then if init table walk fails this value remains unchanged. Since code blindly uses this member for array indexing adding sanity check is the easiest fix for that. hdw->workpoll initialization moved upper to prevent warning in __flush_work. The Linux kernel CVE team has assigned CVE-2022-49478 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.18 with commit d855497edbfbf9e19a17f4a1154bca69cb4bd9ba and fixed in 4.9.318 with commit 4351bfe36aba9fa7dc9d68d498d25d41a0f45e67 Issue introduced in 2.6.18 with commit d855497edbfbf9e19a17f4a1154bca69cb4bd9ba and fixed in 4.14.283 with commit 2e004fe914b243db41fa96f9e583385f360ea58e Issue introduced in 2.6.18 with commit d855497edbfbf9e19a17f4a1154bca69cb4bd9ba and fixed in 4.19.247 with commit a3660e06675bccec4bf149c7229ea1d491ba10d7 Issue introduced in 2.6.18 with commit d855497edbfbf9e19a17f4a1154bca69cb4bd9ba and fixed in 5.4.198 with commit 1310fc3538dcc375a2f46ef0a438512c2ca32827 Issue introduced in 2.6.18 with commit d855497edbfbf9e19a17f4a1154bca69cb4bd9ba and fixed in 5.10.121 with commit a3304766d9384886e6d3092c776273526947a2e9 Issue introduced in 2.6.18 with commit d855497edbfbf9e19a17f4a1154bca69cb4bd9ba and fixed in 5.15.46 with commit 3309c2c574e13b21b44729f5bdbf21f60189b79a Issue introduced in 2.6.18 with commit d855497edbfbf9e19a17f4a1154bca69cb4bd9ba and fixed in 5.17.14 with commit f99a8b1ec0eddc2931aeaa4f490277a15b39f511 Issue introduced in 2.6.18 with commit d855497edbfbf9e19a17f4a1154bca69cb4bd9ba and fixed in 5.18.3 with commit 24e807541e4a9263ed928e6ae3498de3ad43bd1e Issue introduced in 2.6.18 with commit d855497edbfbf9e19a17f4a1154bca69cb4bd9ba and fixed in 5.19 with commit 471bec68457aaf981add77b4f590d65dd7da1059 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2022-49478 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/media/usb/pvrusb2/pvrusb2-hdw.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/4351bfe36aba9fa7dc9d68d498d25d41a0f45e67 https://git.kernel.org/stable/c/2e004fe914b243db41fa96f9e583385f360ea58e https://git.kernel.org/stable/c/a3660e06675bccec4bf149c7229ea1d491ba10d7 https://git.kernel.org/stable/c/1310fc3538dcc375a2f46ef0a438512c2ca32827 https://git.kernel.org/stable/c/a3304766d9384886e6d3092c776273526947a2e9 https://git.kernel.org/stable/c/3309c2c574e13b21b44729f5bdbf21f60189b79a https://git.kernel.org/stable/c/f99a8b1ec0eddc2931aeaa4f490277a15b39f511 https://git.kernel.org/stable/c/24e807541e4a9263ed928e6ae3498de3ad43bd1e https://git.kernel.org/stable/c/471bec68457aaf981add77b4f590d65dd7da1059