CVE-2026-143396: net/9p/usbg: fix descriptor cleanup use-after-free

Published Dec 3, 2026
·
Updated

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

net/9p/usbg: fix descriptor cleanup use-after-free

usb9pfsfreefunc() frees the fusb9pfs object before calling usbfreealldescriptors(). The usbfunction passed to the latter is embedded in the freed object, so removing the function from a gadget dereferences freed memory.

The failing teardown sequence is:

configfs unlink usb9pfsfreefunc() kfree(usb9pfs) usbfreealldescriptors(f) dereference the embedded usbfunction

KASAN reported:

BUG: KASAN: slab-use-after-free in usbfreealldescriptors+0x138/0x190 Read of size 8 at addr ffff888106a73088 by task poc/95 Call Trace: usbfreealldescriptors+0x138/0x190 configusbcfgunlink+0x1f0/0x2f0 configfsunlink+0x321/0x6f0

Free the descriptors before freeing their containing object.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In usb9pfs_free_func(), call usb_free_all_descriptors(f) before freeing the containing usb9pfs object with kfree(usb9pfs).

Event History

Dec 3, 2026
CVE Published
via MITRE·09:22 AM
Data Sourced
via MITRE·09:22 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Linux kernel systems that use the usb9pfs USB gadget function and remove that function through configfs are affected by the vulnerable teardown path.

2

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

Avoid unlinking or removing configured usb9pfs functions through configfs until the kernel includes the descriptor-cleanup ordering fix.

3

How can I identify whether this failure has occurred?

KASAN may report a slab use-after-free in usb_free_all_descriptors during config_usb_cfg_unlink or configfs_unlink. The report can show a read from the embedded usb_function after the containing f_usb9pfs object was freed.

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