CVE-2026-139717: usb-storage: alauda: check the return value of alauda_read_map()
In the Linux kernel, the following vulnerability has been resolved:
usb-storage: alauda: check the return value of alaudareadmap()
alaudaensuremapforzone() ignores the value alaudareadmap() returns. On failure lbatopba[zone] and pbatolba[zone] are left NULL, and both callers dereference them immediately:
pba = MEDIAINFO(us).lbatopba[zone][lbaoffset];
alaudareadmap() returns USBSTORTRANSPORTERROR when either kcalloc() fails or an alaudagetredudata() transfer fails, so one failed bulk transfer is enough to reach the NULL dereference.
Return that value from alaudaensuremapforzone() and check it in alaudareaddata() and alaudawritelba().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In the alauda USB-storage code, return the result of alauda_read_map() from alauda_ensure_map_for_zone() and check it in alauda_read_data() and alauda_write_lba() before dereferencing the zone maps.
Event History
Frequently Asked Questions
What conditions are required to trigger the NULL dereference?
The system must use the USB-storage Alauda driver and attempt an Alauda read or write that requires a zone map. Exploitation requires alauda_read_map() to fail, which can occur if its memory allocation fails or if an alauda_get_redu_data() bulk transfer fails.
What is the likely impact of a failed map read?
Before the fix, the failed map read can leave the lba_to_pba or pba_to_lba entry for the zone as NULL. The subsequent read or write path dereferences that entry immediately, causing a NULL-pointer dereference.
Which operations reach the vulnerable code path?
Both alauda_read_data() and alauda_write_lba() can reach the vulnerable path after alauda_ensure_map_for_zone() ignores a map-read failure. Reads and writes involving an affected zone are therefore relevant.
What does the fix change?
The fix propagates the return value from alauda_read_map() through alauda_ensure_map_for_zone(). It then checks that result in the read and write callers before they dereference the zone mapping arrays.