What’s Vulnerable › Vulnerabilities
CVE-2025-40057: ptp: Add a upper bound on max_vclocks
- Severity: unknown
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-10-28 · updated 2026-10-30
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
Affected products
- Linux: 5.14 — fixed in 6.18
How to fix
Upgrade to a fixed version: Linux 6.18. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/35ce5f163889dbce88eda1df661b357a09bbed87
- https://git.kernel.org/stable/c/5ba2f8fd3db1c695f74f7f5df72eb87d52668a66
- https://git.kernel.org/stable/c/8dd446056336faa2283d62cefc2f576536845edc
- https://git.kernel.org/stable/c/da513f2ad1b1b1cf1880ccc2603ce1f1f818eb2e
- https://git.kernel.org/stable/c/e9f35294e18da82162004a2f35976e7031aaf7f9
Get alerted when CVE-2025-40057 or the next vulnerability affects your stack