# ptp: remove ptp->n_vclocks check logic in ptp_vclock_in_use()

CVE record · `CVE-2025-38305`

- **Identifiers:** `CVE-2025-38305`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 10 Jul 2025
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 10 Jul 2025, 07:42 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `73f37068d540eba5f93ba3a0019bf479d35ebd76 to before 5d217e7031a5c06d366580fc6ddbf43527b780d4` (git)
  - affected: `73f37068d540eba5f93ba3a0019bf479d35ebd76 to before b1b73c452331451020be3bf4b014901015ae6663` (git)
  - affected: `73f37068d540eba5f93ba3a0019bf479d35ebd76 to before 259119595227fd20f6aa29d85abe086b6fdd9eb1` (git)
  - affected: `73f37068d540eba5f93ba3a0019bf479d35ebd76 to before b93e6fef4eda48e17d9c642b9abad98a066fd4a3` (git)
  - affected: `73f37068d540eba5f93ba3a0019bf479d35ebd76 to before ef8fc007c28a30a4c0d90bf755e0f343d99bb392` (git)
  - affected: `73f37068d540eba5f93ba3a0019bf479d35ebd76 to before 87f7ce260a3c838b49e1dc1ceedf1006795157a2` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.14`
  - unaffected: `before 5.14` (semver)
  - unaffected: `5.15.186 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.142 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.94 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.34 to 6.12.*, inclusive` (semver)
  - unaffected: `6.15.3 to 6.15.*, inclusive` (semver)
  - unaffected: `6.16 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel PTP clock code is affected from 5.14 until fixed. A recursive lock in ptp_vclock_in_use() can deadlock when virtual clocks are unregistered through the n_vclocks sysfs path. The source does not say what access an attacker needs. Upgrade to 5.15.186, 6.1.142, 6.6.94, 6.12.34, or a later release on those branches.

Written 16 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0018, the 8th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 10 Jul 2025, 07:42 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-38305)
- 10 Jul 2025, 08:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-38305)

## Sources

- [CVE List: CVE-2025-38305](https://www.cve.org/CVERecord?id=CVE-2025-38305)
- [NVD: CVE-2025-38305](https://nvd.nist.gov/vuln/detail/CVE-2025-38305)

### References from the CNA

- <https://git.kernel.org/stable/c/5d217e7031a5c06d366580fc6ddbf43527b780d4>
- <https://git.kernel.org/stable/c/b1b73c452331451020be3bf4b014901015ae6663>
- <https://git.kernel.org/stable/c/259119595227fd20f6aa29d85abe086b6fdd9eb1>
- <https://git.kernel.org/stable/c/b93e6fef4eda48e17d9c642b9abad98a066fd4a3>
- <https://git.kernel.org/stable/c/ef8fc007c28a30a4c0d90bf755e0f343d99bb392>
- <https://git.kernel.org/stable/c/87f7ce260a3c838b49e1dc1ceedf1006795157a2>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-38305>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-38305/>. Everything for agents: <https://agentprime.io/llms.txt>.
