CVE-2026-31504: net: fix fanout UAF in packet_release() via NETDEV_UP race
Vulnerability summary
CVE-2026-31504 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.10% chance of exploitation in the next 30 days, higher than 1% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 122 · Related 137Showing 100 of 140.
Timeline
- 22-04-2026PublishedVulnerability first disclosed.
- 19-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.10%
Chance of exploitation in the next 30 days
Percentile
1%
Versus all other CVEs
30-day change
Decrease -0.08 pp
From 0.18% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-416Use After FreeThe product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
- CWE-362Concurrent Execution using Shared Resource with Improper SynchronizationThe product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu156 products
- linuxAll versions (No fix recorded) | < 4.4.0-281.315 | < 4.15.0-250.262 | < 5.4.0-230.250 | < 5.15.0-179.189 | < 6.8.0-117.117 | < 6.17.0-29.29
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 4.4.0-1155.161 | < 4.4.0-1193.208 | < 4.15.0-1192.205 | < 5.4.0-1159.169 | < 5.15.0-1108.115 | < 6.8.0-1055.58 | < 6.17.0-1015.15
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ ce06b03e60fc19c680d1bf873e779bf11c2fc518, < ee642b1962caa9aa231c01abbd58bc453ae6b66e | ≥ ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 42cfd7898eeed290c9fb73f732af1f7d6b0a703e | ≥ ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 1b4c03f8892d955385c202009af7485364731bb9 | ≥ ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 654386baef228c2992dbf604c819e4c7c35fc71b | ≥ ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 75fe6db23705a1d55160081f7b37db9665b1880b | ≥ ce06b03e60fc19c680d1bf873e779bf11c2fc518, < d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6 | ≥ ce06b03e60fc19c680d1bf873e779bf11c2fc518, < ceccbfc6de720ad633519a226715989cfb065af1 | ≥ ce06b03e60fc19c680d1bf873e779bf11c2fc518, < 42156f93d123436f2a27c468f18c966b7e5db796 | 3.1
- linux_kernel≥ 3.1.1, < 5.10.253 | ≥ 5.11, < 5.15.203 | ≥ 5.16, < 6.1.168 | ≥ 6.2, < 6.6.131 | ≥ 6.7, < 6.12.80 | ≥ 6.13, < 6.18.21 | ≥ 6.19, < 6.19.11 | 3.1 | 7.0:rc1 | 7.0:rc2 | 7.0:rc3 | 7.0:rc4 | 7.0:rc5 | 7.0:rc6 | 7.0:rc7
Debian1 product
- linux< 6.1.170-1 | < 6.12.85-1 | < 6.19.11-1
3 vendors · 159 products