CVE-2026-31504
net: fix fanout UAF in packet_release() via NETDEV_UP race
Check your servers for CVE-2026-31504
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31504 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.15%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 2.03% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 16 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from ce06b03e60fc19c680d1bf873e779bf11c2fc518, before ee642b1962caa9aa231c01abbd58bc453ae6b66e affected from ce06b03e60fc19c680d1bf873e779bf11c2fc518, before 42cfd7898eeed290c9fb73f732af1f7d6b0a703e affected from ce06b03e60fc19c680d1bf873e779bf11c2fc518, before 1b4c03f8892d955385c202009af7485364731bb9 affected from ce06b03e60fc19c680d1bf873e779bf11c2fc518, before 654386baef228c2992dbf604c819e4c7c35fc71b affected from ce06b03e60fc19c680d1bf873e779bf11c2fc518, before 75fe6db23705a1d55160081f7b37db9665b1880b affected from ce06b03e60fc19c680d1bf873e779bf11c2fc518, before d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6 affected from ce06b03e60fc19c680d1bf873e779bf11c2fc518, before ceccbfc6de720ad633519a226715989cfb065af1 affected from ce06b03e60fc19c680d1bf873e779bf11c2fc518, before 42156f93d123436f2a27c468f18c966b7e5db796
Other versions: unaffected
|
| Linux |
affected 3.1 unaffected before 3.1 unaffected from 5.10.253 up to and including 5.10.* unaffected from 5.15.203 up to and including 5.15.* unaffected from 6.1.168 up to and including 6.1.* unaffected from 6.6.131 up to and including 6.6.* unaffected from 6.12.80 up to and including 6.12.* unaffected from 6.18.21 up to and including 6.18.* unaffected from 6.19.11 up to and including 6.19.* unaffected 7.0 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31504 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31504
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-31504
trivy image --scanners vuln IMAGE | grep CVE-2026-31504
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/ee642b1962caa9aa231c01abbd58bc453ae6b66e git.kernel.org
- https://git.kernel.org/stable/c/42cfd7898eeed290c9fb73f732af1f7d6b0a703e git.kernel.org
- https://git.kernel.org/stable/c/1b4c03f8892d955385c202009af7485364731bb9 git.kernel.org
- https://git.kernel.org/stable/c/654386baef228c2992dbf604c819e4c7c35fc71b git.kernel.org
- https://git.kernel.org/stable/c/75fe6db23705a1d55160081f7b37db9665b1880b git.kernel.org
- https://git.kernel.org/stable/c/d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6 git.kernel.org
- https://git.kernel.org/stable/c/ceccbfc6de720ad633519a226715989cfb065af1 git.kernel.org
- https://git.kernel.org/stable/c/42156f93d123436f2a27c468f18c966b7e5db796 git.kernel.org
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html cert-portal.siemens.com
Source: the record CVE-2026-31504 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse