CVE-2026-53032

bpf: Fix NULL deref in map_kptr_match_type for scalar regs

MEDIUM
5.5
CVSS Score
Published: June 24, 2026 at 04:29 PM UTC
Updated: July 14, 2026 at 07:54 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.1%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.4.16v ≥ 6.5.36.13 ≤ v < 6.18.336.19 ≤ v < 7.0.106.4.16 ≤ v < 6.56.5.3 ≤ v < 6.66.5.3 ≤ v < 6.6.1416.6 ≤ v < 6.12.916.6 ≤ v < 6.18.336.6 ≤ v < 6.6.1416.6 ≤ v < 7.0.106.6 ≤ v < 7.16.7 ≤ v < 6.12.914782968e0d631b0d8944dcfd4bf8fb49be0871016.4.166.5.36.6ab6c637ad0276e42f8acabcbc64932a6d346dab3af3d2e0f3a54e67806959d161e613457772babc5
Vendor states this is fixed in 0a36c1f72888bca0237295a4da19cd91821a90be (fixed)
Vendor states this is fixed in 4d0a375887ab4d49e4da1ff10f9606cab8f7c3ad (fixed)
Vendor states this is fixed in 520454e839710c327808c2fcc98e28cee77355fc (fixed)
Vendor states this is fixed in 6982653ce5f119982aa58f1af58e7bfbebf39252 (fixed)
Vendor states this is fixed in da1d615ce49a47986a8864e2371a26e97861085c (fixed)
Vendor states this is fixed in 6.12.91 (unaffected)
Vendor states this is fixed in 6.18.33 (unaffected)
Affected range stops below 6.5, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.6 (unaffected)
Vendor states this is fixed in 6.6.141 (unaffected)
Vendor states this is fixed in 7.0.10 (unaffected)
Vendor states this is fixed in 7.1 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card