Skip to contentSkip to conversation

CVE-2026-53021: scsi: target: core: Fix integer overflow in UNMAP bounds check

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 24

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: target: core: Fix integer overflow in UNMAP bounds check

sbc_execute_unmap() checks LBA + range does not exceed the device capacity, but does not guard against LBA + range wrapping around on 64-bit overflow.

Add an overflow check matching the pattern already used for WRITE_SAME in the same file.

The Linux kernel CVE team has assigned CVE-2026-53021 to this issue.

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

	Issue introduced in 3.10 with commit 86d7182985d25900929adce14fffd729cc8c6fb8 and fixed in 5.10.258 with commit c08ab702c4699c6efb9d60bdb15b73e7a627ee7e
	Issue introduced in 3.10 with commit 86d7182985d25900929adce14fffd729cc8c6fb8 and fixed in 5.15.209 with commit 2e1ed9a7b6ea5bfefb5d80a02b1c71c7dee1f0dd
	Issue introduced in 3.10 with commit 86d7182985d25900929adce14fffd729cc8c6fb8 and fixed in 6.1.175 with commit 5efc3ef4758f8d98c257419fa21daca3227de61a
	Issue introduced in 3.10 with commit 86d7182985d25900929adce14fffd729cc8c6fb8 and fixed in 6.6.141 with commit d7aef29573c7c5cdb2dfad939253287a6329c2a4
	Issue introduced in 3.10 with commit 86d7182985d25900929adce14fffd729cc8c6fb8 and fixed in 6.12.91 with commit 3facdecc3fcf115cc4f9b3d8f118d6705e2456a8
	Issue introduced in 3.10 with commit 86d7182985d25900929adce14fffd729cc8c6fb8 and fixed in 6.18.33 with commit 51075df70c46e60a9773f2dcd28299e40dac36fb
	Issue introduced in 3.10 with commit 86d7182985d25900929adce14fffd729cc8c6fb8 and fixed in 7.0.10 with commit 02115986d027ade793e7f6be87e91d6a796d0aa3
	Issue introduced in 3.10 with commit 86d7182985d25900929adce14fffd729cc8c6fb8 and fixed in 7.1 with commit 2bf2d65f76697820dbc4227d13866293576dd90a

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-2026-53021

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/target/target_core_sbc.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/c08ab702c4699c6efb9d60bdb15b73e7a627ee7e
	https://git.kernel.org/stable/c/2e1ed9a7b6ea5bfefb5d80a02b1c71c7dee1f0dd
	https://git.kernel.org/stable/c/5efc3ef4758f8d98c257419fa21daca3227de61a
	https://git.kernel.org/stable/c/d7aef29573c7c5cdb2dfad939253287a6329c2a4
	https://git.kernel.org/stable/c/3facdecc3fcf115cc4f9b3d8f118d6705e2456a8
	https://git.kernel.org/stable/c/51075df70c46e60a9773f2dcd28299e40dac36fb
	https://git.kernel.org/stable/c/02115986d027ade793e7f6be87e91d6a796d0aa3
	https://git.kernel.org/stable/c/2bf2d65f76697820dbc4227d13866293576dd90a