Skip to contentSkip to conversation

CVE-2025-40345: usb: storage: sddr55: Reject out-of-bound new_pba

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 12, 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:

usb: storage: sddr55: Reject out-of-bound new_pba

Discovered by Atuin - Automated Vulnerability Discovery Engine.

new_pba comes from the status packet returned after each write. A bogus device could report values beyond the block count derived from info->capacity, letting the driver walk off the end of pba_to_lba[] and corrupt heap memory.

Reject PBAs that exceed the computed block count and fail the transfer so we avoid touching out-of-range mapping entries.

The Linux kernel CVE team has assigned CVE-2025-40345 to this issue.

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

	Fixed in 5.10.247 with commit d00a6c04a502cd52425dbf35588732c652b16490
	Fixed in 5.15.197 with commit 26e9b5da3231da7dc357b363883b5b7b51a64092
	Fixed in 6.1.159 with commit aa64e0e17e3a5991a25e6a46007770c629039869
	Fixed in 6.6.119 with commit 04a8a6393f3f2f471e05eacca33282dd30b01432
	Fixed in 6.12.61 with commit a20f1dd19d21dcb70140ea5a71b1f8cbe0c7e68f
	Fixed in 6.17.11 with commit 5ebe8d479aaf4f41ac35e6955332304193c646f6
	Fixed in 6.18 with commit b59d4fda7e7d0aff1043a7f742487cb829f5aac1

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-2025-40345

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/usb/storage/sddr55.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/d00a6c04a502cd52425dbf35588732c652b16490
	https://git.kernel.org/stable/c/26e9b5da3231da7dc357b363883b5b7b51a64092
	https://git.kernel.org/stable/c/aa64e0e17e3a5991a25e6a46007770c629039869
	https://git.kernel.org/stable/c/04a8a6393f3f2f471e05eacca33282dd30b01432
	https://git.kernel.org/stable/c/a20f1dd19d21dcb70140ea5a71b1f8cbe0c7e68f
	https://git.kernel.org/stable/c/5ebe8d479aaf4f41ac35e6955332304193c646f6
	https://git.kernel.org/stable/c/b59d4fda7e7d0aff1043a7f742487cb829f5aac1