Local system crash via XDP link race
Published May 21, 2024 · Updated May 11, 2026
Use-after-free in the Linux kernel XDP subsystem allows local users to crash the system by racing link attachment with device removal. Between dev_get_by_index() and dev_xdp_attach_link(), device unregistration can free the net_device while link->dev retains its address, so bpf_xdp_link_release() later dereferences freed memory. Triggering the race requires local low-privileged access and affects availability only, producing a kernel fault or panic rather than data disclosure or modification.
Summary
What happened
Use-after-free in the Linux kernel XDP subsystem allows local users to crash the system by racing link attachment with device removal. Between dev_get_by_index() and dev_xdp_attach_link(), device unregistration can free the net_device while link->dev retains its address, so bpf_xdp_link_release() later dereferences freed memory. Triggering the race requires local low-privileged access and affects availability only, producing a kernel fault or panic rather than data disclosure or modification.
The record
- CVE
- CVE-2021-47299
- Published
- May 21, 2024
- Updated
- May 11, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1499
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 21, 2024CVE publishedPublication date reported by the CVE source.
- May 11, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.9
- Affected versionversion=aa8d3a716b59db6c1ad6c68fb8aa05e31980da60 <5acc7d3e8d342858405fbbc671221f676b547ce7
- Affected versionversion=aa8d3a716b59db6c1ad6c68fb8aa05e31980da60 <a7537dc73e69ad9c0b67ad24ad3ebee954ed0af6
- Affected versionversion=aa8d3a716b59db6c1ad6c68fb8aa05e31980da60 <ca9ba1de8f09976b45ccc8e655c51c6201992139
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo