# CVE-2026-53081: bpf: Enforce regsafe base id consistency for BPF\_ADD\_CONST scalars

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-29)
- **CWE:** CWE-386
- **Published:** 2026-06-24T16:30:21.959Z
- **Modified:** 2026-10-19T20:19:01.123Z

## Who should check

- Anyone running Linux \>= 98d7ca374ba4b39e7535613d40e159f09ca14da2, \< 13c02881e49aac4c82b261faa26db9edf2567231; \>= 98d7ca374ba4b39e7535613d40e159f09ca14da2, \< 691adf738817275368ed56311b7d798d617823a3; \>= 98d7ca374ba4b39e7535613d40e159f09ca14da2, \< 7d73c72cccac651acc891377a5e623e4021c6380; \>= 98d7ca374ba4b39e7535613d40e159f09ca14da2, \< 2f2ec8e7730e21fc9bd49e0de9cdd58213ea24d0
- Anyone running Linux 6.11

## Description

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.

## Affected and fixed versions

- Linux: \>= 98d7ca374ba4b39e7535613d40e159f09ca14da2, \< 13c02881e49aac4c82b261faa26db9edf2567231; \>= 98d7ca374ba4b39e7535613d40e159f09ca14da2, \< 691adf738817275368ed56311b7d798d617823a3; \>= 98d7ca374ba4b39e7535613d40e159f09ca14da2, \< 7d73c72cccac651acc891377a5e623e4021c6380; \>= 98d7ca374ba4b39e7535613d40e159f09ca14da2, \< 2f2ec8e7730e21fc9bd49e0de9cdd58213ea24d0 (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- Upgrade Linux to 2f2ec8e7730e21fc9bd49e0de9cdd58213ea24d0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-53081. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-53081.md
Affected: Linux >= 98d7ca374ba4b39e7535613d40e159f09ca14da2, < 13c02881e49aac4c82b261faa26db9edf2567231; >= 98d7ca374ba4b39e7535613d40e159f09ca14da2, < 691adf738817275368ed56311b7d798d617823a3; >= 98d7ca374ba4b39e7535613d40e159f09ca14da2, < 7d73c72cccac651acc891377a5e623e4021c6380; >= 98d7ca374ba4b39e7535613…
Fixed in: Linux 13c02881e49aac4c82b261faa26db9edf2567231, Linux 691adf738817275368ed56311b7d798d617823a3, Linux 7d73c72cccac651acc891377a5e623e4021c6380, Linux 2f2ec8e7730e21fc9bd49e0de9cdd58213ea24d0

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-53081 being exploited?

There is no confirmed exploitation: CVE-2026-53081 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-29).

### How serious is CVE-2026-53081?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-53081?

Linux \>= 98d7ca374ba4b39e7535613d40e159f09ca14da2, \< 13c02881e49aac4c82b261faa26db9edf2567231; \>= 98d7ca374ba4b39e7535613d40e159f09ca14da2, \< 691adf738817275368ed56311b7d798d617823a3; \>= 98d7ca374ba4b39e7535613d40e159f09ca14da2, \< 7d73c72cccac651acc891377a5e623e4021c6380; \>= 98d7ca374ba4b39e7535613d40e159f09ca14da2, \< 2f2ec8e7730e21fc9bd49e0de9cdd58213ea24d0; Linux 6.11.

### Is there a fix for CVE-2026-53081?

Yes. Fixed in Linux 13c02881e49aac4c82b261faa26db9edf2567231, Linux 691adf738817275368ed56311b7d798d617823a3, Linux 7d73c72cccac651acc891377a5e623e4021c6380, Linux 2f2ec8e7730e21fc9bd49e0de9cdd58213ea24d0. Upgrade Linux to 2f2ec8e7730e21fc9bd49e0de9cdd58213ea24d0 or later.

### How do I check if I'm affected by CVE-2026-53081?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/13c02881e49aac4c82b261faa26db9edf2567231>
- patch: <https://git.kernel.org/stable/c/691adf738817275368ed56311b7d798d617823a3>
- patch: <https://git.kernel.org/stable/c/7d73c72cccac651acc891377a5e623e4021c6380>
- patch: <https://git.kernel.org/stable/c/2f2ec8e7730e21fc9bd49e0de9cdd58213ea24d0>
- other: <https://access.redhat.com/security/cve/CVE-2026-53081>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2492322>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-53081.json>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-53081>

HTML: <https://flawdb.com/CVE-2026-53081> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-53081>
