CVE-2025-40057: Linux kernel · ptp: Add a upper bound on max_vclocks
Affects Linux kernelSource CVE Database V5
Not known to be exploited · fixed in e9f35294e18da82162004a2f35976e7031aaf7f9 : update Linux kernel when convenient.
Data as of 26 Oct 2026, 14:18 UTC
Rated by Threat Radar · No CVSS score from NVD or the CNA
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 16% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in e9f35294e18da82162004a2f35976e7031aaf7f9, da513f2ad1b1b1cf1880ccc2603ce1f1f818eb2e, 35ce5f163889dbce88eda1df661b357a09bbed87 +1
Exploitation evidence
Disclosed: evidence found.
CVE published 28 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade Linux kernel to e9f35294e18da82162004a2f35976e7031aaf7f9, da513f2ad1b1b1cf1880ccc2603ce1f1f818eb2e, 35ce5f163889dbce88eda1df661b357a09bbed87 or 8dd446056336faa2283d62cefc2f576536845edc.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in– |
Description
In the Linux kernel, the following vulnerability has been resolved: ptp: Add a upper bound on max_vclocks syzbot reported WARNING in max_vclocks_store. This occurs when the argument max is too large for kcalloc to handle. Extend the guard to guard against values that are too large for kcalloc
References
- git.kernel.org/stable/c/da513f2ad1b1b1cf1880ccc2603ce1f1f818eb2e (opens in a new tab)
- git.kernel.org/stable/c/8dd446056336faa2283d62cefc2f576536845edc (opens in a new tab)
- git.kernel.org/stable/c/35ce5f163889dbce88eda1df661b357a09bbed87 (opens in a new tab)
- git.kernel.org/stable/c/e9f35294e18da82162004a2f35976e7031aaf7f9 (opens in a new tab)