CVE-2026-93122 (GCVE-0-2026-93122)
Vulnerability from cvelistv5
Published
2026-09-17 16:11
Modified
2026-10-30 12:36
Severity ?
VLAI Severity ?
EPSS score ?
Summary
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.
References
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| Linux | Linux |
Version: a7339e4f5788bd088bb0be1f96a6cce459676ed0 Version: a7339e4f5788bd088bb0be1f96a6cce459676ed0 Version: a7339e4f5788bd088bb0be1f96a6cce459676ed0 Version: a7339e4f5788bd088bb0be1f96a6cce459676ed0 Version: a7339e4f5788bd088bb0be1f96a6cce459676ed0 Version: a7339e4f5788bd088bb0be1f96a6cce459676ed0 |
||
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/usb/gadget/function/f_uac1.c",
"drivers/usb/gadget/function/f_uac2.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "30b3b3494000aa01fc8f08bf07ed503c9fde4895",
"status": "affected",
"version": "a7339e4f5788bd088bb0be1f96a6cce459676ed0",
"versionType": "git"
},
{
"lessThan": "72888d54bae3677ecd4ba9793b7fd27ba0b27862",
"status": "affected",
"version": "a7339e4f5788bd088bb0be1f96a6cce459676ed0",
"versionType": "git"
},
{
"lessThan": "0c2710a36b41bf8defba83c395b99eb1660e9e9a",
"status": "affected",
"version": "a7339e4f5788bd088bb0be1f96a6cce459676ed0",
"versionType": "git"
},
{
"lessThan": "0203146ad450932c2d3132e367a99c49efe3122d",
"status": "affected",
"version": "a7339e4f5788bd088bb0be1f96a6cce459676ed0",
"versionType": "git"
},
{
"lessThan": "3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb",
"status": "affected",
"version": "a7339e4f5788bd088bb0be1f96a6cce459676ed0",
"versionType": "git"
},
{
"lessThan": "844d83d5964b87919b958ff48405188c6ddae9cc",
"status": "affected",
"version": "a7339e4f5788bd088bb0be1f96a6cce459676ed0",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/usb/gadget/function/f_uac1.c",
"drivers/usb/gadget/function/f_uac2.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "5.18"
},
{
"lessThan": "5.18",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.191",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.114",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.57",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.2.*",
"status": "unaffected",
"version": "7.2.6",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.1.191",
"versionStartIncluding": "5.18",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.6.160",
"versionStartIncluding": "5.18",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.12.114",
"versionStartIncluding": "5.18",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.18.57",
"versionStartIncluding": "5.18",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.2.6",
"versionStartIncluding": "5.18",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.3",
"versionStartIncluding": "5.18",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: uac: validate rate list length before storing\n\nUAC1 and UAC2 configfs rate-list attributes parse a comma-separated\nlist of sampling rates and store each parsed value in fixed-size arrays.\nThe arrays have UAC_MAX_RATES entries, but the store paths do not check\nthat the input contains at most that many tokens before writing through\nopts-\u003ename##s[i++].\n\nWriting more than ten rates therefore writes past the end of the\np_srates[] or c_srates[] array in struct f_uac1_opts or struct\nf_uac2_opts.\n\nWith CONFIG_UBSAN_BOUNDS enabled, writing an 11-entry rate list to the\nUAC1 p_srate attribute reports:\n\n UBSAN: array-index-out-of-bounds\n drivers/usb/gadget/function/f_uac1.c:1669:1\n index 10 is out of range for type \u0027int [10]\u0027\n __ubsan_handle_out_of_bounds.cold\n f_uac1_opts_p_srate_store\n configfs_write_iter\n vfs_write\n ksys_write\n do_syscall_64\n\nThe same reproducer against the UAC2 p_srate attribute reports:\n\n UBSAN: array-index-out-of-bounds\n drivers/usb/gadget/function/f_uac2.c:2087:1\n index 10 is out of range for type \u0027int [10]\u0027\n __ubsan_handle_out_of_bounds.cold\n f_uac2_opts_p_srate_store\n configfs_write_iter\n vfs_write\n ksys_write\n do_syscall_64\n\nReject additional tokens once UAC_MAX_RATES entries have been parsed.\nAlso keep the original kstrdup() pointer for kfree(), because strsep()\nadvances the parsing cursor. Freeing the advanced cursor leaks the\noriginal buffer on successful parses and can free an interior pointer on\nsome error paths."
}
],
"metrics": [
{
"cvssV3_1": {
"baseScore": 7.8,
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"scenarios": [
{
"lang": "en",
"value": "AV:L - The malformed comma-separated rates enter via write(2)\u2192configfs_write_iter()\u2192f_uac1_opts_p_srate_store/f_uac1_opts_c_srate_store (and the UAC2 twins) on /sys/kernel/config/usb_gadget/\u003cg\u003e/functions/uac{1,2}.*/{p,c}_srate; USB SETUP/iso packets never supply that page.\nAC:L - A fresh function_make() uac1/uac2 instance has opts-\u003erefcnt==0, so one write of eleven or more kstrtou32 tokens (up to configfs SIMPLE_ATTR_SIZE-1 bytes) stores through opts-\u003ep_srates[i++]/c_srates[i++] past UAC_MAX_RATES with no race or victim state.\nPR:L - f_uac1_opts_p_srate_store and f_uac2_opts_p_srate_store (and the c_srate stores) do no capable() check; CONFIGFS_ATTR is S_IWUSR, and Android/embedded USB gadget HALs routinely chown /sys/kernel/config/usb_gadget to a non-root system or HAL daemon.\nUI:N - The attacker mkdir\u0027s the uac1/uac2 function instance and writes the oversized p_srate or c_srate list themselves; no other user must plug a cable, mount a volume, or open a file.\nS:U - The store overwrites the kmalloc\u0027d struct f_uac1_opts/f_uac2_opts and neighbouring host-kernel slab in the same OS authority; it is not a VM escape, IOMMU/DMA bypass, or sandbox breakout.\nC:H - Each extra token is an attacker-chosen u32 written past p_srates[9]/c_srates[9] into the rest of the kzalloc\u0027d opts object and adjacent slab; that heap overflow is groomable into a kernel-memory disclosure primitive.\nI:H - f_uac1_opts_p_srate_store writes attacker-controlled ints past p_srates[] over p_ssize, the 126-byte name arrays, refcnt, and opts-\u003elock, then mutex_unlock()s the corrupted mutex \u2014 an arbitrary-write and control-flow hijack primitive.\nA:H - The commit\u0027s UBSAN report is array-index-out-of-bounds at f_uac1_opts_p_srate_store/f_uac2_opts_p_srate_store index 10 of int[10]; without UBSAN the same store corrupts opts-\u003elock and adjacent slab and oopses or panics."
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-10-30T12:36:02.508Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/30b3b3494000aa01fc8f08bf07ed503c9fde4895"
},
{
"url": "https://git.kernel.org/stable/c/72888d54bae3677ecd4ba9793b7fd27ba0b27862"
},
{
"url": "https://git.kernel.org/stable/c/0c2710a36b41bf8defba83c395b99eb1660e9e9a"
},
{
"url": "https://git.kernel.org/stable/c/0203146ad450932c2d3132e367a99c49efe3122d"
},
{
"url": "https://git.kernel.org/stable/c/3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb"
},
{
"url": "https://git.kernel.org/stable/c/844d83d5964b87919b958ff48405188c6ddae9cc"
}
],
"title": "usb: gadget: uac: validate rate list length before storing",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2026-93122",
"datePublished": "2026-09-17T16:11:27.890Z",
"dateReserved": "2026-09-17T16:02:15.086Z",
"dateUpdated": "2026-10-30T12:36:02.508Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…