Skip to main content

Linux Kernel CVE-2026-53034

| EUVDEUVD-2026-38902 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-06-24 Linux GHSA-pwx6-fvf4-6686
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Gain local BPF capability
  2. Delivery
    Create and insert AF_UNIX socket into sockmap
  3. Exploit
    Race connect() with BPF_MAP_UPDATE_ELEM
  4. Execution
    sock_map_sk_state_allowed() passes on TCP_ESTABLISHED
  5. Persist
    Dereference NULL unix_peer(sk)
  6. Impact
    Kernel panic / system crash

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

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

Exploitation Conditions

Exploitation requires a local process with the ability to load BPF programs - either via CAP_BPF or CAP_NET_ADMIN privilege, or on kernels where unprivileged BPF is permitted (kernel.unprivileged_bpf_disabled=0). The BPF program type must be one permitted to perform sockmap updates by the kernel verifier: BPF_PROG_TYPE_TRACING/BPF_TRACE_ITER, BPF_PROG_TYPE_SOCK_OPS, BPF_PROG_TYPE_SOCKET_FILTER, BPF_PROG_TYPE_SCHED_CLS, BPF_PROG_TYPE_SCHED_ACT, BPF_PROG_TYPE_XDP, BPF_PROG_TYPE_SK_REUSEPORT, BPF_PROG_TYPE_FLOW_DISSECTOR, or BPF_PROG_TYPE_SK_LOOKUP. An AF_UNIX stream socket must be inserted into a BPF sockmap. The race window is narrow: exploitation requires precise CPU timing between unix_stream_connect() on CPU1 and a sockmap BPF_MAP_UPDATE_ELEM on CPU0. Limiting factors: BPF capability restriction, the narrow race window making reliable exploitation difficult, and the impact being limited to local denial-of-service (kernel panic) with no code execution path.

Impact

The NVD CVSS 3.1 score of 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) reflects a local denial-of-service only - no confidentiality or integrity impact. EPSS at 0.18% (8th percentile) is very low, consistent with the absence of any CISA KEV listing or reported in-the-wild exploitation. The AC:L rating from NVD may be slightly optimistic: successfully racing connect() against a sockmap update requires precise CPU timing across two threads, which adds practical difficulty not captured by AC:L. Real-world impact is limited to systems where untrusted local users can load BPF programs (i.e., systems with unprivileged BPF enabled or where CAP_BPF/CAP_NET_ADMIN is delegated to non-root users) and can manipulate AF_UNIX sockets inserted into a sockmap. In hardened enterprise environments where BPF program loading is restricted to privileged users, the practical attack surface is minimal. This is a real but low-priority issue except for multi-tenant Linux environments (containers with relaxed BPF policies, shared-access servers) where local privilege boundaries are significant.

Exploit ScenarioDerived

A local attacker with access to BPF program loading (CAP_BPF or systems with unprivileged_bpf_disabled=0) creates an AF_UNIX stream socket, inserts it into a BPF sockmap, and then races two threads: one calling connect() on the socket, and one issuing BPF_MAP_UPDATE_ELEM to update the sockmap. When the update thread reads unix_peer(sk) == NULL in the narrow window after sk_state is set to TCP_ESTABLISHED but before the peer pointer is assigned, the kernel dereferences address 0x0 and panics, crashing the host or container. No public exploit code exists and the race window is narrow, requiring timing coordination that limits reliable exploitation.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 15, 2026

Null pointer dereference in the Linux kernel's BPF sockmap subsystem allows a local low-privileged user to crash the system via a race condition between AF_UNIX socket connection and sockmap proto update. The flaw exists because unix_stream_connect() sets sk_state to TCP_ESTABLISHED before assigning the peer pointer, creating a window where unix_stream_bpf_update_proto() dereferences unix_peer(sk) while it is still NULL. No public exploit exists and EPSS sits at the 8th percentile; this is not in CISA KEV, and the narrow race window constrains practical exploitation.

RemediationAI

