CVE-2026-31724·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_eem: 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
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 a sysfs topology issue in the USB EEM gadget driver that causes dangling symlinks and improper device lifecycle management. This fix ensures network devices are correctly reparented during bind and unbind cycles, preventing orphaned sysfs entries that could impact device power management and system stability.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check installed kernel version by running `uname -r` and compare against 6.19.12 (vulnerable if ≤ 6.19.11 in the 6.19.x series)
- Step 2: Verify if USB EEM gadget is loaded with `lsmod | grep usb_eem` or check `/sys/module/usb_eem/`
- Step 3: Inspect sysfs for dangling net_device symlinks: `ls -l /sys/class/net/ | grep usb0` and verify the target path exists in `/sys/devices/`
- Step 4: After updating to 6.19.12+, reboot and re-check that `/sys/class/net/usb0` symlink resolves correctly to a valid device path under `/sys/devices/virtual/` or the appropriate gadget device tree
FAQ
What is CVE-2026-31724?
This vulnerability affects the Linux kernel's USB Ethernet Emulation (EEM) gadget driver, where network devices are not properly reparented in the sysfs hierarchy during unbind operations, leaving dangling symlinks that point to non-existent device paths.
Is CVE-2026-31724 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available. The impact is primarily operational (sysfs corruption) rather than a direct security bypass.
What versions of Kernel are affected by CVE-2026-31724?
Linux kernel versions 6.19.0 through 6.19.11 are vulnerable. Version 6.19.12 and later include the fix.
How do I check if my server is vulnerable to CVE-2026-31724?
Run `uname -r` to check your kernel version. If it shows 6.19.x with x ≤ 11, your system is vulnerable. Additionally, run `lsmod | grep usb_eem` to confirm if the affected gadget driver is loaded.
Does Defensia detect CVE-2026-31724?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-31724 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/14730506b9e2a09d10c963a57a72ed528482fc15
- https://git.kernel.org/stable/c/2479c26019a4009d84c7b98031a9fd7f9871a16b
- https://git.kernel.org/stable/c/4ccdccff8febc5456aff684627f9a4c5c83b9346
- https://git.kernel.org/stable/c/a6b8bce01a30a8c05c034bbc36c34845d65d644f
- https://git.kernel.org/stable/c/b1d854462510f7b7c504bfd5f8ec19c0737ed5e4
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31724. Free for 1 server.
Get started free