CVE-2026-139716

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

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The flaw in the Linux kernel's usb-storage alauda driver allows an attacker to use out-of-bounds array indexing when translating logical block addresses (LBAs) to physical block addresses. The arrays lba_to_pba and pba_to_lba each hold entries for a limited number of zones, but the driver incorrectly permits an index equal to or greater than num_zones, resulting in access beyond the array bounds. This memory corruption can corrupt kernel memory and potentially lead to a crash or escalation of privileges if an attacker can craft the offending LBAs. The vulnerability is triggered by USB mass-storage commands that convey LBAs past the device's advertised capacity, such as SG_IO READ_10 operations.

Affected Systems

The issue affects the Linux kernel, particularly any installation that includes the usb-storage alauda driver. Devices relying on the Alauda USB storage stack—such as certain ATA or NVMe-over-USB hardware—are affected. Systems running older kernel releases prior to the patch that introduced stricter bounds checking will remain vulnerable.

Risk and Exploitability

No CVSS score is currently available, and the EPSS score is not reported, meaning the overall exploitation likelihood is unknown. The vulnerability is not listed in CISA KEV, but the nature of the flaw—out-of-bounds array access that can lead to kernel memory corruption—suggests a high impact should an exploit be discovered. Attackers would need physical access to a Linux host and the ability to send crafted USB requests; the vector is local but could be leveraged by anyone who controls the USB device. Until a public exploit emerges, the risk level is considered moderate to high for exposed systems.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to a Linux kernel version that contains the fix for the usb-storage alauda driver.
  • If an update is not immediately possible, disable or unload the alauda driver or block large LBA commands from the USB subsystem by applying device-level restrictions.
  • Restrict USB storage devices through udev rules or device whitelisting to ensure only trusted storage hardware is allowed to communicate with the system.
  • Monitor system logs for signs of kernel crashes or segmentation faults that could indicate exploitation attempts.

Generated by OpenCVE AI on December 1, 2026 at 00:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-788
Type Values Removed Values Added
Description 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.
Title usb-storage: alauda: fix out-of-bounds zone index
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-788

    Access of Memory Location After End of Buffer

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM