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.
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.
Published:
2026-11-30
Score:
n/a
EPSS:
n/a
KEV:
No
Impact:
n/a
Action:
n/a
Analysis and contextual insights are available on OpenCVE Cloud.
Remediation
No vendor fix or workaround currently provided.
Additional remediation guidance may be available on OpenCVE Cloud.
Tracking
Sign in to view the affected projects.
Advisories
No advisories yet.
References
History
Mon, 30 Nov 2026 14:00:00 +0000
| 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 |
|
Status: PUBLISHED
Assigner: Linux
Published:
Updated: 2026-11-30T13:36:28.261Z
Reserved: 2026-11-30T13:22:15.944Z
Link: CVE-2026-139624
No data.
Status : Received
Published: 2026-11-30T14:19:45.310
Modified: 2026-11-30T14:19:45.310
Link: CVE-2026-139624
No data.
OpenCVE Enrichment
No data.
Weaknesses
No weakness.