Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-31504

HIGH 7.8EPSS 2%

net: fix fanout UAF in packet_release() via NETDEV_UP race

Mitigation

  • Upgrade Linux to 42156f93d123436f2a27c468f18c966b7e5db796 or later.

Who should check

  • Anyone running Linux >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < ee642b1962caa9aa231c01abbd58bc453ae6b66e; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 42cfd7898eeed290c9fb73f732af1f7d6b0a703e; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 1b4c03f8892d955385c202009af7485364731bb9; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 654386baef228c2992dbf604c819e4c7c35fc71b; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 75fe6db23705a1d55160081f7b37db9665b1880b; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < ceccbfc6de720ad633519a226715989cfb065af1; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 42156f93d123436f2a27c468f18c966b7e5db796
  • Anyone running Linux 3.1

Vulnerability facts

Affected
Linux >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < ee642b1962caa9aa231c01abbd58bc453ae6b66e; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 42cfd7898eeed290c9fb73f732af1f7d6b0a703e; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 1b4c03f8892d955385c202009af7485364731bb9; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 654386baef228c2992dbf604c819e4c7c35fc71b; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 75fe6db23705a1d55160081f7b37db9665b1880b; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < ceccbfc6de720ad633519a226715989cfb065af1; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 42156f93d123436f2a27c468f18c966b7e5db796; Linux 3.1
Fixed in
Linux 42cfd7898eeed290c9fb73f732af1f7d6b0a703e, Linux 1b4c03f8892d955385c202009af7485364731bb9, Linux 654386baef228c2992dbf604c819e4c7c35fc71b, Linux 75fe6db23705a1d55160081f7b37db9665b1880b, Linux 42156f93d123436f2a27c468f18c966b7e5db796
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.15% chance of exploitation in 30 days (percentile 2, 2026-11-26)
CWE
CWE-416, CWE-362
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < ee642b1962caa9aa231c01abbd58bc453ae6b66e; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 42cfd7898eeed290c9fb73f732af1f7d6b0a703e; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 1b4c03f8892d955385c202009af7485364731bb9; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 654386baef228c2992dbf604c819e4c7c35fc71b; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 75fe6db23705a1d55160081f7b37db9665b1880b; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < ceccbfc6de720ad633519a226715989cfb065af1; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 42156f93d123436f2a27c468f18c966b7e5db796—cvelist
Linux3.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-31504. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31504.md
Affected: Linux >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < ee642b1962caa9aa231c01abbd58bc453ae6b66e; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 42cfd7898eeed290c9fb73f732af1f7d6b0a703e; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 1b4c03f8892d955385c202009af7485364731bb9; >= ce06b03e60fc19c680d1bf8…
Fixed in: Linux 42cfd7898eeed290c9fb73f732af1f7d6b0a703e, Linux 1b4c03f8892d955385c202009af7485364731bb9, Linux 654386baef228c2992dbf604c819e4c7c35fc71b, Linux 75fe6db23705a1d55160081f7b37db9665b1880b, Linux 42156f93d123436f2a27c468f18c966b7e5db796

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-31504 being exploited?

There is no confirmed exploitation: CVE-2026-31504 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.15% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-31504?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2026-31504?

Linux >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < ee642b1962caa9aa231c01abbd58bc453ae6b66e; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 42cfd7898eeed290c9fb73f732af1f7d6b0a703e; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 1b4c03f8892d955385c202009af7485364731bb9; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 654386baef228c2992dbf604c819e4c7c35fc71b; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 75fe6db23705a1d55160081f7b37db9665b1880b; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < ceccbfc6de720ad633519a226715989cfb065af1; >= ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 42156f93d123436f2a27c468f18c966b7e5db796; Linux 3.1.

Is there a fix for CVE-2026-31504?

Yes. Fixed in Linux 42cfd7898eeed290c9fb73f732af1f7d6b0a703e, Linux 1b4c03f8892d955385c202009af7485364731bb9, Linux 654386baef228c2992dbf604c819e4c7c35fc71b, Linux 75fe6db23705a1d55160081f7b37db9665b1880b, Linux 42156f93d123436f2a27c468f18c966b7e5db796. Upgrade Linux to 42156f93d123436f2a27c468f18c966b7e5db796 or later.

How do I check if I'm affected by CVE-2026-31504?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors