<?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 12:12:34 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-38305 — ptp: remove ptp-&gt;n_vclocks check logic in ptp_vclock_in_use()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-38305</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;ptp: remove ptp-&amp;gt;n_vclocks check logic in ptp_vclock_in_use()&lt;/p&gt;
&lt;p&gt;There is no disagreement that we should check both ptp-&amp;gt;is_virtual_clock
and ptp-&amp;gt;n_vclocks to check if the ptp virtual clock is in use.&lt;/p&gt;
&lt;p&gt;However, when we acquire ptp-&amp;gt;n_vclocks_mux to read ptp-&amp;gt;n_vclocks in
ptp_vclock_in_use(), we observe a recursive lock in the call trace
starting from n_vclocks_store().&lt;/p&gt;
&lt;p&gt;============================================
WARNING: possible recursive locking detected
6.15.0-rc6 #1 Not tainted
--------------------------------------------
syz.0.1540/13807 is trying to acquire lock:
ffff888035a24868 (&amp;amp;ptp-&amp;gt;n_vclocks_mux){+.+.}-{4:4}, at:
 ptp_vclock_in_use drivers/ptp/ptp_private.h:103 [inline]
ffff888035a24868 (&amp;amp;ptp-&amp;gt;n_vclocks_mux){+.+.}-{4:4}, at:
 ptp_clock_unregister+0x21/0x250 drivers/ptp/ptp_clock.c:415&lt;/p&gt;
&lt;p&gt;but task is already holding lock:
ffff888030704868 (&amp;amp;ptp-&amp;gt;n_vclocks_mux){+.+.}-{4:4}, at:
 n_vclocks_store+0xf1/0x6d0 drivers/ptp/ptp_sysfs.c:215&lt;/p&gt;
&lt;p&gt;other info that might help us debug this:
 Possible unsafe locking scenario:&lt;/p&gt;
&lt;p&gt;CPU0
       ----
  lock(&amp;amp;ptp-&amp;gt;n_vclocks_mux);
  lock(&amp;amp;ptp-&amp;gt;n_vclocks_mux);&lt;/p&gt;
&lt;p&gt;*** DEADLOCK ***
....
============================================&lt;/p&gt;
&lt;p&gt;The best way to solve this is to remove the logic that checks
ptp-&amp;gt;n_vclocks in ptp_vclock_in_use().&lt;/p&gt;
&lt;p&gt;The reason why this is appropriate is that any path that uses
ptp-&amp;gt;n_vclocks must unconditionally check if ptp-&amp;gt;n_vclocks is greater
than 0 be…&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;ptp: remove ptp-&amp;gt;n_vclocks check logic in ptp_vclock_in_use()&lt;/p&gt;
&lt;p&gt;There is no disagreement that we should check both ptp-&amp;gt;is_virtual_clock
and ptp-&amp;gt;n_vclocks to check if the ptp virtual clock is in use.&lt;/p&gt;
&lt;p&gt;However, when we acquire ptp-&amp;gt;n_vclocks_mux to read ptp-&amp;gt;n_vclocks in
ptp_vclock_in_use(), we observe a recursive lock in the call trace
starting from n_vclocks_store().&lt;/p&gt;
&lt;p&gt;============================================
WARNING: possible recursive locking detected
6.15.0-rc6 #1 Not tainted
--------------------------------------------
syz.0.1540/13807 is trying to acquire lock:
ffff888035a24868 (&amp;amp;ptp-&amp;gt;n_vclocks_mux){+.+.}-{4:4}, at:
 ptp_vclock_in_use drivers/ptp/ptp_private.h:103 [inline]
ffff888035a24868 (&amp;amp;ptp-&amp;gt;n_vclocks_mux){+.+.}-{4:4}, at:
 ptp_clock_unregister+0x21/0x250 drivers/ptp/ptp_clock.c:415&lt;/p&gt;
&lt;p&gt;but task is already holding lock:
ffff888030704868 (&amp;amp;ptp-&amp;gt;n_vclocks_mux){+.+.}-{4:4}, at:
 n_vclocks_store+0xf1/0x6d0 drivers/ptp/ptp_sysfs.c:215&lt;/p&gt;
&lt;p&gt;other info that might help us debug this:
 Possible unsafe locking scenario:&lt;/p&gt;
&lt;p&gt;CPU0
       ----
  lock(&amp;amp;ptp-&amp;gt;n_vclocks_mux);
  lock(&amp;amp;ptp-&amp;gt;n_vclocks_mux);&lt;/p&gt;
&lt;p&gt;*** DEADLOCK ***
....
============================================&lt;/p&gt;
&lt;p&gt;The best way to solve this is to remove the logic that checks
ptp-&amp;gt;n_vclocks in ptp_vclock_in_use().&lt;/p&gt;
&lt;p&gt;The reason why this is appropriate is that any path that uses
ptp-&amp;gt;n_vclocks must unconditionally check if ptp-&amp;gt;n_vclocks is greater
than 0 be…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-38305</guid>
    </item>
  </channel>
</rss>
