CVE-2025-40345

Source
https://cve.org/CVERecord?id=CVE-2025-40345
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40345.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40345
Downstream
Related
Published
2025-12-12T17:53:06.853Z
Modified
2026-03-20T12:43:16.175106Z
Summary
usb: storage: sddr55: Reject out-of-bound new_pba
Details

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.

newpba 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 pbato_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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40345.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Fixed
d00a6c04a502cd52425dbf35588732c652b16490
Fixed
26e9b5da3231da7dc357b363883b5b7b51a64092
Fixed
aa64e0e17e3a5991a25e6a46007770c629039869
Fixed
04a8a6393f3f2f471e05eacca33282dd30b01432
Fixed
a20f1dd19d21dcb70140ea5a71b1f8cbe0c7e68f
Fixed
5ebe8d479aaf4f41ac35e6955332304193c646f6
Fixed
b59d4fda7e7d0aff1043a7f742487cb829f5aac1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40345.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.12
Fixed
5.10.247
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.197
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.159
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.119
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.61
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.11

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40345.json"