CVE-2026-93056: usb: gadget: f_uac1_legacy: remove broken string configfs attributes
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-93056 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.18 with commit 0854611a19ae4dfa56569e6f640017a1d2dd3312 and fixed in 5.10.270 with commit 745adfe6c337f3d5d7737d57529d14a208151b45 Issue introduced in 3.18 with commit 0854611a19ae4dfa56569e6f640017a1d2dd3312 and fixed in 5.15.221 with commit 6351ba62778f72dc4f6bc18bfa99e618829cff0d Issue introduced in 3.18 with commit 0854611a19ae4dfa56569e6f640017a1d2dd3312 and fixed in 6.1.188 with commit 021b58ac3e58cffa68ed9585ff492a19e98414f6 Issue introduced in 3.18 with commit 0854611a19ae4dfa56569e6f640017a1d2dd3312 and fixed in 6.6.157 with commit fd43eae7d539ea7cfc7c9f0d3f0eaa890415e8a7 Issue introduced in 3.18 with commit 0854611a19ae4dfa56569e6f640017a1d2dd3312 and fixed in 6.12.110 with commit 8b9335aec93975bb9186d63993a5a610e5066ffc Issue introduced in 3.18 with commit 0854611a19ae4dfa56569e6f640017a1d2dd3312 and fixed in 6.18.52 with commit 2ed25c9d4400cf90d9201657963a231c27a5ea57 Issue introduced in 3.18 with commit 0854611a19ae4dfa56569e6f640017a1d2dd3312 and fixed in 7.2.6 with commit 977659adb341f6e30fb00dcf183f63f29df879e2 Issue introduced in 3.18 with commit 0854611a19ae4dfa56569e6f640017a1d2dd3312 and fixed in 7.3-rc1 with commit 590d74ec8f488e06b9f1c0f8f0941f45531f3a55
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-93056
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
Documentation/ABI/testing/configfs-usb-gadget-uac1_legacy Documentation/usb/gadget-testing.rst drivers/usb/gadget/function/f_uac1_legacy.c drivers/usb/gadget/function/u_uac1_legacy.h
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/745adfe6c337f3d5d7737d57529d14a208151b45 https://git.kernel.org/stable/c/6351ba62778f72dc4f6bc18bfa99e618829cff0d https://git.kernel.org/stable/c/021b58ac3e58cffa68ed9585ff492a19e98414f6 https://git.kernel.org/stable/c/fd43eae7d539ea7cfc7c9f0d3f0eaa890415e8a7 https://git.kernel.org/stable/c/8b9335aec93975bb9186d63993a5a610e5066ffc https://git.kernel.org/stable/c/2ed25c9d4400cf90d9201657963a231c27a5ea57 https://git.kernel.org/stable/c/977659adb341f6e30fb00dcf183f63f29df879e2 https://git.kernel.org/stable/c/590d74ec8f488e06b9f1c0f8f0941f45531f3a55