Skip to main content

Linux Kernel EUVDEUVD-2026-24881

| CVE-2026-31504 HIGH
Use After Free (CWE-416)
2026-04-22 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-5v9p-3rfc-6rw2
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain local shell access
  2. Delivery
    Create AF_PACKET socket with fanout
  3. Exploit
    Bind socket to network interface
  4. Install
    Trigger concurrent device down/up events
  5. C2
    Win race condition during socket release
  6. Execute
    Dangling pointer in fanout array
  7. Impact
    Corrupt kernel memory via packet processing
  8. Step 8
    Escalate privileges to root

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires local access with low-privilege user credentials capable of creating AF_PACKET sockets (typically requires CAP_NET_RAW capability or membership in groups with packet socket permissions). Attack requires the ability to create packet sockets with fanout enabled and bind them to network interfaces, which is available to users with network raw socket permissions. Exploitation depends on winning a narrow race condition window between bind_lock release in packet_release() and po->num being zeroed, requiring the attacker to precisely time NETDEV_UP network device notifications concurrent with socket closure. Success probability increases if the attacker can trigger device up/down events through network namespace operations or interface configuration changes. Attack is limited to systems where the kernel version contains the vulnerable code path (Linux 3.1 through unpatched versions of current stable branches). Does not affect systems where unprivileged users cannot create AF_PACKET sockets or trigger network device state changes. User interaction is not required (UI:N) and attack can be fully automated once local access is achieved.

Impact

Despite the high CVSS 7.8 score indicating local privilege escalation potential, real-world risk appears moderate based on multiple signals. The EPSS score of 0.02% (7th percentile) suggests extremely low probability of exploitation in the wild. The vulnerability is not listed in CISA KEV, confirming no known active exploitation at time of analysis. Attack complexity is low (AC:L) but requires local access (AV:L) and low-privilege user credentials (PR:L), limiting the attack surface to scenarios where attackers already have local system access. The race condition nature of the vulnerability means exploitation timing is sensitive and may require multiple attempts. However, the technical impact is severe: successful exploitation enables kernel memory corruption with potential for complete system compromise (C:H/I:H/A:H). The vulnerability has existed since Linux 3.1 (introduced over a decade ago), yet the absence of public exploit code and lack of exploitation evidence suggests the race window is narrow or exploitation is technically challenging. Primary risk exists in multi-tenant environments, containers, or systems where untrusted local users have shell access. Organizations running affected kernel versions should prioritize patching for high-security environments, but this is not an emergency-level threat comparable to remotely exploitable or actively exploited vulnerabilities. The availability of patches across all maintained stable kernel branches (5.10 LTS through 7.0) enables straightforward remediation.

Exploit ScenarioDerived

An attacker with local shell access and low-privilege credentials creates an AF_PACKET socket with fanout enabled and binds it to a network interface. The attacker triggers a rapid sequence of network device down/up events (via network namespace manipulation or device configuration changes if permitted) while simultaneously closing the packet socket. By winning the race condition between packet_release() releasing bind_lock and zeroing po->num, the NETDEV_UP notification re-registers the socket into the fanout array while it's being freed. This creates a dangling pointer in the fanout group's member array. Subsequent packet arrivals on that interface trigger fanout distribution logic that dereferences the freed socket structure, causing kernel memory corruption. The attacker can potentially leverage this memory corruption for privilege escalation to root by manipulating kernel data structures or achieving information disclosure by reading freed memory contents.

Act Now Prioritize within 24-48h. Why: Active threat signals + CRITICAL/HIGH severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 27, 2026

Use-after-free in Linux kernel packet socket handling allows local attackers with low privileges to achieve kernel memory corruption, potentially leading to privilege escalation, information disclosure, or denial of service. The vulnerability stems from a race condition in packet_release() where NETDEV_UP events can re-register a socket into a fanout group's array after cleanup begins but before the socket number is zeroed, leaving dangling pointers. Patches are available across multiple stable kernel versions (5.10.253, 5.15.203, 6.1.168, 6.6.131, 6.12.80, 6.18.21, 6.19.11, 7.0). EPSS score is low (0.02%, 7th percentile) and no active exploitation is confirmed (not in CISA KEV), suggesting limited real-world exploitation despite high CVSS 7.8 rating.

RemediationAI

