# CVE-2026-139624: bpf, x86: Fix timed may_goto with private stack

- Severity: not scored yet
- 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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-11-30T13:36:28.261Z
- Modified: 2026-11-30T14:19:45.310Z
- Assigned by: Linux

## Description

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

bpf, x86: Fix timed may_goto with private stack

arch_bpf_timed_may_goto() computes the address of count and timestamp
as rbp + offset. When the prog uses private stack the JIT maps r10 to r9
and nothing is reserved under rbp, so bpf_check_timed_may_goto() reads
and writes the timestamp in the kernel stack, where
arch_bpf_timed_may_goto() has just saved r0-r5 or further down.
The following loop in fentry prog with r0-r5 set to zero:

  1: may_goto +2
     r6 += 1
     goto 1b

leaves r3 with ktime in it when the prog has 64 bytes of stack and
ends after 65535 iterations when it has 128.

Add the frame pointer to the offset in the JIT, where rbp vs r9 is
known, and pass the pointer in AX.

arm64 and powerpc JITs keep the address of private stack in BPF_REG_FP
and are not affected.

(As written by CVE List.)

## Affected

- Linux Linux: from 2fb761823eadf2fdfb6fdf146c4b94807b4bc3ba before 1545deb8c5266812cfb4f355fbdb8436bbae83bb; from 2fb761823eadf2fdfb6fdf146c4b94807b4bc3ba before f430d4a1c8c631a5f264f5d9df41bfe859155679; from 2fb761823eadf2fdfb6fdf146c4b94807b4bc3ba before bb83425b3cdcb7bb3c629598a4d5efad9cc80733; 6.15 (not affected: before 6.15; from 6.18.66 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/1545deb8c5266812cfb4f355fbdb8436bbae83bb>
- <https://git.kernel.org/stable/c/f430d4a1c8c631a5f264f5d9df41bfe859155679>
- <https://git.kernel.org/stable/c/bb83425b3cdcb7bb3c629598a4d5efad9cc80733>

## Sources

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

---

Page: https://cve.day/CVE-2026-139624 · Whole record: https://cve.day/CVE-2026-139624.json · Rebuilt by cve.day 2026-11-30T14:33:30.925Z
