CVE-2026-139163

Not scored yetLast modified Nov 30, 2026

Description

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

bpf: Keep stack arguments in arch_bpf_timed_may_goto()

The JITs pass the first stack arguments of a call in registers:

x86-64 r9 argument 6 arm64 x5-x7 arguments 6-8 riscv64 a5-a7 arguments 6-8

'*(u64 *)(r11 - 8) = rX' writes such a register in the caller. 'rX = *(u64 *)(r11 + 8)' reads it in the callee. A call changes these registers. Thus the verifier accepts no call between the write and the call of the callee, and no call in the callee before the read.

may_goto is not a call for the verifier. But one time in 65535 iterations it calls arch_bpf_timed_may_goto(), and this function calls C code. It saves R0-R5 only.

*(u64 *)(r11 - 8) = 0 ; the verifier: argument 6 is 0 call sub sub: 1: may_goto 2f ; C code changes r9 goto 1b 2: r2 = *(u64 *)(r11 + 8) ; r2 is a kernel address r1 = map_value r1 += r2 *(u64 *)(r1 + 0) = 0

On x86-64 the C code changes r9 when the time of may_goto is up. With the hpet clocksource a look at the clock changes r9 too. The prog above crashes the kernel. LLVM does not emit such code: it reads stack arguments at the entry of a function, and it writes them immediately before the call.

Save and restore these registers too. The cost is 2 insns on x86-64, 4 on arm64 and 6 on riscv64, one time in 65535 iterations.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139164In the Linux kernel, the following vulnerability has been resolved: net: dsa: mv88e6xxx: fix 88E6171 statistics type The 88E6171 uses the CVE-2026-139165In the Linux kernel, the following vulnerability has been resolved: ksmbd: avoid races between named-pipe operations RPC IPC replies are mCVE-2026-139166In the Linux kernel, the following vulnerability has been resolved: devlink: region: fix snapshot id leak on kernel-allocated ids When DEVCVE-2026-139167In the Linux kernel, the following vulnerability has been resolved: net-sysfs: reject a one-entry RPS flow table store_rps_dev_flow_table_CVE-2026-1391687.5In the Linux kernel, the following vulnerability has been resolved: net: microchip: fdma: fix DCB corruption under sustained load __fdma_dCVE-2026-139169In the Linux kernel, the following vulnerability has been resolved: net: lan966x: release the in-flight slot of a stale TX skb lan966x_ptpCVE-2026-139176.5Insufficient validation of untrusted input in Chrome for iOS in Google Chrome on iOS prior to 150.0.7871.47 allowed a remote attacker who coCVE-2026-139170In the Linux kernel, the following vulnerability has been resolved: net: lan966x: fix the DB dataptr of frames from ndo_xdp_xmit lan966x_fCVE-2026-139171In the Linux kernel, the following vulnerability has been resolved: sched_ext: Reject scx_bpf_sub_grant/revoke() in tracing programs A traCVE-2026-139172In the Linux kernel, the following vulnerability has been resolved: sched_ext: Fix a lone IMMED task waiting behind a kept prev While dispCVE-2026-139173In the Linux kernel, the following vulnerability has been resolved: sched_ext: Fix queued bypassed tasks stalling when the host loses SCX_CCVE-2026-139174In the Linux kernel, the following vulnerability has been resolved: sched_ext: Fix the bypass load balancer stranding tasks on cpus where t
CVE-2026-139163: Unscored | Vulnix