CVE-2026-139624

bpf, x86: Fix timed may_goto with private stack

Published Nov 30, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

In the Linux kernel, the BPF JIT compiler for x86 incorrectly computes the address of a private stack frame during a timed may_goto loop, causing the timestamp to be read and written into a stack region that holds register save data. This miscalculation corrupts kernel stack memory, allowing an attacker to overwrite critical kernel data structures. The resulting corruption can lead to arbitrary code execution within kernel context, effectively elevating privileges or disrupting kernel operation.

Affected Systems

The issue affects the Linux kernel on x86 architecture. No specific kernel releases are enumerated in the advisory, so all kernel versions that contain the vulnerable bpf timed may_goto code are considered at risk until a patched version is applied.

Risk and Exploitability

No CVSS or EPSS score is provided, and the vulnerability is not listed in CISA’s KEV catalog, indicating no confirmed public exploits. Based on the description, it is inferred that an attacker would need local access to load a malicious BPF program that exploits the stack corruption to achieve privilege escalation. The attack would require the ability to load and execute BPF code in kernel mode, implying a local or privileged attacker, rather than remote exploitation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a patched release that includes the fix for the timed may_goto bug (e.g., the commit referenced in address https://git.kernel.org/stable/c/1545deb8c5266812cfb4f355fbdb8436bbae83bb).
  • If a kernel upgrade cannot be applied immediately, restrict BPF program loading by revoking CAP_SYS_ADMIN from untrusted users or disabling the BPF subsystem via system settings such as /proc/sys/net/core/bpf_jit_enable.
  • Monitor kernel logs for abnormal BPF activity or stack corruption events, and apply subsequent security patches as they become available.

Generated by OpenCVE AI on December 1, 2026 at 13:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-120
Type Values Removed Values Added
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.
Title bpf, x86: Fix timed may_goto with private stack
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:36 PM