CVE-2026-31504·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net: fix fanout UAF in packet_release() via NETDEV_UP race `packet_release()` has a race window where `NETDEV_UP` can re-register a socket into a fanout group's `arr[]` array. The re-registration is not cleaned up by `fanout_release()`, leaving a dangling pointer in the fanout array. `packet_release()` does NOT zero `po->num` in its `bind_lock` section. After releasing `bind_lock`, `po->num` is still non-zero and `po->ifindex` still matches the bound device. A concurrent `packet_notifier(NETDEV_UP)` that already found the socket in `sklist` can re-register the hook. For fanout sockets, this re-registration calls `__fanout_link(sk, po)` which adds the socket back into `f->arr[]` and increments `f->num_members`, but does NOT increment `f->sk_ref`. The fix sets `po->num` to zero in `packet_release` while `bind_lock` is held to prevent NETDEV_UP from linking, preventing the race window. This bug was found following an additional audit with Claude Code based on CVE-2025-38617.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.19.11
- 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.14% — higher than 3% 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.
Read the two together. CVE-2026-31504 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.14%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.19
Until: 6.19.11
Fixed in: 6.19.11
How to fix this CVE
Update the Linux kernel to version 6.19.11 or later to resolve a use-after-free vulnerability in the packet socket fanout mechanism. This vulnerability can be triggered through a race condition between socket release and network device up events, potentially leading to memory corruption. Apply the kernel update immediately and reboot your system to activate the patched kernel.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check the currently running kernel version and confirm it is 6.19.x where x < 11
- Verify packet socket usage with 'ss -tlnp | grep packet' or check /proc/net/packet for active packet sockets
- Monitor kernel logs with 'sudo journalctl -k -n 100 | grep -i 'fanout\|packet\|UAF\|use-after-free' for any related error messages
- After patching, run 'uname -r' again and confirm the version is 6.19.11 or higher, then verify no residual socket references exist with 'cat /proc/net/packet'
FAQ
What is CVE-2026-31504?
CVE-2026-31504 is a use-after-free vulnerability in the Linux kernel's packet socket fanout mechanism. A race condition between socket release and NETDEV_UP events allows a dangling pointer to persist in the fanout array, potentially enabling memory corruption and privilege escalation.
Is CVE-2026-31504 being actively exploited?
No, CVE-2026-31504 is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog, and no public exploit code is available at this time.
What versions of Kernel are affected by CVE-2026-31504?
Linux kernel versions 6.19 through 6.19.10 are vulnerable. The vulnerability is fixed in kernel version 6.19.11 and later.
How do I check if my server is vulnerable to CVE-2026-31504?
Run 'uname -r' to check your kernel version. If the output shows 6.19.0 through 6.19.10, your system is vulnerable and requires an immediate kernel update.
Does Defensia detect CVE-2026-31504?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server running versions 6.19 through 6.19.10, CVE-2026-31504 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1b4c03f8892d955385c202009af7485364731bb9
- https://git.kernel.org/stable/c/42156f93d123436f2a27c468f18c966b7e5db796
- https://git.kernel.org/stable/c/42cfd7898eeed290c9fb73f732af1f7d6b0a703e
- https://git.kernel.org/stable/c/654386baef228c2992dbf604c819e4c7c35fc71b
- https://git.kernel.org/stable/c/75fe6db23705a1d55160081f7b37db9665b1880b
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31504. Free for 1 server.
Get started free