# CVE-2026-139623: bpf: Adjust pc-relative insn copied into its own patch

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; 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)
- **Published:** 2026-11-30T13:36:27.728Z
- **Modified:** 2026-12-01T06:17:46.780Z

## Who should check

- Anyone running Linux \>= 011832b97b311bb9e3c27945bc0d1089a14209c9, \< e254b23685ce3638605c0a80a72fcd8e9a9515d4; \>= 011832b97b311bb9e3c27945bc0d1089a14209c9, \< e76fc81e1f1494ee117be80ce843737aa7957371; \>= 011832b97b311bb9e3c27945bc0d1089a14209c9, \< c4a3a9f737e728fee10a1b9353bbfc89f04040d6; \>= 011832b97b311bb9e3c27945bc0d1089a14209c9, \< 67a3b916a7ae7c1a6bed08555417d444de6f5838
- Anyone running Linux 6.9

## Description

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

bpf: Adjust pc-relative insn copied into its own patch

bpf\_do\_misc\_fixups() inits may\_goto count by patching the first insn
of a subprog with \[ST, ST, first insn\]. bpf\_convert\_ctx\_accesses()
patches insn that needs a barrier with \[nospec, insn\].
bpf\_adj\_branches() doesn't adjust insns inside the patch, so when
the copy is a call, ld\_imm64 of a func or a jump that points backward
its target is off by the number of insns in front of it:

  static int A(void)  { return 1; }
  static int A2(void) { return 2; }
  static int B(void)
  {
          int i, ret = A();

          for (i = 0; i \< 10 && can\_loop; i++)
                  ...
          return ret;
  }

When A is placed in front of B and may\_goto is timed 'call A' becomes
call of A + 2. B returns 2 when A + 2 is the start of A2. Otherwise
the prog is rejected with "verifier bug: No program to jit at insn".

Add bpf\_adj\_moved\_insn() and use it for both copies.

## Affected and fixed versions

- Linux: \>= 011832b97b311bb9e3c27945bc0d1089a14209c9, \< e254b23685ce3638605c0a80a72fcd8e9a9515d4; \>= 011832b97b311bb9e3c27945bc0d1089a14209c9, \< e76fc81e1f1494ee117be80ce843737aa7957371; \>= 011832b97b311bb9e3c27945bc0d1089a14209c9, \< c4a3a9f737e728fee10a1b9353bbfc89f04040d6; \>= 011832b97b311bb9e3c27945bc0d1089a14209c9, \< 67a3b916a7ae7c1a6bed08555417d444de6f5838 (cvelist)
- Linux: 6.9 (cvelist)

## Technologies

Linux kernel

## Mitigation

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

Details: https://flawdb.com/CVE-2026-139623.md
Affected: Linux >= 011832b97b311bb9e3c27945bc0d1089a14209c9, < e254b23685ce3638605c0a80a72fcd8e9a9515d4; >= 011832b97b311bb9e3c27945bc0d1089a14209c9, < e76fc81e1f1494ee117be80ce843737aa7957371; >= 011832b97b311bb9e3c27945bc0d1089a14209c9, < c4a3a9f737e728fee10a1b9353bbfc89f04040d6; >= 011832b97b311bb9e3c2794…
Fixed in: Linux 67a3b916a7ae7c1a6bed08555417d444de6f5838

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

There is no confirmed exploitation: CVE-2026-139623 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

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

High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= 011832b97b311bb9e3c27945bc0d1089a14209c9, \< e254b23685ce3638605c0a80a72fcd8e9a9515d4; \>= 011832b97b311bb9e3c27945bc0d1089a14209c9, \< e76fc81e1f1494ee117be80ce843737aa7957371; \>= 011832b97b311bb9e3c27945bc0d1089a14209c9, \< c4a3a9f737e728fee10a1b9353bbfc89f04040d6; \>= 011832b97b311bb9e3c27945bc0d1089a14209c9, \< 67a3b916a7ae7c1a6bed08555417d444de6f5838; Linux 6.9.

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

Yes. Fixed in Linux 67a3b916a7ae7c1a6bed08555417d444de6f5838. Upgrade Linux to 67a3b916a7ae7c1a6bed08555417d444de6f5838 or later.

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

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/e254b23685ce3638605c0a80a72fcd8e9a9515d4>
- other: <https://git.kernel.org/stable/c/e76fc81e1f1494ee117be80ce843737aa7957371>
- other: <https://git.kernel.org/stable/c/c4a3a9f737e728fee10a1b9353bbfc89f04040d6>
- other: <https://git.kernel.org/stable/c/67a3b916a7ae7c1a6bed08555417d444de6f5838>

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

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