Update to a patched Linux kernel version in the applicable stable branch: 6.1.175, 6.6.141, 6.12.91, 6.18.33, 7.0.10, or 7.1. Patch commits are available at kernel.org stable repositories, including https://git.kernel.org/stable/c/75b7d3b3f8bd4e59eb3af1b11a43c64c0c2db6f4 (one of six fix commits across branches). Where an immediate kernel update is not possible, restrict BPF program loading by removing CAP_BPF and CAP_NET_ADMIN from non-root users and disabling unprivileged BPF via 'sysctl -w kernel.unprivileged_bpf_disabled=1' - this prevents the BPF sockmap update path from being reachable by untrusted local users, though it limits legitimate BPF-based network tooling. Additionally, using seccomp profiles or AppArmor/SELinux policies to block the bpf(2) syscall for untrusted processes further reduces exposure. These controls carry the trade-off of breaking eBPF-dependent observability and networking tools that rely on low-privilege BPF access.

Affected VersionsENISA

Linux c63829182c37c2d6d0608976d15fa61ebebe9e6b <37bfcd164161b47d00b1c3bd20adc816a6977ce0
Linux patch: 0
Linux patch: 7.1
Linux patch: 6.6.141
Linux c63829182c37c2d6d0608976d15fa61ebebe9e6b <4913c94a3adcdbb64c552110c0c243cb1fdbb317
Linux c63829182c37c2d6d0608976d15fa61ebebe9e6b <dca38b7734d2ea00af4818ff3ae836fab33d5d5a
Linux patch: 6.1.175
Linux patch: 7.0.10
Linux c63829182c37c2d6d0608976d15fa61ebebe9e6b <a94d3dd78ee8b63e6b8ad629081c952c93ee5a10
Linux patch: 6.18.33
Linux 5.15
Linux c63829182c37c2d6d0608976d15fa61ebebe9e6b <041eb6348d73ee5e15fc8161f1eac5a6e8289ca0
Linux patch: 6.12.91
Linux c63829182c37c2d6d0608976d15fa61ebebe9e6b <75b7d3b3f8bd4e59eb3af1b11a43c64c0c2db6f4

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

The affected subsystem is the Linux kernel's BPF sockmap, which allows BPF programs to redirect socket traffic by hooking into socket protocol update paths. AF_UNIX stream sockets inserted into a sockmap are subject to unix_stream_bpf_update_proto(), which reads the socket peer via unix_peer(sk). The root cause (CWE-476: NULL Pointer Dereference) is a TOCTOU race: unix_stream_connect() writes sk_state = TCP_ESTABLISHED (via WRITE_ONCE) before it assigns the peer with unix_peer(sk) = newsk plus the required memory barrier. sock_map_sk_state_allowed() observes TCP_ESTABLISHED and allows the proto update to proceed, trusting the socket is fully initialized - it is not. Alternative fixes (reordering the peer assignment before sk_state, or taking unix_state_lock()) were rejected: reordering required an additional memory barrier on the hot connect path, and taking unix_state_lock() (a spinlock) in process context while BPF_PROG_TYPE_SCHED_CLS/ACT may also attempt it in softirq context would cause a deadlock. The accepted fix is a NULL check on unix_peer(sk) inside unix_stream_bpf_update_proto(). CPE: cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*.

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

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 4.7 MEDIUM

Race condition requires precise cross-CPU timing (AC:H); BPF capability grants local unprivileged access (PR:L); impact is solely a kernel panic with no data exposure.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 4.7 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat 7.0 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

4
CVSS changed
Jul 15, 2026 - 14:52 NVD
5.5 (MEDIUM)
Patch available
Jun 24, 2026 - 18:02 EUVD
CVE Published
Jun 24, 2026 - 16:29 nvd
MEDIUM 5.5
CVE Published
Jun 24, 2026 - 16:29 cve.org
UNKNOWN (no severity yet)

DescriptionNVD

In the Linux kernel, the following vulnerability has been resolved:

bpf, sockmap: Fix af_unix null-ptr-deref in proto update

unix_stream_connect() sets sk_state (WRITE_ONCE(sk->sk_state, TCP_ESTABLISHED)) _before_ it assigns a peer (unix_peer(sk) = newsk). sk_state TCP_ESTABLISHED makes sock_map_sk_state_allowed() believe that socket is properly set up, which would include having a defined peer. IOW, there's a window when unix_stream_bpf_update_proto() can be called on socket which still has unix_peer(sk) NULL.

CPU0 bpf CPU1 connect -------- ------------

WRITE_ONCE(sk->sk_state, TCP_ESTABLISHED) sock_map_sk_state_allowed(sk) ... sk_pair = unix_peer(sk) sock_hold(sk_pair) sock_hold(newsk) smp_mb__after_atomic() unix_peer(sk) = newsk

BUG: kernel NULL pointer dereference, address: 0000000000000080 RIP: 0010:unix_stream_bpf_update_proto+0xa0/0x1b0 Call Trace: sock_map_link+0x564/0x8b0 sock_map_update_common+0x6e/0x340 sock_map_update_elem_sys+0x17d/0x240 __sys_bpf+0x26db/0x3250 __x64_sys_bpf+0x21/0x30 do_syscall_64+0x6b/0x3a0 entry_SYSCALL_64_after_hwframe+0x76/0x7e

Initial idea was to move peer assignment _before_ the sk_state update[1], but that involved an additional memory barrier, and changing the hot path was rejected. Then a NULL check during proto update in unix_stream_bpf_update_proto() was considered[2], but the follow-up discussion[3] focused on the root cause, i.e. sockmap update taking a wrong lock. Or, more specifically, missing unix_state_lock()[4]. In the end it was concluded that teaching sockmap about the af_unix locking would be unnecessarily complex[5]. Complexity aside, since BPF_PROG_TYPE_SCHED_CLS and BPF_PROG_TYPE_SCHED_ACT are allowed to update sockmaps, sock_map_update_elem() taking the unix lock, as it is currently implemented in unix_state_lock(): spin_lock(&unix_sk(s)->lock), would be problematic. unix_state_lock() taken in a process context, followed by a softirq-context TC BPF program attempting to take the same spinlock -- deadlock[6]. This way we circled back to the peer check idea[2].

[1]: https://lore.kernel.org/netdev/ba5c50aa-1df4-40c2-ab33-a72022c5a32e@rbox.co/ [2]: https://lore.kernel.org/netdev/20240610174906.32921-1-kuniyu@amazon.com/ [3]: https://lore.kernel.org/netdev/7603c0e6-cd5b-452b-b710-73b64bd9de26@linux.dev/ [4]: https://lore.kernel.org/netdev/CAAVpQUA+8GL_j63CaKb8hbxoL21izD58yr1NvhOhU=j+35+3og@mail.gmail.com/ [5]: https://lore.kernel.org/bpf/CAAVpQUAHijOMext28Gi10dSLuMzGYh+jK61Ujn+fZ-wvcODR2A@mail.gmail.com/ [6]: https://lore.kernel.org/bpf/dd043c69-4d03-46fe-8325-8f97101435cf@linux.dev/

Summary of scenarios where af_unix/stream connect() may race a sockmap update:

  1. connect() vs. bpf(BPF_MAP_UPDATE_ELEM), i.e. sock_map_update_elem_sys()

Implemented NULL check is sufficient. Once assigned, socket peer won't be released until socket fd is released. And that's not an issue because sock_map_update_elem_sys() bumps fd refcnf.

  1. connect() vs BPF program doing update

Update restricted per verifier.c:may_update_sockmap() to

BPF_PROG_TYPE_TRACING/BPF_TRACE_ITER BPF_PROG_TYPE_SOCK_OPS (bpf_sock_map_update() only) BPF_PROG_TYPE_SOCKET_FILTER BPF_PROG_TYPE_SCHED_CLS BPF_PROG_TYPE_SCHED_ACT BPF_PROG_TYPE_XDP BPF_PROG_TYPE_SK_REUSEPORT BPF_PROG_TYPE_FLOW_DISSECTOR BPF_PROG_TYPE_SK_LOOKUP

Plus one more race to consider:

CPU0 bpf CPU1 connect -------- ------------

WRITE_ONCE(sk->sk_state, TCP_ESTABLISHED) sock_map_sk_state_allowed(sk) sock_hold(newsk) smp_mb__after_atomic()

---truncated---

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Ubiquitous
Linux kernel underlies the vast majority of servers, cloud, and container infrastructure globally.
Data Quality
6 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
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· derived
High

Priority Score

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

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 16.0 Affected

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