<?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 06:19:18 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-50008 — kprobes: don't call disarm_kprobe() for disabled kprobes</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2022-50008</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;kprobes: don&amp;#39;t call disarm_kprobe() for disabled kprobes&lt;/p&gt;
&lt;p&gt;The assumption in __disable_kprobe() is wrong, and it could try to disarm
an already disarmed kprobe and fire the WARN_ONCE() below. [0]  We can
easily reproduce this issue.&lt;/p&gt;
&lt;p&gt;1. Write 0 to /sys/kernel/debug/kprobes/enabled.&lt;/p&gt;
&lt;p&gt;# echo 0 &amp;gt; /sys/kernel/debug/kprobes/enabled&lt;/p&gt;
&lt;p&gt;2. Run execsnoop.  At this time, one kprobe is disabled.&lt;/p&gt;
&lt;p&gt;# /usr/share/bcc/tools/execsnoop &amp;amp;
  [1] 2460
  PCOMM            PID    PPID   RET ARGS&lt;/p&gt;
&lt;p&gt;# cat /sys/kernel/debug/kprobes/list
  ffffffff91345650  r  __x64_sys_execve+0x0    [FTRACE]
  ffffffff91345650  k  __x64_sys_execve+0x0    [DISABLED][FTRACE]&lt;/p&gt;
&lt;p&gt;3. Write 1 to /sys/kernel/debug/kprobes/enabled, which changes
   kprobes_all_disarmed to false but does not arm the disabled kprobe.&lt;/p&gt;
&lt;p&gt;# echo 1 &amp;gt; /sys/kernel/debug/kprobes/enabled&lt;/p&gt;
&lt;p&gt;# cat /sys/kernel/debug/kprobes/list
  ffffffff91345650  r  __x64_sys_execve+0x0    [FTRACE]
  ffffffff91345650  k  __x64_sys_execve+0x0    [DISABLED][FTRACE]&lt;/p&gt;
&lt;p&gt;4. Kill execsnoop, when __disable_kprobe() calls disarm_kprobe() for the
   disabled kprobe and hits the WARN_ONCE() in __disarm_kprobe_ftrace().&lt;/p&gt;
&lt;p&gt;# fg
  /usr/share/bcc/tools/execsnoop
  ^C&lt;/p&gt;
&lt;p&gt;Actually, WARN_ONCE() is fired twice, and __unregister_kprobe_top() misses
some cleanups and leaves the aggregated kprobe in the hash table.  Then,
__unregister_trace_kprobe() initialises tk-&amp;gt;rp.kp.list and creates an
infinite loop like this.&lt;/p&gt;
&lt;p&gt;aggr…&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;kprobes: don&amp;#39;t call disarm_kprobe() for disabled kprobes&lt;/p&gt;
&lt;p&gt;The assumption in __disable_kprobe() is wrong, and it could try to disarm
an already disarmed kprobe and fire the WARN_ONCE() below. [0]  We can
easily reproduce this issue.&lt;/p&gt;
&lt;p&gt;1. Write 0 to /sys/kernel/debug/kprobes/enabled.&lt;/p&gt;
&lt;p&gt;# echo 0 &amp;gt; /sys/kernel/debug/kprobes/enabled&lt;/p&gt;
&lt;p&gt;2. Run execsnoop.  At this time, one kprobe is disabled.&lt;/p&gt;
&lt;p&gt;# /usr/share/bcc/tools/execsnoop &amp;amp;
  [1] 2460
  PCOMM            PID    PPID   RET ARGS&lt;/p&gt;
&lt;p&gt;# cat /sys/kernel/debug/kprobes/list
  ffffffff91345650  r  __x64_sys_execve+0x0    [FTRACE]
  ffffffff91345650  k  __x64_sys_execve+0x0    [DISABLED][FTRACE]&lt;/p&gt;
&lt;p&gt;3. Write 1 to /sys/kernel/debug/kprobes/enabled, which changes
   kprobes_all_disarmed to false but does not arm the disabled kprobe.&lt;/p&gt;
&lt;p&gt;# echo 1 &amp;gt; /sys/kernel/debug/kprobes/enabled&lt;/p&gt;
&lt;p&gt;# cat /sys/kernel/debug/kprobes/list
  ffffffff91345650  r  __x64_sys_execve+0x0    [FTRACE]
  ffffffff91345650  k  __x64_sys_execve+0x0    [DISABLED][FTRACE]&lt;/p&gt;
&lt;p&gt;4. Kill execsnoop, when __disable_kprobe() calls disarm_kprobe() for the
   disabled kprobe and hits the WARN_ONCE() in __disarm_kprobe_ftrace().&lt;/p&gt;
&lt;p&gt;# fg
  /usr/share/bcc/tools/execsnoop
  ^C&lt;/p&gt;
&lt;p&gt;Actually, WARN_ONCE() is fired twice, and __unregister_kprobe_top() misses
some cleanups and leaves the aggregated kprobe in the hash table.  Then,
__unregister_trace_kprobe() initialises tk-&amp;gt;rp.kp.list and creates an
infinite loop like this.&lt;/p&gt;
&lt;p&gt;aggr…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2022-50008</guid>
    </item>
  </channel>
</rss>
