CVE-2023-53675: scsi: ses: Fix possible 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 desc_ptr out-of-bounds accesses
Sanitize possible desc_ptr out-of-bounds accesses in ses_enclosure_data_process().
The Linux kernel CVE team has assigned CVE-2023-53675 to this issue.
Affected and fixed versions
===========================
Fixed in 4.14.308 with commit 72021ae61a2bc6ca73cd593e255a10ed5f5dc5e7 Fixed in 4.19.276 with commit cffe09ca0555e235a42d6fa065e463c4b3d5b657 Fixed in 5.4.235 with commit 79ec5dd5fb07ecaea2f978c2d7a9f2f3526e4d19 Fixed in 5.10.173 with commit c315560e3ef77c1d822249f1743e647dc9c9912a Fixed in 5.15.99 with commit 584892fd29a41ef424a148118a3103b16b94fb8c Fixed in 6.1.16 with commit 414418abc19fa4ccf730d273061a426c07a061d6 Fixed in 6.2.3 with commit 4b8cae410472653a59e15af62c57c49b8e0a1201 Fixed in 6.3 with commit 801ab13d50cf3d26170ee073ea8bb4eececb76ab
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-53675
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/72021ae61a2bc6ca73cd593e255a10ed5f5dc5e7 https://git.kernel.org/stable/c/cffe09ca0555e235a42d6fa065e463c4b3d5b657 https://git.kernel.org/stable/c/79ec5dd5fb07ecaea2f978c2d7a9f2f3526e4d19 https://git.kernel.org/stable/c/c315560e3ef77c1d822249f1743e647dc9c9912a https://git.kernel.org/stable/c/584892fd29a41ef424a148118a3103b16b94fb8c https://git.kernel.org/stable/c/414418abc19fa4ccf730d273061a426c07a061d6 https://git.kernel.org/stable/c/4b8cae410472653a59e15af62c57c49b8e0a1201 https://git.kernel.org/stable/c/801ab13d50cf3d26170ee073ea8bb4eececb76ab