Upgrade to patched kernel versions: 5.10.253 or later for 5.10.x LTS branch, 5.15.203+ for 5.15.x LTS, 6.1.168+ for 6.1.x LTS, 6.6.131+ for 6.6.x stable, 6.12.80+ for 6.12.x, 6.18.21+ for 6.18.x, 6.19.11+ for 6.19.x, or 7.0+ for mainline. Fix commits are referenced at https://git.kernel.org/stable/ with specific commit hashes for each branch. If immediate kernel upgrade is not feasible, consider compensating controls: restrict access to AF_PACKET sockets by setting /proc/sys/kernel/unprivileged_userns_clone to 0 to prevent unprivileged users from creating network namespaces (may break containerized applications), use kernel capabilities restrictions via seccomp or AppArmor to deny CAP_NET_RAW to untrusted processes (prevents packet socket creation but breaks legitimate packet capture tools like tcpdump for those users), or restrict user shell access in multi-tenant environments. These mitigations reduce attack surface but do not eliminate the vulnerability; kernel patching remains the definitive solution. Verify patch application by checking kernel version with 'uname -r' and confirming it matches or exceeds the patched versions listed above.

Affected VersionsENISA

Linux ce06b03e60fc19c680d1bf873e779bf11c2fc518 <ee642b1962caa9aa231c01abbd58bc453ae6b66e
Linux patch: 5.15.203
Linux ce06b03e60fc19c680d1bf873e779bf11c2fc518 <654386baef228c2992dbf604c819e4c7c35fc71b
Linux patch: 6.19.11
Linux patch: 6.18.21
Linux ce06b03e60fc19c680d1bf873e779bf11c2fc518 <d0c7cdc15fdf8c4f91aca1928e52295d175b6ec6
Linux ce06b03e60fc19c680d1bf873e779bf11c2fc518 <1b4c03f8892d955385c202009af7485364731bb9
Linux patch: 6.12.80
Linux ce06b03e60fc19c680d1bf873e779bf11c2fc518 <75fe6db23705a1d55160081f7b37db9665b1880b
Linux ce06b03e60fc19c680d1bf873e779bf11c2fc518 <ceccbfc6de720ad633519a226715989cfb065af1
Linux 3.1
Linux patch: 6.1.168
Linux patch: 6.6.131
Linux patch: 0
Linux ce06b03e60fc19c680d1bf873e779bf11c2fc518 <42cfd7898eeed290c9fb73f732af1f7d6b0a703e
Linux patch: 7.0
Linux patch: 5.10.253
Linux ce06b03e60fc19c680d1bf873e779bf11c2fc518 <42156f93d123436f2a27c468f18c966b7e5db796

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability affects the Linux kernel's AF_PACKET socket implementation, specifically the packet fanout mechanism used for load-balancing packet capture across multiple sockets. Fanout groups maintain an array of member sockets for distributing packets. The race condition occurs during socket cleanup in packet_release() when it releases the bind_lock before zeroing po->num (the protocol number field). If a NETDEV_UP network device notification arrives during this window, the packet_notifier() function can call __fanout_link() to re-register the socket into the fanout array. This creates a use-after-free condition because the socket is simultaneously being released while being added back to active data structures. The fanout reference counting becomes inconsistent (f->num_members incremented but f->sk_ref not incremented), leading to potential memory corruption. The vulnerability was introduced in commit ce06b03e60fc and affects kernel versions from 3.1 onward until patched. The fix addresses the root cause by setting po->num to zero within the bind_lock critical section, preventing the notification handler from identifying the socket as eligible for re-registration.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SUSE HIGH
Red Hat 6.3 MEDIUM

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Patch released
Apr 28, 2026 - 15:07 nvd
Patch available
CVSS changed
Apr 27, 2026 - 15:22 NVD
7.8 (HIGH)
Patch available
Apr 22, 2026 - 16:33 EUVD
CVE Published
Apr 22, 2026 - 14:16 nvd
HIGH 7.8

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-31504 is a use-after-free vulnerability in the Linux kernel packet socket handler that allows local attackers with low privileges to corrupt kernel memory and potentially escalate privileges or cause system outages. Organizations running vulnerable kernel versions face risk to system stability and data confidentiality, particularly in multi-tenant environments where unprivileged users have system access.

Business Impact: High
Compensating Controls

Apply vendor patch to kernel versions: 5.10.253, 5.15.203, 6.1.168, 6.6.131, 6.12.80, 6.18.21, 6.19.11, or 7.0 or later. Interim mitigation pending patch deployment: restrict unprivileged user access to systems where feasible; monitor for unexpected kernel panic or memory corruption events; disable unprivileged packet socket access via sysctl (net.packet.fanout) if operationally acceptable.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Threat Intel
2
1 source
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat Yes
Deciding rule
Active threat signals + CRITICAL/HIGH severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: +10
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

Threat IntelligenceMISP

CISA Advisories
Sources: CISA (public domain)

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy