MEDIUM 5.5

CVE-2026-53032: Linux Kernel NULL Pointer Dereference in eBPF Map Handling

A NULL pointer dereference vulnerability exists in the Linux kernel's eBPF map handling code. When a scalar register is incorrectly stored into a kernel pointer (kptr) slot, the kernel fails to validate the pointer type before attempting to dereference memory, causing a kernel crash. This is a local privilege issue that requires an attacker with local access and the ability to run eBPF programs.

Source data · NVD / CISA · public domain

CVSS
3.1 · 5.5 MEDIUM · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses (CWE)
CWE-476
Affected products
1 configuration(s)
Published / Modified
2026-06-24 / 2026-07-14

NVD description (verbatim)

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix NULL deref in map_kptr_match_type for scalar regs Commit ab6c637ad027 ("bpf: Fix a bpf_kptr_xchg() issue with local kptr") refactored map_kptr_match_type() to branch on btf_is_kernel() before checking base_type(). A scalar register stored into a kptr slot has no btf, so the btf_is_kernel(reg->btf) call dereferences NULL. Move the base_type() != PTR_TO_BTF_ID guard before any reg->btf access.

5 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-53032 is a NULL pointer dereference (CWE-476) in the map_kptr_match_type() function of the Linux kernel's eBPF subsystem. The vulnerability was introduced by a refactoring in commit ab6c637ad027 that reorganized type-checking logic to branch on btf_is_kernel() before validating the base register type. When a scalar register (which has no BTF metadata) is stored into a kptr slot, the code attempts to call btf_is_kernel(reg->btf), dereferencing a NULL pointer and triggering a kernel panic. The fix involves moving the base_type() != PTR_TO_BTF_ID guard check to occur before any access to reg->btf, preventing NULL dereference on scalar registers.

Business impact

This vulnerability enables local denial of service attacks against systems running affected Linux kernels, particularly those that permit unprivileged eBPF program loading or execution. Attackers can crash the kernel without data theft or privilege escalation, disrupting service availability. Organizations running containerized workloads, Kubernetes clusters, or systems where eBPF is actively used face elevated risk. The impact is limited to availability; confidentiality and integrity are not affected.

Affected systems

The Linux kernel is affected by this vulnerability. The specific affected versions depend on when commit ab6c637ad027 was merged and the kernel version at which the fix is included. Check your kernel version against the vendor advisory to determine if you are running a vulnerable build. Systems with eBPF enabled and unprivileged user access to eBPF are at highest risk.

Exploitability

The vulnerability requires local access and the ability to execute eBPF programs, typically via unprivileged BPF syscalls. An attacker must craft a malicious eBPF program that stores a scalar register into a kptr slot to trigger the NULL dereference. Exploitation is straightforward once the precondition (local eBPF execution capability) is met, but it is not remotely exploitable. This is not currently tracked in the CISA KEV catalog, suggesting in-the-wild exploitation has not been reported at publication time.

Remediation

Update the Linux kernel to a patched version that includes the fix for map_kptr_match_type(). Verify the specific kernel version against your vendor's security advisory, as patch version numbers vary across distributions. As a temporary control, restrict eBPF program loading to trusted users and administrators by disabling unprivileged BPF via the kernel.unprivileged_bpf_disabled sysctl parameter.

Patch guidance

Consult your Linux distribution's security advisory for the specific patched kernel version (e.g., mainline kernel version post-fix, or the next stable release from your distributor). Apply updates through your standard patch management process. For distributions with long-term support kernels, backported fixes may be available in security update channels. Verify the fix is included by confirming that the base_type() check precedes btf_is_kernel() in map_kptr_match_type() within the patched kernel source.

Detection guidance

Monitor kernel logs for NULL pointer dereference errors (typically 'BUG: unable to handle page fault for address' or similar) originating from the bpf subsystem, particularly in map_kptr_match_type(). Use kernel debugging tools (kdump, kdb) to capture crash dumps for analysis. Intrusion detection systems can flag attempts to load suspicious eBPF programs, though the fix is primarily defensive. Audit which users and processes have eBPF execution privileges.

Why prioritize this

Although the CVSS score is MEDIUM (5.5), this issue is a straightforward denial-of-service vector that requires only local execution capability. Prioritize this for patching in environments where eBPF is widely used (container orchestration, serverless platforms, or security observability tools) or where unprivileged users have eBPF access. Systems with strict eBPF restrictions (unprivileged BPF disabled) face lower immediate risk but should still be patched to maintain defense-in-depth.

Risk score, explained

The CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H score reflects a local attack vector requiring low privileges, low complexity, no user interaction, and high availability impact. The lack of confidentiality or integrity impact limits the severity, but the ease of triggering a kernel panic justifies the MEDIUM rating. Organizations with extensive eBPF deployments should treat this as higher priority than the base score alone suggests.

Frequently asked questions

Can this vulnerability be exploited remotely?

No. The vulnerability requires local access and the ability to execute eBPF programs on the target system. Remote exploitation is not possible.

What is the difference between a kernel panic and a privilege escalation?

A kernel panic is a denial-of-service condition that crashes the kernel, taking the entire system offline. This vulnerability does not allow privilege escalation; it only crashes the kernel. The attacker gains no elevated access or data theft capability.

If I have unprivileged eBPF disabled, am I safe?

Setting kernel.unprivileged_bpf_disabled=1 prevents unprivileged users from loading eBPF programs, reducing the attack surface. However, privileged users (e.g., root, containers with CAP_BPF) can still load eBPF programs. Patching remains the authoritative fix.

How do I check my kernel version against this vulnerability?

First, identify whether your kernel includes commit ab6c637ad027 but not the fix (moving base_type() before btf_is_kernel()). Check your distribution's security advisory for explicit kernel version ranges. Most distributions will release a patched kernel package through their security update channels; consult their advisory for exact version numbers.

This analysis is based on the CVE record published on 2026-06-24 and modified 2026-07-14. Specific affected kernel versions, patch versions, and distribution-specific guidance must be verified against your vendor's official security advisory. This vulnerability is not currently tracked as actively exploited in the wild (CISA KEV catalog). Exploitation requires local access and eBPF execution privileges. SEC.co provides this information for educational and risk assessment purposes; implement patches and controls according to your organization's change management and testing procedures. Source: NVD (public-domain), retrieved 2026-07-31. Analysis generated by SEC.co (claude-haiku-4-5).