CVE-2026-31723·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_subset: Fix net_device lifecycle with device_move The net_device is allocated during function instance creation and registered during the bind phase with the gadget device as its sysfs parent. When the function unbinds, the parent device is destroyed, but the net_device survives, resulting in dangling sysfs symlinks: console:/ # ls -l /sys/class/net/usb0 lrwxrwxrwx ... /sys/class/net/usb0 -> /sys/devices/platform/.../gadget.0/net/usb0 console:/ # ls -l /sys/devices/platform/.../gadget.0/net/usb0 ls: .../gadget.0/net/usb0: No such file or directory Use device_move() to reparent the net_device between the gadget device tree and /sys/devices/virtual across bind and unbind cycles. During the final unbind, calling device_move(NULL) moves the net_device to the virtual device tree before the gadget device is destroyed. On rebinding, device_move() reparents the device back under the new gadget, ensuring proper sysfs topology and power management ordering. To maintain compatibility with legacy composite drivers (e.g., multi.c), the bound flag is used to indicate whether the network device is shared and pre-registered during the legacy driver's bind phase.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.19.12
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.16% — higher than 5% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 6.19.12
Fixed in: 6.19.12
How to fix this CVE
Update your Linux kernel to version 6.19.12 or later to resolve this USB gadget subsystem vulnerability. The fix ensures proper device lifecycle management by correctly reparenting network devices during bind and unbind cycles, preventing orphaned sysfs references. If you are running kernel versions 6.19 through 6.19.11, apply the security update immediately to avoid potential system instability related to USB gadget networking.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version; vulnerable versions are 6.19.x up to 6.19.11
- Check if USB gadget functionality is enabled: grep -i 'CONFIG_USB_GADGET' /boot/config-$(uname -r)
- Monitor sysfs for dangling symlinks: ls -l /sys/class/net/ and verify targets exist in /sys/devices/platform/
- Verify patch application: grep -i 'device_move' /usr/src/linux-headers-$(uname -r)/drivers/usb/gadget/f_subset.c should show the fix is present
FAQ
What is CVE-2026-31723?
This vulnerability affects the Linux kernel's USB gadget subsystem, specifically the f_subset network driver. It causes improper device lifecycle management where network device sysfs references become orphaned when the parent gadget device is destroyed, leading to dangling symlinks and potential system inconsistencies.
Is CVE-2026-31723 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, it should still be patched as part of regular security maintenance.
What versions of Kernel are affected by CVE-2026-31723?
Kernel versions 6.19.0 through 6.19.11 are vulnerable. The fix is included in kernel 6.19.12 and later versions.
How do I check if my server is vulnerable to CVE-2026-31723?
Run 'uname -r' and compare your kernel version against the vulnerable range 6.19.0–6.19.11. If your version falls within this range and you use USB gadget functionality, you are affected.
Does Defensia detect CVE-2026-31723?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2026-31723 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/06524cd1c9011bee141a87e43ab878641ed3652b
- https://git.kernel.org/stable/c/70707ce668494c4d35fe070dfbc7cc541b293107
- https://git.kernel.org/stable/c/9cbc4f109bb216623894d8819fb930210ed34b21
- https://git.kernel.org/stable/c/c26916e8413c8fc44834fd9df4899312fd6cf880
- https://git.kernel.org/stable/c/edb08047051883591517feb5a51bf2bfd2b769fb
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31723. Free for 1 server.
Get started free