<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 04 Dec 2026 19:38:18 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-139163 — bpf: Keep stack arguments in arch_bpf_timed_may_goto()</title>
      <link>https://db.gcve.eu/vuln/cve-2026-139163</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;bpf: Keep stack arguments in arch_bpf_timed_may_goto()&lt;/p&gt;
&lt;p&gt;The JITs pass the first stack arguments of a call in registers:&lt;/p&gt;
&lt;p&gt;x86-64    r9       argument 6
  arm64     x5-x7    arguments 6-8
  riscv64   a5-a7    arguments 6-8&lt;/p&gt;
&lt;p&gt;&amp;#39;*(u64 *)(r11 - 8) = rX&amp;#39; writes such a register in the caller.
&amp;#39;rX = *(u64 *)(r11 + 8)&amp;#39; 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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;*(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&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;bpf: Keep stack arguments in arch_bpf_timed_may_goto()&lt;/p&gt;
&lt;p&gt;The JITs pass the first stack arguments of a call in registers:&lt;/p&gt;
&lt;p&gt;x86-64    r9       argument 6
  arm64     x5-x7    arguments 6-8
  riscv64   a5-a7    arguments 6-8&lt;/p&gt;
&lt;p&gt;&amp;#39;*(u64 *)(r11 - 8) = rX&amp;#39; writes such a register in the caller.
&amp;#39;rX = *(u64 *)(r11 + 8)&amp;#39; 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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;*(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&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-139163</guid>
    </item>
  </channel>
</rss>
