CVE-2026-93056: usb: gadget: f_uac1_legacy: remove broken string configfs attributes

Published Sep 17, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: fuac1legacy: remove broken string configfs attributes

The UAC1STRATTRIBUTE macro defines configfs show/store handlers for the fnplay, fncap, and fncntl 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 UAC1STRATTRIBUTE macro and the three attributes it generated. The internal defaults (FILEPCMPLAYBACK, FILEPCMCAPTURE, FILECONTROL) set in faudioallocinst() are unaffected.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Remove

    Remove usb: gadget: f_uac1_legacy from your environment.

    Remove the UAC1_STR_ATTRIBUTE macro and the three broken string configfs attributes (fn_play, fn_cap, and fn_cntl string options) so the unused/broken configfs show/store handlers are no longer present.

Event History

Sep 17, 2026
CVE Published
via MITRE·04:10 PM
Data Sourced
via MITRE·04:10 PM
Description

Frequently Asked Questions

1

Who is exposed to this issue?

Systems using the UAC1 legacy USB gadget function are exposed only when someone attempts to write the fn_play, fn_cap, or fn_cntl string options through configfs. The affected attributes were unused for many years.

2

What does an attacker or local user need to do to trigger the flaw?

They need the ability to write one of the affected configfs string attributes. A normal successful allocation causes the write to fail with -ENOMEM, while an allocation failure leads to a NULL-pointer dereference.

3

Are the default UAC1 legacy audio file settings affected?

No. The internal defaults FILE_PCM_PLAYBACK, FILE_PCM_CAPTURE, and FILE_CONTROL, set in f_audio_alloc_inst(), are unaffected.

4

What can be done if the fix cannot be applied immediately?

Do not write to the fn_play, fn_cap, or fn_cntl configfs attributes. The affected attributes have been removed by the fix, while the internal default settings remain available.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203