Skip to contentSkip to conversation

CVE-2023-53521: scsi: ses: Fix slab-out-of-bounds in ses_intf_remove()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 1, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

scsi: ses: Fix slab-out-of-bounds in ses_intf_remove()

A fix for:

BUG: KASAN: slab-out-of-bounds in ses_intf_remove+0x23f/0x270 [ses]
Read of size 8 at addr ffff88a10d32e5d8 by task rmmod/12013

When edev->components is zero, accessing edev->component[0] members is wrong.

The Linux kernel CVE team has assigned CVE-2023-53521 to this issue.

Affected and fixed versions
===========================

	Fixed in 4.14.308 with commit 76f7050537476ac062ec23a544fbca8270f2d08b
	Fixed in 4.19.276 with commit 87e47be38d205df338c52ead43f23b2864567423
	Fixed in 5.4.235 with commit 40af9a6deed723485e05b7d3255a28750692e8db
	Fixed in 5.10.173 with commit 8f9542cad6c27297c8391de3a659f0b7948495d0
	Fixed in 5.15.99 with commit 0595cdb587726b4f0fa780eb7462e3679d141e82
	Fixed in 6.1.16 with commit 82143faf01dda831b89eccef60c39ef8575ab08a
	Fixed in 6.2.3 with commit 2fb1fa8425cce2dc4dce298275d22d7077694b73
	Fixed in 6.3 with commit 578797f0c8cbc2e3ec5fc0dab87087b4c7073686

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-53521

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/76f7050537476ac062ec23a544fbca8270f2d08b
	https://git.kernel.org/stable/c/87e47be38d205df338c52ead43f23b2864567423
	https://git.kernel.org/stable/c/40af9a6deed723485e05b7d3255a28750692e8db
	https://git.kernel.org/stable/c/8f9542cad6c27297c8391de3a659f0b7948495d0
	https://git.kernel.org/stable/c/0595cdb587726b4f0fa780eb7462e3679d141e82
	https://git.kernel.org/stable/c/82143faf01dda831b89eccef60c39ef8575ab08a
	https://git.kernel.org/stable/c/2fb1fa8425cce2dc4dce298275d22d7077694b73
	https://git.kernel.org/stable/c/578797f0c8cbc2e3ec5fc0dab87087b4c7073686