Linux kernel: usb: gadget: uac: validate rate list length before storing
Overview
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: uac: validate rate list length before storing UAC1 and UAC2 configfs rate-list attributes parse a comma-separated list of sampling rates and store each parsed value in fixed-size arrays. The arrays have UAC_MAX_RATES entries, but the store paths do not check that the input contains at most that many tokens before writing through opts->name##s[i++]. Writing more than ten rates therefore writes past the end of the p_srates[] or c_srates[] array in struct f_uac1_opts or struct f_uac2_opts. With CONFIG_UBSAN_BOUNDS enabled, writing an 11-entry rate list to the UAC1 p_srate attribute reports: UBSAN: array-index-out-of-bounds drivers/usb/gadget/function/f_uac1.c:1669:1 index 10 is out of range for type 'int [10]' __ubsan_handle_out_of_bounds.cold f_uac1_opts_p_srate_store configfs_write_iter vfs_write ksys_write do_syscall_64 The same reproducer against the UAC2 p_srate attribute reports: UBSAN: array-index-out-of-bounds drivers/usb/gadget/function/f_uac2.c:2087:1 index 10 is out of range for type 'int [10]' __ubsan_handle_out_of_bounds.cold f_uac2_opts_p_srate_store configfs_write_iter vfs_write ksys_write do_syscall_64 Reject additional tokens once UAC_MAX_RATES entries have been parsed. Also keep the original kstrdup() pointer for kfree(), because strsep() advances the parsing cursor. Freeing the advanced cursor leaks the original buffer on successful parses and can free an interior pointer on some error paths.
- Published
- 9/17/2026
- Last modified
- 10/30/2026
- CVE assigner
- Not available
- NVD analysis
- Not available
Exploitation
No CISA KEV flag in the saved record
An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.
EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare
Affected products
Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.
| Vendor / product | Affected versions | Platform / conditions | Evidence |
|---|---|---|---|
Linux Linux | ≥ a7339e4f5788bd088bb0be1f96a6cce459676ed0, < 30b3b3494000aa01fc8f08bf07ed503c9fde4895 | Verify advisory | Source |
Linux Linux | ≥ a7339e4f5788bd088bb0be1f96a6cce459676ed0, < 72888d54bae3677ecd4ba9793b7fd27ba0b27862 | Verify advisory | Source |
Linux Linux | ≥ a7339e4f5788bd088bb0be1f96a6cce459676ed0, < 0c2710a36b41bf8defba83c395b99eb1660e9e9a | Verify advisory | Source |
Linux Linux | ≥ a7339e4f5788bd088bb0be1f96a6cce459676ed0, < 0203146ad450932c2d3132e367a99c49efe3122d | Verify advisory | Source |
Linux Linux | ≥ a7339e4f5788bd088bb0be1f96a6cce459676ed0, < 3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb | Verify advisory | Source |
Linux Linux | ≥ a7339e4f5788bd088bb0be1f96a6cce459676ed0, < 844d83d5964b87919b958ff48405188c6ddae9cc | Verify advisory | Source |
Linux Linux | 5.18 | Verify advisory | Source |
Recommended actions
Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.
Vendor advisory links
Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.
Severity
CVSS describes technical impact. It is separate from exploitation evidence.
Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.
Sources & references
Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.