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 9D1EF1DE2A5 for ; Mon, 6 Jan 2025 16:21:21 +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=1736180481; cv=none; b=S6GaqwmPkHuJgPY7HBW/s+0gtlSf0IgITWlPVRXgZEzmPinH4K3F9ujoP+gBZ9Q8TOk0S7p/sZHMqw/RCmOlx86wnLvVrFdtB2ELE1GiHT67HMEcW7G0y4pln0ajvZJrR5AeE8iNTfcf1JYo9l0hzaVvfQYeOr9Fsgf/hzM+qjo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736180481; c=relaxed/simple; bh=vQERJnY9R5XEO7ikMWhdxwErGsnhsfcnjeSwVgHCIZA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ShBHEeM4E0bvnB3f6Zs7jLr5A7m7uWw5w048kr84I5ZgcqAi6MSNoh8ROiHx2A5vHETjVX92sM2/Cs0QGH3ka6w60q+yXeVfeovpgeHZga35br5Jv1cjoiRjbFgNT3mvXj0y0gnESImsTjibwtHhHsfPq/RJrOPenWC4lRh/Svc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EuMErbqL; 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="EuMErbqL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B90BCC4CED6; Mon, 6 Jan 2025 16:21:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736180481; bh=vQERJnY9R5XEO7ikMWhdxwErGsnhsfcnjeSwVgHCIZA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EuMErbqL3f8RHs4P3fnLGemeCl4DXcSBN6JYnmVhorcl+Y5+72IHDdgHTsS4ehbke 7ZtAxSaPJ1r6woqxID2fQVDNdGCPU9d4dS8xQi5k47nGRg5Lnvkl8ObvyAX8BRKFrt 5mNJ781QHpRCethaGes2D/2PDLlHZswHWhqhhZQM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56769: media: dvb-frontends: dib3000mb: fix uninit-value in dib3000_write_reg Date: Mon, 6 Jan 2025 17:21:03 +0100 Message-ID: <2025010657-CVE-2024-56769-021a@gregkh> X-Mailer: git-send-email 2.47.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=3566; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vQERJnY9R5XEO7ikMWhdxwErGsnhsfcnjeSwVgHCIZA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk1TC9P1T0Qm/hl2fVvxsfYe3aUv5YofOLPqKX9LjvIf NbWg5/6OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiadcYFuww0+XrOB0873/H 9OLN9udnH51tEcIwz1Q8c8Vvi7C9cgcyNp9az2ZpO3HLVgA= 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: dvb-frontends: dib3000mb: fix uninit-value in dib3000_write_reg Syzbot reports [1] an uninitialized value issue found by KMSAN in dib3000_read_reg(). Local u8 rb[2] is used in i2c_transfer() as a read buffer; in case that call fails, the buffer may end up with some undefined values. Since no elaborate error handling is expected in dib3000_write_reg(), simply zero out rb buffer to mitigate the problem. [1] Syzkaller report dvb-usb: bulk message failed: -22 (6/0) ===================================================== BUG: KMSAN: uninit-value in dib3000mb_attach+0x2d8/0x3c0 drivers/media/dvb-frontends/dib3000mb.c:758 dib3000mb_attach+0x2d8/0x3c0 drivers/media/dvb-frontends/dib3000mb.c:758 dibusb_dib3000mb_frontend_attach+0x155/0x2f0 drivers/media/usb/dvb-usb/dibusb-mb.c:31 dvb_usb_adapter_frontend_init+0xed/0x9a0 drivers/media/usb/dvb-usb/dvb-usb-dvb.c:290 dvb_usb_adapter_init drivers/media/usb/dvb-usb/dvb-usb-init.c:90 [inline] dvb_usb_init drivers/media/usb/dvb-usb/dvb-usb-init.c:186 [inline] dvb_usb_device_init+0x25a8/0x3760 drivers/media/usb/dvb-usb/dvb-usb-init.c:310 dibusb_probe+0x46/0x250 drivers/media/usb/dvb-usb/dibusb-mb.c:110 ... Local variable rb created at: dib3000_read_reg+0x86/0x4e0 drivers/media/dvb-frontends/dib3000mb.c:54 dib3000mb_attach+0x123/0x3c0 drivers/media/dvb-frontends/dib3000mb.c:758 ... The Linux kernel CVE team has assigned CVE-2024-56769 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.19 with commit 74340b0a8bc60b400c7e5fe4950303aa6f914d16 and fixed in 6.1.123 with commit 3876e3a1c31a58a352c6bf5d2a90e3304445a637 Issue introduced in 2.6.19 with commit 74340b0a8bc60b400c7e5fe4950303aa6f914d16 and fixed in 6.6.69 with commit 1d6de21f00293d819b5ca6dbe75ff1f3b6392140 Issue introduced in 2.6.19 with commit 74340b0a8bc60b400c7e5fe4950303aa6f914d16 and fixed in 6.12.8 with commit c1197c1457bb7098cf46366e898eb52b41b6876a Issue introduced in 2.6.19 with commit 74340b0a8bc60b400c7e5fe4950303aa6f914d16 and fixed in 6.13-rc4 with commit 2dd59fe0e19e1ab955259978082b62e5751924c7 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-2024-56769 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/dvb-frontends/dib3000mb.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/3876e3a1c31a58a352c6bf5d2a90e3304445a637 https://git.kernel.org/stable/c/1d6de21f00293d819b5ca6dbe75ff1f3b6392140 https://git.kernel.org/stable/c/c1197c1457bb7098cf46366e898eb52b41b6876a https://git.kernel.org/stable/c/2dd59fe0e19e1ab955259978082b62e5751924c7