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

Summary

CVECVE-2026-139716
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:20:02 UTC
Updated2026-11-30 14:20:02 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected e80b0fade09ef1ee67b0898d480d4c588f124d5f b30a65bf59c74d5ec23982a440d3c385e0d5f371 git Not specified
CNA Linux Linux affected e80b0fade09ef1ee67b0898d480d4c588f124d5f 660e03c03073508938aad2fe45836d1eb50f556f git Not specified
CNA Linux Linux affected e80b0fade09ef1ee67b0898d480d4c588f124d5f a7c01cbf98a4bd52d0019373a042e25206633886 git Not specified
CNA Linux Linux affected e80b0fade09ef1ee67b0898d480d4c588f124d5f 2ae4b79ee580246adb0b154dcf1eb6dab06bf832 git Not specified
CNA Linux Linux affected e80b0fade09ef1ee67b0898d480d4c588f124d5f 45edfe489e8dd1c12f6692fde60006a6cabb8349 git Not specified
CNA Linux Linux affected e80b0fade09ef1ee67b0898d480d4c588f124d5f 9a5e3f50a597e7cccac8b156dfcae894d001d8ea git Not specified
CNA Linux Linux affected e80b0fade09ef1ee67b0898d480d4c588f124d5f f83f896d3d78d4adf85a932c9dffae88da8a4f26 git Not specified
CNA Linux Linux affected e80b0fade09ef1ee67b0898d480d4c588f124d5f c4542993c071fcafe7335698bf52650dee7e3555 git Not specified
CNA Linux Linux affected 2.6.16 Not specified
CNA Linux Linux unaffected 2.6.16 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/9a5e3f50a597e7cccac8b156dfcae894d001d8ea 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/660e03c03073508938aad2fe45836d1eb50f556f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b30a65bf59c74d5ec23982a440d3c385e0d5f371 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2ae4b79ee580246adb0b154dcf1eb6dab06bf832 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a7c01cbf98a4bd52d0019373a042e25206633886 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f83f896d3d78d4adf85a932c9dffae88da8a4f26 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c4542993c071fcafe7335698bf52650dee7e3555 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/45edfe489e8dd1c12f6692fde60006a6cabb8349 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report