# CVE-2026-31504: net: fix fanout UAF in packet\_release() via NETDEV\_UP race

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.15% (percentile 2, 2026-11-26)
- **CWE:** CWE-416, CWE-362
- **Published:** 2026-04-22T13:54:23.862Z
- **Modified:** 2026-11-11T23:10:00.263Z

## 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

## 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

- Linux: \>= ce06b03e60fc19c680d1bf873e779bf11c2fc518, \< ee642b1962caa9aa231c01abbd58bc453ae6b66e; \>= ce06b03e60fc19c680d1bf873e779bf11c2fc518, \< 42cfd7898eeed290c9fb73f732af1f7d6b0a703e; \>= ce06b03e60fc19c680d1bf873e779bf11c2fc518, \< 1b4c03f8892d955385c202009af7485364731bb9; \>= ce06b03e60fc19c680d1bf873e779bf11c2fc518, \< 654386baef228c2992dbf604c819e4c7c35fc71b; \>= ce06b03e60fc19c680d1bf873e779bf11c2fc518, \< 75fe6db23705a1d55160081f7b37db9665b1880b; \>= ce06b03e60fc19c680d1bf873e779bf11c2fc518, \< d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6; \>= ce06b03e60fc19c680d1bf873e779bf11c2fc518, \< ceccbfc6de720ad633519a226715989cfb065af1; \>= ce06b03e60fc19c680d1bf873e779bf11c2fc518, \< 42156f93d123436f2a27c468f18c966b7e5db796 (cvelist)
- Linux: 3.1 (cvelist)

## Mitigation

- Upgrade Linux to 42156f93d123436f2a27c468f18c966b7e5db796 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/ee642b1962caa9aa231c01abbd58bc453ae6b66e>
- patch: <https://git.kernel.org/stable/c/42cfd7898eeed290c9fb73f732af1f7d6b0a703e>
- patch: <https://git.kernel.org/stable/c/1b4c03f8892d955385c202009af7485364731bb9>
- patch: <https://git.kernel.org/stable/c/654386baef228c2992dbf604c819e4c7c35fc71b>
- patch: <https://git.kernel.org/stable/c/75fe6db23705a1d55160081f7b37db9665b1880b>
- patch: <https://git.kernel.org/stable/c/d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6>
- patch: <https://git.kernel.org/stable/c/ceccbfc6de720ad633519a226715989cfb065af1>
- patch: <https://git.kernel.org/stable/c/42156f93d123436f2a27c468f18c966b7e5db796>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31504>

HTML: <https://flawdb.com/CVE-2026-31504> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31504>
