# CVE-2026-53081: bpf: Enforce regsafe base id consistency for BPF_ADD_CONST scalars

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-06-24T16:30:21.959Z
- Modified: 2026-10-19T20:19:01.123Z
- Weaknesses: CWE-386
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 98d7ca374ba4b39e7535613d40e159f09ca14da2 before 13c02881e49aac4c82b261faa26db9edf2567231; from 98d7ca374ba4b39e7535613d40e159f09ca14da2 before 691adf738817275368ed56311b7d798d617823a3; from 98d7ca374ba4b39e7535613d40e159f09ca14da2 before 7d73c72cccac651acc891377a5e623e4021c6380; from 98d7ca374ba4b39e7535613d40e159f09ca14da2 before 2f2ec8e7730e21fc9bd49e0de9cdd58213ea24d0; 6.11 (not affected: before 6.11; from 6.12.91 up to 6.12.*; from 6.18.33 up to 6.18.*; from 7.0.10 up to 7.0.*; from 7.1 up to *)
- kernel: no versions given
- kernel-rt: no versions given
- linux linux_kernel: from 6.11 before 6.12.91; from 6.13 before 6.18.33; from 6.19 before 7.0.10

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <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> (patch)
- <https://access.redhat.com/security/cve/CVE-2026-53081> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2492322> (issue-tracking, third-party-advisory)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-53081.json> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-53081](https://www.cve.org/CVERecord?id=CVE-2026-53081), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-53081](https://nvd.nist.gov/vuln/detail/CVE-2026-53081), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-53081 · Whole record: https://cve.day/CVE-2026-53081.json · Rebuilt by cve.day 2026-11-25T22:59:25.687Z
