CVE-2023-7324: scsi: ses: Fix possible addl_desc_ptr out-of-bounds accesses
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
scsi: ses: Fix possible addl_desc_ptr out-of-bounds accesses
Sanitize possible addl_desc_ptr out-of-bounds accesses in ses_enclosure_data_process().
The Linux kernel CVE team has assigned CVE-2023-7324 to this issue.
Affected and fixed versions
===========================
Fixed in 4.14.308 with commit af5114d824f3511a69d68beff49ca9a7c32d44e0 Fixed in 4.19.276 with commit a156a262c543fa5ff30bcb2fc6ad1a95cb4ab57a Fixed in 5.4.235 with commit 8e454aba72805241239caf8ba9b8e5a6be772b96 Fixed in 5.10.173 with commit 2ecd344173a5663d523433819da0484cb268b186 Fixed in 5.15.99 with commit 384aa697d8f2a28b5e962f5292cdfd2e528b5df7 Fixed in 6.1.16 with commit 27067c672980b497cc34048b69b12820851ac6b9 Fixed in 6.2.3 with commit b91ef85a32fdba45fcbad87dd526d73d3b6d857d Fixed in 6.3 with commit db95d4df71cb55506425b6e4a5f8d68e3a765b63
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-2023-7324
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/scsi/ses.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/af5114d824f3511a69d68beff49ca9a7c32d44e0 https://git.kernel.org/stable/c/a156a262c543fa5ff30bcb2fc6ad1a95cb4ab57a https://git.kernel.org/stable/c/8e454aba72805241239caf8ba9b8e5a6be772b96 https://git.kernel.org/stable/c/2ecd344173a5663d523433819da0484cb268b186 https://git.kernel.org/stable/c/384aa697d8f2a28b5e962f5292cdfd2e528b5df7 https://git.kernel.org/stable/c/27067c672980b497cc34048b69b12820851ac6b9 https://git.kernel.org/stable/c/b91ef85a32fdba45fcbad87dd526d73d3b6d857d https://git.kernel.org/stable/c/db95d4df71cb55506425b6e4a5f8d68e3a765b63