# CVE-2026-89581: bpf, x86: Fix per-CPU address resolution into an extended register

> 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-26)
- **Published:** 2026-09-11T19:44:47.581Z
- **Modified:** 2026-10-19T09:17:54.180Z

## Who should check

- Anyone running Linux \>= 7bdbf7446305cb65c510c16d57cde82bc76b234a, \< 638bc3aada8ecdece184d5c15b100d489c9cccd7; \>= 7bdbf7446305cb65c510c16d57cde82bc76b234a, \< 6886642414f59f928728802dc2c972a9859e6310; \>= 7bdbf7446305cb65c510c16d57cde82bc76b234a, \< 6a19b18d458881bf3269a357cc6dc6db5eef4369; \>= 7bdbf7446305cb65c510c16d57cde82bc76b234a, \< 5bbbce02e500d47d8e259a45be5a7be9741d0533
- Anyone running Linux 6.10

## Description

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

bpf, x86: Fix per-CPU address resolution into an extended register

The destination of the per-CPU address MOV is encoded in ModRM.reg,
which is extended by REX.R, but the REX prefix is built with
add\_1mod(), which sets REX.B. REX.B extends ModRM.rm and SIB.base, and
this instruction addresses memory as disp32 with no base, so the bit
has no effect at all and the high register bit is simply lost.

Every is\_ereg() destination therefore resolves to the wrong register,
picking whichever one shares the low three bits:

  R5 -\> RAX    R7 -\> RBP    R8 -\> RSI    R9 -\> RDI

With BPF\_REG\_5, whose reg2hex is 0, the emitted

  65 49 03 04 25 \<off\>	add %gs:\<off\>,%rax

adds the per-CPU offset to RAX rather than R8. The destination keeps
the unadjusted address and RAX is clobbered, so the program goes on to
dereference a pointer that was never made per-CPU:

  BUG: unable to handle page fault for address: 0000607e386a8894
  RIP: bpf\_prog\_707837aafd2aa9ae\_update\_percpu\_data+0x93/0xc9
  Call Trace:
   \_\_bpf\_prog\_test\_run\_raw\_tp+0x2dc/0x7d0
   \_\_flush\_smp\_call\_function\_queue+0x1e9/0xc80
  Kernel panic - not syncing: Fatal exception in interrupt

R5 is the mildest of the four, aliasing a scratch register and faulting
at the store. R7 aliases RBP and would corrupt the frame pointer, R8
and R9 alias the argument registers.

Use add\_2mod() so the register goes through REX.R, matching how
add\_2reg() places it in ModRM.reg and how emit\_priv\_frame\_ptr()
hardcodes 0x4c for the same instruction with R9. Encodings for the
non-extended registers are unchanged.

Problem showed up when trying to resurrect BPF\_GCC CI (selftests built
with BPF\_GCC).

This has gone unnoticed because clang reloads the address into R1
before each per-CPU access, so the destination is never an extended
register. GCC keeps several per-CPU addresses live at once, and
test\_progs-bpf\_gcc panics the kernel in global\_percpu\_data/init, where
the address of a .percpu variable ends up in R5.

## Affected and fixed versions

- Linux: \>= 7bdbf7446305cb65c510c16d57cde82bc76b234a, \< 638bc3aada8ecdece184d5c15b100d489c9cccd7; \>= 7bdbf7446305cb65c510c16d57cde82bc76b234a, \< 6886642414f59f928728802dc2c972a9859e6310; \>= 7bdbf7446305cb65c510c16d57cde82bc76b234a, \< 6a19b18d458881bf3269a357cc6dc6db5eef4369; \>= 7bdbf7446305cb65c510c16d57cde82bc76b234a, \< 5bbbce02e500d47d8e259a45be5a7be9741d0533 (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- Upgrade Linux to 5bbbce02e500d47d8e259a45be5a7be9741d0533 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-89581. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89581.md
Affected: Linux >= 7bdbf7446305cb65c510c16d57cde82bc76b234a, < 638bc3aada8ecdece184d5c15b100d489c9cccd7; >= 7bdbf7446305cb65c510c16d57cde82bc76b234a, < 6886642414f59f928728802dc2c972a9859e6310; >= 7bdbf7446305cb65c510c16d57cde82bc76b234a, < 6a19b18d458881bf3269a357cc6dc6db5eef4369; >= 7bdbf7446305cb65c510c16…
Fixed in: Linux 638bc3aada8ecdece184d5c15b100d489c9cccd7, Linux 6886642414f59f928728802dc2c972a9859e6310, Linux 6a19b18d458881bf3269a357cc6dc6db5eef4369, Linux 5bbbce02e500d47d8e259a45be5a7be9741d0533

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-89581 being exploited?

There is no confirmed exploitation: CVE-2026-89581 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-26).

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

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

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

Linux \>= 7bdbf7446305cb65c510c16d57cde82bc76b234a, \< 638bc3aada8ecdece184d5c15b100d489c9cccd7; \>= 7bdbf7446305cb65c510c16d57cde82bc76b234a, \< 6886642414f59f928728802dc2c972a9859e6310; \>= 7bdbf7446305cb65c510c16d57cde82bc76b234a, \< 6a19b18d458881bf3269a357cc6dc6db5eef4369; \>= 7bdbf7446305cb65c510c16d57cde82bc76b234a, \< 5bbbce02e500d47d8e259a45be5a7be9741d0533; Linux 6.10.

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

Yes. Fixed in Linux 638bc3aada8ecdece184d5c15b100d489c9cccd7, Linux 6886642414f59f928728802dc2c972a9859e6310, Linux 6a19b18d458881bf3269a357cc6dc6db5eef4369, Linux 5bbbce02e500d47d8e259a45be5a7be9741d0533. Upgrade Linux to 5bbbce02e500d47d8e259a45be5a7be9741d0533 or later.

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

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

- other: <https://git.kernel.org/stable/c/638bc3aada8ecdece184d5c15b100d489c9cccd7>
- other: <https://git.kernel.org/stable/c/6886642414f59f928728802dc2c972a9859e6310>
- other: <https://git.kernel.org/stable/c/6a19b18d458881bf3269a357cc6dc6db5eef4369>
- other: <https://git.kernel.org/stable/c/5bbbce02e500d47d8e259a45be5a7be9741d0533>

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

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