CVE-2026-31504 json
net: fix fanout UAF in packet_release() via NETDEV_UP race
published 2026-04-22 6 mo ago modified 2026-10-19 20 d ago also EUVD-2026-24881
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 1%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 5.10.253, 5.15.203, 6.1.168, 6.6.131, 6.12.80, 6.18.21, 6.19.11, 7.0
- linux Debian 12 6.1.170-1
- linux Debian 13 6.12.85-1
- linux Debian 14 6.19.11-1
debian advisories DEBIAN-CVE-2026-31504
- linux Ubuntu 22.04 LTS 5.15.0-179.189
- linux Ubuntu 24.04 LTS 6.8.0-117.117
- linux Ubuntu 25.10 6.17.0-29.29
- linux-aws Ubuntu 22.04 LTS 5.15.0-1108.115
- linux-aws Ubuntu 24.04 LTS 6.8.0-1055.58
- linux-aws Ubuntu 25.10 6.17.0-1015.15
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1108.117
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1058.61
ubuntu advisories UBUNTU-CVE-2026-31504
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-default SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Live Patching 15 SP6 +1 more 6.4.0-150600.23.112.1
- kernel-64kb SLE Module for Basesystem 15 SP7 6.4.0-150700.53.55.1
- kernel-syms SLE Module for Development Tools 15 SP7 6.4.0-150700.53.55.1
- kernel-azure SLE Module for Public Cloud 15 SP7 6.4.0-150700.53.55.1
- kernel-source SLE Module for Development Tools 15 SP7, SLE Module for Basesystem 15 SP7 6.4.0-150700.53.55.1
- kernel-default SLE Workstation Extension 15 SP7, SLE Module for Legacy 15 SP7, SLE Module for Basesystem 15 SP7 +2 more 6.4.0-150700.53.55.1
- kernel-zfcpdump SLE Module for Basesystem 15 SP7 6.4.0-150700.53.55.1
- kernel-obs-build SLE Module for Development Tools 15 SP7 6.4.0-150700.53.55.1
suse advisories SUSE-SU-2026:2195-1SUSE-SU-2026:2238-1SUSE-SU-2026:22509-1SUSE-SU-2026:22508-1SUSE-SU-2026:22507-1SUSE-SU-2026:22288-1
- git.kernel.org/stable/c/ee642b1962caa9aa231c01abbd58bc453ae6b66e commit
- git.kernel.org/stable/c/42cfd7898eeed290c9fb73f732af1f7d6b0a703e commit
- git.kernel.org/stable/c/1b4c03f8892d955385c202009af7485364731bb9 commit
- git.kernel.org/stable/c/654386baef228c2992dbf604c819e4c7c35fc71b commit
- git.kernel.org/stable/c/75fe6db23705a1d55160081f7b37db9665b1880b commit
- git.kernel.org/stable/c/d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6 commit
- git.kernel.org/stable/c/ceccbfc6de720ad633519a226715989cfb065af1 commit
- git.kernel.org/stable/c/42156f93d123436f2a27c468f18c966b7e5db796 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-31504 updated cvss 6.3
kernel: net: fix fanout UAF in packet_release() via NETDEV_UP race
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelaffected: workaround, no fix available “To mitigate this issue, prevent the af_packet module from being loaded. See https://access.redhat.com/solutions/41278 for instructions.”
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-26-295-11 updated cvss 7.8
Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP
-
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.7 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.7 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.7 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.7 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.7affected: mitigation, no fix available
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
cisa ICSA-26-209-04 updated cvss 7.8
Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP
-
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.6 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.6 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.6 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.6 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.6affected: mitigation, no fix available
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 23 d ago
Exploit prediction
0.10% chance of exploitation in the next 30 days, higher than 1% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP
- Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP
Classification
- Weakness
- Technology feeds
References
-
git.kernel.org
/stable/c/ee642b1962caa9aa231c01abbd58bc453ae6b66e
patch
-
git.kernel.org
/stable/c/42cfd7898eeed290c9fb73f732af1f7d6b0a703e
patch
-
git.kernel.org
/stable/c/1b4c03f8892d955385c202009af7485364731bb9
patch
-
git.kernel.org
/stable/c/654386baef228c2992dbf604c819e4c7c35fc71b
patch
-
git.kernel.org
/stable/c/75fe6db23705a1d55160081f7b37db9665b1880b
patch
-
git.kernel.org
/stable/c/d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6
patch
-
git.kernel.org
/stable/c/ceccbfc6de720ad633519a226715989cfb065af1
patch
-
git.kernel.org
/stable/c/42156f93d123436f2a27c468f18c966b7e5db796
patch
- cert-portal.siemens.com /productcert/html/ssa-082556.html
- cert-portal.siemens.com /productcert/html/ssa-019113.html
- cert-portal.siemens.com /productcert/html/ssa-457936.html
Sources
- CVE List CVE-2026-31504
- NVD CVE-2026-31504
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.