usb: gadget: f_uac1_legacy: remove broken string configfs attributes
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_uac1_legacy: remove broken string configfs attributes The UAC1_STR_ATTRIBUTE macro defines configfs show/store handlers for the fn_play, fn_cap, and fn_cntl string options. The store function contains an inverted null check on the kstrndup() return value. This means every write attempt returns -ENOMEM on success and dereferences a NULL pointer on allocation failure. The attributes have been broken and unused for many years. Remove the UAC1_STR_ATTRIBUTE macro and the three attributes it generated. The internal defaults (FILE_PCM_PLAYBACK, FILE_PCM_CAPTURE, FILE_CONTROL) set in f_audio_alloc_inst() are unaffected.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 0854611a19ae4dfa56569e6f640017a1d2dd3312 · fixed in 745adfe6c337f3d5d7737d57529d14a208151b45; From 0854611a19ae4dfa56569e6f640017a1d2dd3312 · fixed in 6351ba62778f72dc4f6bc18bfa99e618829cff0d; From 0854611a19ae4dfa56569e6f640017a1d2dd3312 · fixed in 021b58ac3e58cffa68ed9585ff492a19e98414f6; From 0854611a19ae4dfa56569e6f640017a1d2dd3312 · fixed in fd43eae7d539ea7cfc7c9f0d3f0eaa890415e8a7; From 0854611a19ae4dfa56569e6f640017a1d2dd3312 · fixed in 8b9335aec93975bb9186d63993a5a610e5066ffc; From 0854611a19ae4dfa56569e6f640017a1d2dd3312 · fixed in 2ed25c9d4400cf90d9201657963a231c27a5ea57; From 0854611a19ae4dfa56569e6f640017a1d2dd3312 · fixed in 977659adb341f6e30fb00dcf183f63f29df879e2; From 0854611a19ae4dfa56569e6f640017a1d2dd3312 · fixed in 590d74ec8f488e06b9f1c0f8f0941f45531f3a55
- Linux Linux
3.18
- KernelLinux
From 3.18.0 · fixed in 5.10.270; From 5.11.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6
References 8
git.kernel.org
- stable/c/745adfe6c337f3d5d7737d57529d14a208151b45
- stable/c/6351ba62778f72dc4f6bc18bfa99e618829cff0d
- stable/c/021b58ac3e58cffa68ed9585ff492a19e98414f6
- stable/c/fd43eae7d539ea7cfc7c9f0d3f0eaa890415e8a7
- stable/c/8b9335aec93975bb9186d63993a5a610e5066ffc
- stable/c/2ed25c9d4400cf90d9201657963a231c27a5ea57
- stable/c/977659adb341f6e30fb00dcf183f63f29df879e2
- stable/c/590d74ec8f488e06b9f1c0f8f0941f45531f3a55