CVE-2026-43421
kernel: usb: gadget: f_ncm: Fix net_device lifecycle with device_move
Overview
Description
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: f_ncm: Fix net_device lifecycle with device_move
The network device outlived its parent gadget device during
disconnection, resulting in dangling sysfs links and null pointer
dereference problems.
A prior attempt to solve this by removing SET_NETDEV_DEV entirely [1]
was reverted due to power management ordering concerns and a NO-CARRIER
regression.
A subsequent attempt to defer net_device allocation to bind [2] broke
1:1 mapping between function instance and network device, making it
impossible for configfs to report the resolved interface name. This
results in a regression where the DHCP server fails on pmOS.
Use device_move to reparent the net_device between the gadget device and
/sys/devices/virtual/ across bind/unbind cycles. This preserves the
network interface across USB reconnection, allowing the DHCP server to
retain their binding.
Introduce gether_attach_gadget()/gether_detach_gadget() helpers and use
__free(detach_gadget) macro to undo attachment on bind failure. The
bind_count ensures device_move executes only on the first bind.
[1] https://lore.kernel.org/lkml/f2a4f9847617a0929d62025748384092e5f35cce.camel@crapouillou.net/
[2] https://lore.kernel.org/linux-usb/795ea759-7eaf-4f78-81f4-01ffbf2d7961@ixit.cz/
Source: OX vulnerability database
Severity
5.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-476
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 40 fixes
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | bpftool +10 | 6.1.177-1.ph5 |
debian 4 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux | affected |
| 11 | linux-6-1 | 6.1.176-1~deb11u1 |
| 12 | linux | 6.1.176-1 |
| 13 | linux | 6.12.85-1 |
| 14 | linux | 6.19.10-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| linux | 6.1.176-1 |
root.io debian 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux +1 | 5.10.251-5.root.io.85 |
| 12 | linux +1 | 6.1.172-1.root.io.132 |
| 13 | rootio-linux | 6.12.85-1 |
root.io ubuntu 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | rootio-linux | affected |
| 24.04 | linux +1 | 6.8.0-117.117.root.io.68 |
ubuntu 2 releases · 27 packages
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | linux +16 | affected |
| 22.04 | linux-oracle-6-8 | 6.8.0-1058.61~22.04.1 |
| 22.04 | linux-nvidia-6-8 | 6.8.0-1059.62~22.04.1 |
| 22.04 | linux-ibm-6-8 | 6.8.0-1061.62~22.04.1 |
| 22.04 | linux-aws-6-8 | 6.8.0-1061.64~22.04.1 |
| 22.04 | linux-azure-fde-6-8 | 6.8.0-1062.69~22.04.1 |
22 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-43421
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-784472.html
- git.kernel.org https://git.kernel.org/linus/ec35c1969650e7cb6c8a91020e568ed46e3551b0 (7.0-rc4)
- git.kernel.org https://git.kernel.org/stable/c/36c41e9724c9a7a7cda37f5a4e9d94f25c8031c4
- git.kernel.org https://git.kernel.org/stable/c/7c97366f5dac5255e60a317ffe3a5b18f3745547
- git.kernel.org https://git.kernel.org/stable/c/85acaba2f42b557499bab3608307f17bf13beb69
- git.kernel.org https://git.kernel.org/stable/c/93f116c3393a22acab96ad1bef12b2572eb80ca4
- git.kernel.org https://git.kernel.org/stable/c/e584cb58a2ea7ff4d3a4bc43d5ca512ed3ecb77d
- git.kernel.org https://git.kernel.org/stable/c/ec35c1969650e7cb6c8a91020e568ed46e3551b0
- lore.kernel.org https://lore.kernel.org/linux-cve-announce/2026050847-CVE-2026-43421-82b4@gregkh/T
Show all 26 references
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-43421
- ubuntu.com https://ubuntu.com/security/notices/USN-8567-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8574-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8574-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8574-3
- ubuntu.com https://ubuntu.com/security/notices/USN-8595-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8595-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8595-3
- ubuntu.com https://ubuntu.com/security/notices/USN-8596-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8606-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8607-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8608-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8609-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8619-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8665-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-43421
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.