<?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>Sat, 10 Oct 2026 11:05:41 +0000</lastBuildDate>
    <item>
      <title>CVE-2021-47118 — pid: take a reference when initializing `cad_pid`</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2021-47118</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;pid: take a reference when initializing `cad_pid`&lt;/p&gt;
&lt;p&gt;During boot, kernel_init_freeable() initializes `cad_pid` to the init
task&amp;#39;s struct pid.  Later on, we may change `cad_pid` via a sysctl, and
when this happens proc_do_cad_pid() will increment the refcount on the
new pid via get_pid(), and will decrement the refcount on the old pid
via put_pid().  As we never called get_pid() when we initialized
`cad_pid`, we decrement a reference we never incremented, can therefore
free the init task&amp;#39;s struct pid early.  As there can be dangling
references to the struct pid, we can later encounter a use-after-free
(e.g.  when delivering signals).&lt;/p&gt;
&lt;p&gt;This was spotted when fuzzing v5.13-rc3 with Syzkaller, but seems to
have been around since the conversion of `cad_pid` to struct pid in
commit 9ec52099e4b8 (&amp;#34;[PATCH] replace cad_pid by a struct pid&amp;#34;) from the
pre-KASAN stone age of v2.6.19.&lt;/p&gt;
&lt;p&gt;Fix this by getting a reference to the init task&amp;#39;s struct pid when we
assign it to `cad_pid`.&lt;/p&gt;
&lt;p&gt;Full KASAN splat below.&lt;/p&gt;
&lt;p&gt;==================================================================
   BUG: KASAN: use-after-free in ns_of_pid include/linux/pid.h:153 [inline]
   BUG: KASAN: use-after-free in task_active_pid_ns+0xc0/0xc8 kernel/pid.c:509
   Read of size 4 at addr ffff23794dda0004 by task syz-executor.0/273&lt;/p&gt;
&lt;p&gt;CPU: 1 PID: 273 Comm: syz-executor.0 Not tainted 5.12.0-00001-g9aef892b2d15 #1
   Hardware name: linux,dummy-virt (DT)
   Call t…&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;pid: take a reference when initializing `cad_pid`&lt;/p&gt;
&lt;p&gt;During boot, kernel_init_freeable() initializes `cad_pid` to the init
task&amp;#39;s struct pid.  Later on, we may change `cad_pid` via a sysctl, and
when this happens proc_do_cad_pid() will increment the refcount on the
new pid via get_pid(), and will decrement the refcount on the old pid
via put_pid().  As we never called get_pid() when we initialized
`cad_pid`, we decrement a reference we never incremented, can therefore
free the init task&amp;#39;s struct pid early.  As there can be dangling
references to the struct pid, we can later encounter a use-after-free
(e.g.  when delivering signals).&lt;/p&gt;
&lt;p&gt;This was spotted when fuzzing v5.13-rc3 with Syzkaller, but seems to
have been around since the conversion of `cad_pid` to struct pid in
commit 9ec52099e4b8 (&amp;#34;[PATCH] replace cad_pid by a struct pid&amp;#34;) from the
pre-KASAN stone age of v2.6.19.&lt;/p&gt;
&lt;p&gt;Fix this by getting a reference to the init task&amp;#39;s struct pid when we
assign it to `cad_pid`.&lt;/p&gt;
&lt;p&gt;Full KASAN splat below.&lt;/p&gt;
&lt;p&gt;==================================================================
   BUG: KASAN: use-after-free in ns_of_pid include/linux/pid.h:153 [inline]
   BUG: KASAN: use-after-free in task_active_pid_ns+0xc0/0xc8 kernel/pid.c:509
   Read of size 4 at addr ffff23794dda0004 by task syz-executor.0/273&lt;/p&gt;
&lt;p&gt;CPU: 1 PID: 273 Comm: syz-executor.0 Not tainted 5.12.0-00001-g9aef892b2d15 #1
   Hardware name: linux,dummy-virt (DT)
   Call t…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2021-47118</guid>
    </item>
  </channel>
</rss>
