<?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://vulnerability.circl.lu</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>Tue, 29 Sep 2026 05:34:46 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-50164 — bpf: Fix overloading of MEM_UNINIT's meaning</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-50164</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP, Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP, Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;bpf: Fix overloading of MEM_UNINIT&amp;#39;s meaning&lt;/p&gt;
&lt;p&gt;Lonial reported an issue in the BPF verifier where check_mem_size_reg()
has the following code:&lt;/p&gt;
&lt;p&gt;if (!tnum_is_const(reg-&amp;gt;var_off))
        /* For unprivileged variable accesses, disable raw
         * mode so that the program is required to
         * initialize all the memory that the helper could
         * just partially fill up.
         */
         meta = NULL;&lt;/p&gt;
&lt;p&gt;This means that writes are not checked when the register containing the
size of the passed buffer has not a fixed size. Through this bug, a BPF
program can write to a map which is marked as read-only, for example,
.rodata global maps.&lt;/p&gt;
&lt;p&gt;The problem is that MEM_UNINIT&amp;#39;s initial meaning that &amp;#34;the passed buffer
to the BPF helper does not need to be initialized&amp;#34; which was added back
in commit 435faee1aae9 (&amp;#34;bpf, verifier: add ARG_PTR_TO_RAW_STACK type&amp;#34;)
got overloaded over time with &amp;#34;the passed buffer is being written to&amp;#34;.&lt;/p&gt;
&lt;p&gt;The problem however is that checks such as the above which were added later
via 06c1c049721a (&amp;#34;bpf: allow helpers access to variable memory&amp;#34;) set meta
to NULL in order force the user to always initialize the passed buffer to
the helper. Due to the current double meaning of MEM_UNINIT, this bypasses
verifier write checks to the memory (not boundary checks though) and only
assumes the latter memory is read instead.&lt;/p&gt;
&lt;p&gt;Fix this by reverting MEM_UNINIT back to its original meaning, and…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP, Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP, Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;bpf: Fix overloading of MEM_UNINIT&amp;#39;s meaning&lt;/p&gt;
&lt;p&gt;Lonial reported an issue in the BPF verifier where check_mem_size_reg()
has the following code:&lt;/p&gt;
&lt;p&gt;if (!tnum_is_const(reg-&amp;gt;var_off))
        /* For unprivileged variable accesses, disable raw
         * mode so that the program is required to
         * initialize all the memory that the helper could
         * just partially fill up.
         */
         meta = NULL;&lt;/p&gt;
&lt;p&gt;This means that writes are not checked when the register containing the
size of the passed buffer has not a fixed size. Through this bug, a BPF
program can write to a map which is marked as read-only, for example,
.rodata global maps.&lt;/p&gt;
&lt;p&gt;The problem is that MEM_UNINIT&amp;#39;s initial meaning that &amp;#34;the passed buffer
to the BPF helper does not need to be initialized&amp;#34; which was added back
in commit 435faee1aae9 (&amp;#34;bpf, verifier: add ARG_PTR_TO_RAW_STACK type&amp;#34;)
got overloaded over time with &amp;#34;the passed buffer is being written to&amp;#34;.&lt;/p&gt;
&lt;p&gt;The problem however is that checks such as the above which were added later
via 06c1c049721a (&amp;#34;bpf: allow helpers access to variable memory&amp;#34;) set meta
to NULL in order force the user to always initialize the passed buffer to
the helper. Due to the current double meaning of MEM_UNINIT, this bypasses
verifier write checks to the memory (not boundary checks though) and only
assumes the latter memory is read instead.&lt;/p&gt;
&lt;p&gt;Fix this by reverting MEM_UNINIT back to its original meaning, and…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-50164</guid>
    </item>
  </channel>
</rss>
