CVE-2026-53081CWE-386

CVE-2026-53081

High · published June 24, 2026

CVSS v3.1
7.8
EPSS
0%
Percentile
7.2
In the wild
Unconfirmed
What it is

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

bpf: Enforce regsafe base id consistency for BPF_ADD_CONST scalars

When regsafe() compares two scalar registers that both carry

BPF_ADD_CONST, check_scalar_ids() maps their full compound id

(aka base | BPF_ADD_CONST flag) as one idmap entry. However,

it never verifies that the underlying base ids, that is, with

the flag stripped are consistent with existing idmap mappings.

This allows construction of two verifier states where the old

state has R3 = R2 + 10 (both sharing base id A) while the current

state has R3 = R4 + 10 (base id C, unrelated to R2). The idmap

creates two independent entries: A->B (for R2) and A|flag->C|flag

(for R3), without catching that A->C conflicts with A->B. State

pruning then incorrectly succeeds.

Fix this by additionally verifying base ID mapping consistency

whenever BPF_ADD_CONST is set: after mapping the compound ids,

also invoke check_ids() on the base IDs (flag bits stripped).

This ensures that if A was already mapped to B from comparing

the source register, any ADD_CONST derivative must also derive

from B, not an unrelated C.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00180 · 7.2th percentile
Weakness
CWE-386 · Symbolic Name not Mapping to Correct Object
Published
2026-06-24T21:17Z
Affected products (3)
ProductVersionsFixed in
linux/linux_kernel≥ 6.11, < 6.12.916.12.91
linux/linux_kernel≥ 6.13, < 6.18.336.18.33
linux/linux_kernel≥ 6.19, < 7.0.107.0.10
References (7)
EPSS history
Timeline
  • 24 JUN 16:30Z
    bpf: Enforce regsafe base id consistency for BPF_ADD_CONST scalars
    cvelistv5