<?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 18:45:59 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-139320 — bpf: Look at all 64 bits of a BPF_JSET mask on 32-bit</title>
      <link>https://db.gcve.eu/vuln/cve-2026-139320</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: Look at all 64 bits of a BPF_JSET mask on 32-bit&lt;/p&gt;
&lt;p&gt;In the branch of a BPF_JSET which is taken, the verifier can learn
something about the register only if the mask has a single bit: then this
bit is set. regs_refine_cond_op() tests this with is_power_of_2(val) and
then ORs val into var_off.&lt;/p&gt;
&lt;p&gt;val is a u64, but is_power_of_2() takes an unsigned long. On a 32-bit
kernel it only sees the lower half of the mask. For&lt;/p&gt;
&lt;p&gt;if r1 &amp;amp; 0xffffffff80000000 goto l&lt;/p&gt;
&lt;p&gt;which is a BPF_JSET | BPF_K with an immediate of 0x80000000, the lower
half is a power of two. So the verifier takes all 33 bits for set at l,
while the branch is taken if any of them is. A mask of 0x100000001 from a
register does the same for bit 0.&lt;/p&gt;
&lt;p&gt;The log of an i386 kernel, for r6 = bpf_get_prandom_u32() &amp;lt;&amp;lt; 31:&lt;/p&gt;
&lt;p&gt;3: (45) if r6 &amp;amp; 0x80000000 goto pc+2
	from 3 to 6: R6=0xffffffff80000000 R10=fp0
	6: (77) r6 &amp;gt;&amp;gt;= 63                     ; R6=1&lt;/p&gt;
&lt;p&gt;When the program runs, r6 &amp;gt;&amp;gt; 63 is 0.&lt;/p&gt;
&lt;p&gt;&amp;gt;From then on the verifier works with known bits which the register does
not have at run time. It accepts, for example, an offset into a map value
which it derives from these bits and believes to be constant, and the
program can access memory outside of the map value.&lt;/p&gt;
&lt;p&gt;Count the bits of the whole value.&lt;/p&gt;
&lt;p&gt;Only 32-bit kernels are affected. On a 64-bit kernel unsigned long holds
the whole mask, and this patch changes nothing.&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: Look at all 64 bits of a BPF_JSET mask on 32-bit&lt;/p&gt;
&lt;p&gt;In the branch of a BPF_JSET which is taken, the verifier can learn
something about the register only if the mask has a single bit: then this
bit is set. regs_refine_cond_op() tests this with is_power_of_2(val) and
then ORs val into var_off.&lt;/p&gt;
&lt;p&gt;val is a u64, but is_power_of_2() takes an unsigned long. On a 32-bit
kernel it only sees the lower half of the mask. For&lt;/p&gt;
&lt;p&gt;if r1 &amp;amp; 0xffffffff80000000 goto l&lt;/p&gt;
&lt;p&gt;which is a BPF_JSET | BPF_K with an immediate of 0x80000000, the lower
half is a power of two. So the verifier takes all 33 bits for set at l,
while the branch is taken if any of them is. A mask of 0x100000001 from a
register does the same for bit 0.&lt;/p&gt;
&lt;p&gt;The log of an i386 kernel, for r6 = bpf_get_prandom_u32() &amp;lt;&amp;lt; 31:&lt;/p&gt;
&lt;p&gt;3: (45) if r6 &amp;amp; 0x80000000 goto pc+2
	from 3 to 6: R6=0xffffffff80000000 R10=fp0
	6: (77) r6 &amp;gt;&amp;gt;= 63                     ; R6=1&lt;/p&gt;
&lt;p&gt;When the program runs, r6 &amp;gt;&amp;gt; 63 is 0.&lt;/p&gt;
&lt;p&gt;&amp;gt;From then on the verifier works with known bits which the register does
not have at run time. It accepts, for example, an offset into a map value
which it derives from these bits and believes to be constant, and the
program can access memory outside of the map value.&lt;/p&gt;
&lt;p&gt;Count the bits of the whole value.&lt;/p&gt;
&lt;p&gt;Only 32-bit kernels are affected. On a 64-bit kernel unsigned long holds
the whole mask, and this patch changes nothing.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-139320</guid>
    </item>
  </channel>
</rss>
