<?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://cve.radiocsirt.org</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>Wed, 07 Oct 2026 06:24:29 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-42161 — bpf: Avoid uninitialized value in BPF_CORE_READ_BITFIELD</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2024-42161</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: Avoid uninitialized value in BPF_CORE_READ_BITFIELD&lt;/p&gt;
&lt;p&gt;[Changes from V1:
 - Use a default branch in the switch statement to initialize `val&amp;#39;.]&lt;/p&gt;
&lt;p&gt;GCC warns that `val&amp;#39; may be used uninitialized in the
BPF_CRE_READ_BITFIELD macro, defined in bpf_core_read.h as:&lt;/p&gt;
&lt;p&gt;[...]
	unsigned long long val;						      \
	[...]								      \
	switch (__CORE_RELO(s, field, BYTE_SIZE)) {			      \
	case 1: val = *(const unsigned char *)p; break;			      \
	case 2: val = *(const unsigned short *)p; break;		      \
	case 4: val = *(const unsigned int *)p; break;			      \
	case 8: val = *(const unsigned long long *)p; break;		      \
        }       							      \
	[...]
	val;								      \
	}								      \&lt;/p&gt;
&lt;p&gt;This patch adds a default entry in the switch statement that sets
`val&amp;#39; to zero in order to avoid the warning, and random values to be
used in case __builtin_preserve_field_info returns unexpected values
for BPF_FIELD_BYTE_SIZE.&lt;/p&gt;
&lt;p&gt;Tested in bpf-next master.
No regressions.&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: Avoid uninitialized value in BPF_CORE_READ_BITFIELD&lt;/p&gt;
&lt;p&gt;[Changes from V1:
 - Use a default branch in the switch statement to initialize `val&amp;#39;.]&lt;/p&gt;
&lt;p&gt;GCC warns that `val&amp;#39; may be used uninitialized in the
BPF_CRE_READ_BITFIELD macro, defined in bpf_core_read.h as:&lt;/p&gt;
&lt;p&gt;[...]
	unsigned long long val;						      \
	[...]								      \
	switch (__CORE_RELO(s, field, BYTE_SIZE)) {			      \
	case 1: val = *(const unsigned char *)p; break;			      \
	case 2: val = *(const unsigned short *)p; break;		      \
	case 4: val = *(const unsigned int *)p; break;			      \
	case 8: val = *(const unsigned long long *)p; break;		      \
        }       							      \
	[...]
	val;								      \
	}								      \&lt;/p&gt;
&lt;p&gt;This patch adds a default entry in the switch statement that sets
`val&amp;#39; to zero in order to avoid the warning, and random values to be
used in case __builtin_preserve_field_info returns unexpected values
for BPF_FIELD_BYTE_SIZE.&lt;/p&gt;
&lt;p&gt;Tested in bpf-next master.
No regressions.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2024-42161</guid>
    </item>
  </channel>
</rss>
