<?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>Tue, 06 Oct 2026 17:41:22 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-50002 — static_call: Handle module init failure correctly in static_call_del_module()</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2024-50002</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;static_call: Handle module init failure correctly in static_call_del_module()&lt;/p&gt;
&lt;p&gt;Module insertion invokes static_call_add_module() to initialize the static
calls in a module. static_call_add_module() invokes __static_call_init(),
which allocates a struct static_call_mod to either encapsulate the built-in
static call sites of the associated key into it so further modules can be
added or to append the module to the module chain.&lt;/p&gt;
&lt;p&gt;If that allocation fails the function returns with an error code and the
module core invokes static_call_del_module() to clean up eventually added
static_call_mod entries.&lt;/p&gt;
&lt;p&gt;This works correctly, when all keys used by the module were converted over
to a module chain before the failure. If not then static_call_del_module()
causes a #GP as it blindly assumes that key::mods points to a valid struct
static_call_mod.&lt;/p&gt;
&lt;p&gt;The problem is that key::mods is not a individual struct member of struct
static_call_key, it&amp;#39;s part of a union to save space:&lt;/p&gt;
&lt;p&gt;union {
                /* bit 0: 0 = mods, 1 = sites */
                unsigned long type;
                struct static_call_mod *mods;
                struct static_call_site *sites;
	};&lt;/p&gt;
&lt;p&gt;key::sites is a pointer to the list of built-in usage sites of the static
call. The type of the pointer is differentiated by bit 0. A mods pointer
has the bit clear, the sites pointer has the bit set.&lt;/p&gt;
&lt;p&gt;As static_call_del_module() blidly assumes that the po…&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;static_call: Handle module init failure correctly in static_call_del_module()&lt;/p&gt;
&lt;p&gt;Module insertion invokes static_call_add_module() to initialize the static
calls in a module. static_call_add_module() invokes __static_call_init(),
which allocates a struct static_call_mod to either encapsulate the built-in
static call sites of the associated key into it so further modules can be
added or to append the module to the module chain.&lt;/p&gt;
&lt;p&gt;If that allocation fails the function returns with an error code and the
module core invokes static_call_del_module() to clean up eventually added
static_call_mod entries.&lt;/p&gt;
&lt;p&gt;This works correctly, when all keys used by the module were converted over
to a module chain before the failure. If not then static_call_del_module()
causes a #GP as it blindly assumes that key::mods points to a valid struct
static_call_mod.&lt;/p&gt;
&lt;p&gt;The problem is that key::mods is not a individual struct member of struct
static_call_key, it&amp;#39;s part of a union to save space:&lt;/p&gt;
&lt;p&gt;union {
                /* bit 0: 0 = mods, 1 = sites */
                unsigned long type;
                struct static_call_mod *mods;
                struct static_call_site *sites;
	};&lt;/p&gt;
&lt;p&gt;key::sites is a pointer to the list of built-in usage sites of the static
call. The type of the pointer is differentiated by bit 0. A mods pointer
has the bit clear, the sites pointer has the bit set.&lt;/p&gt;
&lt;p&gt;As static_call_del_module() blidly assumes that the po…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2024-50002</guid>
    </item>
  </channel>
</rss>
