Linux kernel BPF binds programs to netdevs that are going away
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
The Linux kernel from 6.3 can bind a BPF program to a network device that is being unregistered. The kernel registers the program on the device after the unregister step has already passed, so the device is freed while the program still points to it. The kernel then dereferences that freed device during program verification.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
In the Linux kernel, the following vulnerability has been resolved: bpf: Don't bind a program to a netdev that goes away bpf_prog_dev_bound_init() looks the device up, takes bpf_devs_lock and registers the device for the program. The reference it holds does not keep the device registered. If bpf_dev_bound_netdev_unregister() has run by the time the lock is taken, nobody takes the program off the device any more: the bpf_offload_netdev and offload->netdev point to a net_device that is freed as soon as the reference is dropped. bpf_dev_bound_resolve_kfunc() dereferences it while the program is verified, and a new device at the same address finds the old entry. unregister_netdevice_many_notify() leaves NETREG_REGISTERED before it calls bpf_dev_bound_netdev_unregister(), which takes bpf_devs_lock. Look at reg_state under that lock, and treat a device that goes like one that is not there.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Update the Linux kernel to 6.6.163, 6.12.119, 6.18.65, 7.3.6 or 7.4-rc1, which contain the fix. The sources list no vendor advisory for this fix.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA Linux (Linux) Fixed in 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139307
- 2026-11-30 Alias added: GHSA-v8xq-vg27-5g38
References
Other 5
- https://git.kernel.org/stable/c/b57c15624cb92827a372674085dcaea35c1d1a11
- https://git.kernel.org/stable/c/fb32cc5f1cb10c94a9cc0952a770d64700f733a3
- https://git.kernel.org/stable/c/ad08e9c9ba00935ad2f57a15a84ecdee240d4993
- https://git.kernel.org/stable/c/5566537a4070e8ead0bdae34455f1993d8b0ba3d
- https://git.kernel.org/stable/c/af929bc938e0d0ecd839e6fed9a2ce5eb5185e5c
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-139307 · CVE Program
- CVE-2026-139307 · NVD
- GHSA-v8xq-vg27-5g38 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences