CVE-2026-139716

Source
https://cve.org/CVERecord?id=CVE-2026-139716
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139716.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139716
Downstream
Published
2026-11-30T13:37:18Z
Modified
2026-11-30T15:02:30Z
Summary
usb-storage: alauda: fix out-of-bounds zone index
Details

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

usb-storage: alauda: fix out-of-bounds zone index

MEDIA_INFO(us).lba_to_pba and .pba_to_lba are arrays of num_zones pointers, allocated by kcalloc() in alauda_init_media(). alauda_ensure_map_for_zone() reads lba_to_pba[zone] and pba_to_lba[zone], and when either is NULL alauda_read_map() writes a pointer back to both. Two separate errors let zone reach num_zones, one element past the end.

max_lba is capacity >> (blockshift + pageshift), which counts physical blocks, but zone is lba / uzonesize and uzonesize is 125/128 of zonesize. On a 16 MB card (alauda_card_ids id 0x73) num_zones is 1 and uzonesize is 1000, so lba 1000 to 1023 pass the bounds check and index element 1 of a one-element array.

alauda_read_data() also calls alauda_ensure_map_for_zone() before it compares lba against max_lba, so any larger lba is used as an index before the check rejects it. alauda_write_data() already checks first.

Bound lba by num_zones * uzonesize on both paths and move the read side's call below the check. alauda_transport() reports num_zones * uzonesize * blocksize for READ_CAPACITY, so the new bound is exactly the range the device advertises and no block becomes unreachable.

sd never issues an lba past the reported capacity; an SG_IO READ_10 can.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139716.json"
}
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
e80b0fade09ef1ee67b0898d480d4c588f124d5f
Fixed
b30a65bf59c74d5ec23982a440d3c385e0d5f371
Fixed
660e03c03073508938aad2fe45836d1eb50f556f
Fixed
a7c01cbf98a4bd52d0019373a042e25206633886
Fixed
2ae4b79ee580246adb0b154dcf1eb6dab06bf832
Fixed
45edfe489e8dd1c12f6692fde60006a6cabb8349
Fixed
9a5e3f50a597e7cccac8b156dfcae894d001d8ea
Fixed
f83f896d3d78d4adf85a932c9dffae88da8a4f26
Fixed
c4542993c071fcafe7335698bf52650dee7e3555

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139716.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.16
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139716.json"