Vulnerability · Published Apr 22, 2026 · Assigned by Linux
CVE-2026-31504net: fix fanout UAF in packet_release() via NETDEV_UP race
High 7.8
In plain English
A high-severity race condition in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 1% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 6.1.170-1 | DEBIAN-CVE-2026-31504 |
| Debian:13 | linux | 6.12.85-1 | DEBIAN-CVE-2026-31504 |
| Debian:14 | linux | 6.19.11-1 | DEBIAN-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux | 5.15.0-179.189 | USN-8279-1 |
| Ubuntu:22.04:LTS | linux | 5.15.0-179.189 | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux | 6.8.0-117.117 | UBUNTU-CVE-2026-31504 |
| Ubuntu:25.10 | linux | 6.17.0-29.29 | USN-8277-1 |
| Ubuntu:25.10 | linux | 6.17.0-29.29 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1108.115 | USN-8279-1 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1108.115 | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1055.58 | UBUNTU-CVE-2026-31504 |
| Ubuntu:25.10 | linux-aws | 6.17.0-1015.15 | USN-8277-1 |
| Ubuntu:25.10 | linux-aws | 6.17.0-1015.15 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-aws-6.14 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-aws-6.17 | 6.17.0-1017.17~24.04.1 | USN-8374-1 |
| Ubuntu:24.04:LTS | linux-aws-6.17 | 6.17.0-1017.17~24.04.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1057.60~22.04.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1114.123 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1114.123 | USN-8426-2 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1056.62 | UBUNTU-CVE-2026-31504 |
| Ubuntu:25.10 | linux-azure | 6.17.0-1015.15 | UBUNTU-CVE-2026-31504 |
| Ubuntu:25.10 | linux-azure | 6.17.0-1015.15 | USN-8310-1 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-azure-6.11 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-azure-6.14 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-azure-6.17 | 6.17.0-1015.15~24.04.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-azure-6.17 | 6.17.0-1015.15~24.04.1 | USN-8310-1 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1059.65~22.04.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1114.123 | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-azure-fde | 6.8.0-1058.65 | UBUNTU-CVE-2026-31504 |
| Ubuntu:25.10 | linux-azure-fde | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-azure-fde-6.14 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.8 | 6.8.0-1058.65~22.04.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-azure-nvidia | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-azure-nvidia-6.14 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1108.117 | USN-8279-1 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1108.117 | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1058.61 | UBUNTU-CVE-2026-31504 |
| Ubuntu:25.10 | linux-gcp | 6.17.0-1018.19 | USN-8374-1 |
| Ubuntu:25.10 | linux-gcp | 6.17.0-1018.19 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-gcp-6.11 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-gcp-6.14 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-gcp-6.17 | 6.17.0-1018.19~24.04.1 | USN-8374-1 |
| Ubuntu:24.04:LTS | linux-gcp-6.17 | 6.17.0-1018.19~24.04.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1060.63~22.04.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1104.110 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1104.110 | USN-8279-1 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1054.60 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1091.99 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1091.99 | USN-8279-1 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1041.44 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-hwe-6.11 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-hwe-6.14 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-hwe-6.17 | 6.17.0-29.29~24.04.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-hwe-6.17 | 6.17.0-29.29~24.04.1 | USN-8277-1 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-124.124~22.04.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1102.105 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1102.105 | USN-8279-1 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1055.56 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1055.56~22.04.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1103.109 | USN-8279-1 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1103.109 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1100.105 | USN-8279-1 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1100.105 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-179.189 | USN-8351-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-179.189 | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-117.117.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-lowlatency-hwe-6.11 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-117.117.1~22.04.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1103.104 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1103.104 | USN-8279-1 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1054.57 | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-nvidia-6.11 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-nvidia-6.17 | 6.17.0-1026.26 | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-nvidia-6.17 | 6.17.0-1026.26 | USN-8508-1 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1054.57~22.04.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1054.57.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1060.60 | USN-8279-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1060.60 | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-nvidia-tegra | 6.8.0-1025.25 | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-nvidia-tegra | 6.8.0-1025.25 | USN-8350-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1049.49 | USN-8279-3 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1049.49 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-oem-6.11 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-oem-6.14 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-oem-6.17 | 6.17.0-1023.23 | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-oem-6.17 | 6.17.0-1023.23 | USN-8277-1 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1105.111 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1105.111 | USN-8279-1 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1054.55 | UBUNTU-CVE-2026-31504 |
| Ubuntu:25.10 | linux-oracle | 6.17.0-1014.14 | UBUNTU-CVE-2026-31504 |
| Ubuntu:25.10 | linux-oracle | 6.17.0-1014.14 | USN-8277-1 |
| Ubuntu:24.04:LTS | linux-oracle-6.14 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-oracle-6.17 | 6.17.0-1014.14~24.04.1 | USN-8277-2 |
| Ubuntu:24.04:LTS | linux-oracle-6.17 | 6.17.0-1014.14~24.04.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1054.55~22.04.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1102.105 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1102.105 | USN-8279-1 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1056.60 | UBUNTU-CVE-2026-31504 |
| Ubuntu:25.10 | linux-raspi | 6.17.0-1017.17 | USN-8277-1 |
| Ubuntu:25.10 | linux-raspi | 6.17.0-1017.17 | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:25.10 | linux-realtime | 6.17.0-1013.15 | UBUNTU-CVE-2026-31504 |
| Ubuntu:25.10 | linux-realtime | 6.17.0-1013.15 | USN-8277-1 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:25.10 | linux-riscv | 6.17.0-29.29.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-riscv-6.14 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-riscv-6.17 | 6.17.0-29.29.1~24.04.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-riscv-6.8 | 6.8.0-117.117~22.04.1 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2026-31504 |
| Ubuntu:24.04:LTS | linux-xilinx | 6.8.0-1032.33 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1074.78 | UBUNTU-CVE-2026-31504 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1074.78 | USN-8528-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | ce06b03e60fc19c680d1bf873e779bf11c2fc518 – before ee642b1962caa9aa231c01abbd58bc453ae6b66ece06b03e60fc19c680d1bf873e779bf11c2fc518 – before 42cfd7898eeed290c9fb73f732af1f7d6b0a703ece06b03e60fc19c680d1bf873e779bf11c2fc518 – before 1b4c03f8892d955385c202009af7485364731bb9ce06b03e60fc19c680d1bf873e779bf11c2fc518 – before 654386baef228c2992dbf604c819e4c7c35fc71bce06b03e60fc19c680d1bf873e779bf11c2fc518 – before 75fe6db23705a1d55160081f7b37db9665b1880bce06b03e60fc19c680d1bf873e779bf11c2fc518 – before d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6ce06b03e60fc19c680d1bf873e779bf11c2fc518 – before ceccbfc6de720ad633519a226715989cfb065af1ce06b03e60fc19c680d1bf873e779bf11c2fc518 – before 42156f93d123436f2a27c468f18c966b7e5db796 |
| Linux | Linux | 3.1 |
Weakness: CWE-362 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://git.kernel.org/stable/c/ee642b1962caa9aa231c01abbd58bc453ae6b66e
- https://git.kernel.org/stable/c/42cfd7898eeed290c9fb73f732af1f7d6b0a703e
- https://git.kernel.org/stable/c/1b4c03f8892d955385c202009af7485364731bb9
- https://git.kernel.org/stable/c/654386baef228c2992dbf604c819e4c7c35fc71b
- https://git.kernel.org/stable/c/75fe6db23705a1d55160081f7b37db9665b1880b
- https://git.kernel.org/stable/c/d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6
- https://git.kernel.org/stable/c/ceccbfc6de720ad633519a226715989cfb065af1
- https://git.kernel.org/stable/c/42156f93d123436f2a27c468f18c966b7e5db796
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html