7.8

CVE-2026-31504: net: fix fanout UAF in packet_release() via NETDEV_UP race

Modified
AliasesUBUNTU-CVE-2026-31504USN-8361-2DEBIAN-CVE-2026-31504
Published 22-04-2026Last modified 19-10-2026

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.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.10%
0%100%
Low · -0.08 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 122 · Related 137
LSN-0122-1MGASA-2026-0108MGASA-2026-0110SUSE-SU-2026:21834-1SUSE-SU-2026:2195-1SUSE-SU-2026:22276-1

Showing 100 of 140.

Timeline

  1. 22-04-2026
    PublishedVulnerability first disclosed.
  2. 19-10-2026
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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

References

50 links
Show all 50 references