<?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>Sun, 04 Oct 2026 17:53:30 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-49837 — bpf: Fix memory leaks in __check_func_call</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2022-49837</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: Fix memory leaks in __check_func_call&lt;/p&gt;
&lt;p&gt;kmemleak reports this issue:&lt;/p&gt;
&lt;p&gt;unreferenced object 0xffff88817139d000 (size 2048):
  comm &amp;#34;test_progs&amp;#34;, pid 33246, jiffies 4307381979 (age 45851.820s)
  hex dump (first 32 bytes):
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [&amp;lt;0000000045f075f0&amp;gt;] kmalloc_trace+0x27/0xa0
    [&amp;lt;0000000098b7c90a&amp;gt;] __check_func_call+0x316/0x1230
    [&amp;lt;00000000b4c3c403&amp;gt;] check_helper_call+0x172e/0x4700
    [&amp;lt;00000000aa3875b7&amp;gt;] do_check+0x21d8/0x45e0
    [&amp;lt;000000001147357b&amp;gt;] do_check_common+0x767/0xaf0
    [&amp;lt;00000000b5a595b4&amp;gt;] bpf_check+0x43e3/0x5bc0
    [&amp;lt;0000000011e391b1&amp;gt;] bpf_prog_load+0xf26/0x1940
    [&amp;lt;0000000007f765c0&amp;gt;] __sys_bpf+0xd2c/0x3650
    [&amp;lt;00000000839815d6&amp;gt;] __x64_sys_bpf+0x75/0xc0
    [&amp;lt;00000000946ee250&amp;gt;] do_syscall_64+0x3b/0x90
    [&amp;lt;0000000000506b7f&amp;gt;] entry_SYSCALL_64_after_hwframe+0x63/0xcd&lt;/p&gt;
&lt;p&gt;The root case here is: In function prepare_func_exit(), the callee is
not released in the abnormal scenario after &amp;#34;state-&amp;gt;curframe--;&amp;#34;. To
fix, move &amp;#34;state-&amp;gt;curframe--;&amp;#34; to the very bottom of the function,
right when we free callee and reset frame[] pointer to NULL, as Andrii
suggested.&lt;/p&gt;
&lt;p&gt;In addition, function __check_func_call() has a similar problem. In
the abnormal scenario before &amp;#34;state-&amp;gt;curframe++;&amp;#34;, the callee also
should be released by free_func_state().&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: Fix memory leaks in __check_func_call&lt;/p&gt;
&lt;p&gt;kmemleak reports this issue:&lt;/p&gt;
&lt;p&gt;unreferenced object 0xffff88817139d000 (size 2048):
  comm &amp;#34;test_progs&amp;#34;, pid 33246, jiffies 4307381979 (age 45851.820s)
  hex dump (first 32 bytes):
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [&amp;lt;0000000045f075f0&amp;gt;] kmalloc_trace+0x27/0xa0
    [&amp;lt;0000000098b7c90a&amp;gt;] __check_func_call+0x316/0x1230
    [&amp;lt;00000000b4c3c403&amp;gt;] check_helper_call+0x172e/0x4700
    [&amp;lt;00000000aa3875b7&amp;gt;] do_check+0x21d8/0x45e0
    [&amp;lt;000000001147357b&amp;gt;] do_check_common+0x767/0xaf0
    [&amp;lt;00000000b5a595b4&amp;gt;] bpf_check+0x43e3/0x5bc0
    [&amp;lt;0000000011e391b1&amp;gt;] bpf_prog_load+0xf26/0x1940
    [&amp;lt;0000000007f765c0&amp;gt;] __sys_bpf+0xd2c/0x3650
    [&amp;lt;00000000839815d6&amp;gt;] __x64_sys_bpf+0x75/0xc0
    [&amp;lt;00000000946ee250&amp;gt;] do_syscall_64+0x3b/0x90
    [&amp;lt;0000000000506b7f&amp;gt;] entry_SYSCALL_64_after_hwframe+0x63/0xcd&lt;/p&gt;
&lt;p&gt;The root case here is: In function prepare_func_exit(), the callee is
not released in the abnormal scenario after &amp;#34;state-&amp;gt;curframe--;&amp;#34;. To
fix, move &amp;#34;state-&amp;gt;curframe--;&amp;#34; to the very bottom of the function,
right when we free callee and reset frame[] pointer to NULL, as Andrii
suggested.&lt;/p&gt;
&lt;p&gt;In addition, function __check_func_call() has a similar problem. In
the abnormal scenario before &amp;#34;state-&amp;gt;curframe++;&amp;#34;, the callee also
should be released by free_func_state().&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2022-49837</guid>
    </item>
  </channel>
</rss>
