Menu

Star on GitHub · 3.2k

CVE-2026-31504

7.8 · HIGH

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-regist…

Published Apr 22, 2026CWE-416EPSS 0.14%

Overview

CVE-2026-31504 is a high-severity vulnerability. It was published on April 22, 2026 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2026-31504?

CVE-2026-31504 is a high-severity vulnerability. It was published on April 22, 2026 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2026-31504?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2026-31504?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2026-31504?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2026-31504 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2026

View all