<?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>Fri, 02 Oct 2026 17:17:37 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-38721 — netfilter: ctnetlink: fix refcount leak on table dump</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-38721</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux, Siemens SIMATIC CN 4100, 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;netfilter: ctnetlink: fix refcount leak on table dump&lt;/p&gt;
&lt;p&gt;There is a reference count leak in ctnetlink_dump_table():
      if (res &amp;lt; 0) {
                nf_conntrack_get(&amp;amp;ct-&amp;gt;ct_general); // HERE
                cb-&amp;gt;args[1] = (unsigned long)ct;
                ...&lt;/p&gt;
&lt;p&gt;While its very unlikely, its possible that ct == last.
If this happens, then the refcount of ct was already incremented.
This 2nd increment is never undone.&lt;/p&gt;
&lt;p&gt;This prevents the conntrack object from being released, which in turn
keeps prevents cnet-&amp;gt;count from dropping back to 0.&lt;/p&gt;
&lt;p&gt;This will then block the netns dismantle (or conntrack rmmod) as
nf_conntrack_cleanup_net_list() will wait forever.&lt;/p&gt;
&lt;p&gt;This can be reproduced by running conntrack_resize.sh selftest in a loop.
It takes ~20 minutes for me on a preemptible kernel on average before
I see a runaway kworker spinning in nf_conntrack_cleanup_net_list.&lt;/p&gt;
&lt;p&gt;One fix would to change this to:
        if (res &amp;lt; 0) {
		if (ct != last)
	                nf_conntrack_get(&amp;amp;ct-&amp;gt;ct_general);&lt;/p&gt;
&lt;p&gt;But this reference counting isn&amp;#39;t needed in the first place.
We can just store a cookie value instead.&lt;/p&gt;
&lt;p&gt;A followup patch will do the same for ctnetlink_exp_dump_table,
it looks to me as if this has the same problem and like
ctnetlink_dump_table, we only need a &amp;#39;skip hint&amp;#39;, not the actual
object so we can apply the same cookie strategy there as well.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux, Siemens SIMATIC CN 4100, 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;netfilter: ctnetlink: fix refcount leak on table dump&lt;/p&gt;
&lt;p&gt;There is a reference count leak in ctnetlink_dump_table():
      if (res &amp;lt; 0) {
                nf_conntrack_get(&amp;amp;ct-&amp;gt;ct_general); // HERE
                cb-&amp;gt;args[1] = (unsigned long)ct;
                ...&lt;/p&gt;
&lt;p&gt;While its very unlikely, its possible that ct == last.
If this happens, then the refcount of ct was already incremented.
This 2nd increment is never undone.&lt;/p&gt;
&lt;p&gt;This prevents the conntrack object from being released, which in turn
keeps prevents cnet-&amp;gt;count from dropping back to 0.&lt;/p&gt;
&lt;p&gt;This will then block the netns dismantle (or conntrack rmmod) as
nf_conntrack_cleanup_net_list() will wait forever.&lt;/p&gt;
&lt;p&gt;This can be reproduced by running conntrack_resize.sh selftest in a loop.
It takes ~20 minutes for me on a preemptible kernel on average before
I see a runaway kworker spinning in nf_conntrack_cleanup_net_list.&lt;/p&gt;
&lt;p&gt;One fix would to change this to:
        if (res &amp;lt; 0) {
		if (ct != last)
	                nf_conntrack_get(&amp;amp;ct-&amp;gt;ct_general);&lt;/p&gt;
&lt;p&gt;But this reference counting isn&amp;#39;t needed in the first place.
We can just store a cookie value instead.&lt;/p&gt;
&lt;p&gt;A followup patch will do the same for ctnetlink_exp_dump_table,
it looks to me as if this has the same problem and like
ctnetlink_dump_table, we only need a &amp;#39;skip hint&amp;#39;, not the actual
object so we can apply the same cookie strategy there as well.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-38721</guid>
    </item>
  </channel>
</rss>
