{"id":"CVE-2026-93056","summary":"usb: gadget: f_uac1_legacy: remove broken string configfs attributes","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_uac1_legacy: remove broken string configfs attributes\n\nThe UAC1_STR_ATTRIBUTE macro defines configfs show/store handlers for\nthe fn_play, fn_cap, and fn_cntl string options. The store function\ncontains an inverted null check on the kstrndup() return value.\n\nThis means every write attempt returns -ENOMEM on success and\ndereferences a NULL pointer on allocation failure. The attributes\nhave been broken and unused for many years.\n\nRemove the UAC1_STR_ATTRIBUTE macro and the three attributes it\ngenerated. The internal defaults (FILE_PCM_PLAYBACK, FILE_PCM_CAPTURE,\nFILE_CONTROL) set in f_audio_alloc_inst() are unaffected.","modified":"2026-09-19T03:47:26.934942963Z","published":"2026-09-17T16:10:44.442Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/93xxx/CVE-2026-93056.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/021b58ac3e58cffa68ed9585ff492a19e98414f6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2ed25c9d4400cf90d9201657963a231c27a5ea57"},{"type":"WEB","url":"https://git.kernel.org/stable/c/590d74ec8f488e06b9f1c0f8f0941f45531f3a55"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6351ba62778f72dc4f6bc18bfa99e618829cff0d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/745adfe6c337f3d5d7737d57529d14a208151b45"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8b9335aec93975bb9186d63993a5a610e5066ffc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/977659adb341f6e30fb00dcf183f63f29df879e2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fd43eae7d539ea7cfc7c9f0d3f0eaa890415e8a7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/93xxx/CVE-2026-93056.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-93056"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0854611a19ae4dfa56569e6f640017a1d2dd3312"},{"fixed":"745adfe6c337f3d5d7737d57529d14a208151b45"},{"fixed":"6351ba62778f72dc4f6bc18bfa99e618829cff0d"},{"fixed":"021b58ac3e58cffa68ed9585ff492a19e98414f6"},{"fixed":"fd43eae7d539ea7cfc7c9f0d3f0eaa890415e8a7"},{"fixed":"8b9335aec93975bb9186d63993a5a610e5066ffc"},{"fixed":"2ed25c9d4400cf90d9201657963a231c27a5ea57"},{"fixed":"977659adb341f6e30fb00dcf183f63f29df879e2"},{"fixed":"590d74ec8f488e06b9f1c0f8f0941f45531f3a55"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-93056.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.18.0"},{"fixed":"5.10.270"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.221"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.188"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.157"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.110"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.52"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-93056.json"}}],"schema_version":"1.9.0"}