CVE-2025-40057

published 28 Oct 2025 · updated 7 Nov 2026

ptp: Add a upper bound on max_vclocks

7.1HighCVSS 7.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 35ce5f163889dbce88eda1df661b357a09bbed87, Kernel 5ba2f8fd3db1c695f74f7f5df72eb87d52668a66, Kernel 8dd446056336faa2283d62cefc2f576536845edc and 2 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.14, >=73f37068d540eba5f93ba3a0019bf479d35ebd76 <35ce5f163889dbce88eda1df661b357a09bbed87, >=73f37068d540eba5f93ba3a0019bf479d35ebd76 <5ba2f8fd3db1c695f74f7f5df72eb87d52668a66, >=73f37068d540eba5f93ba3a0019bf479d35ebd76 <8dd446056336faa2283d62cefc2f576536845edc, >=73f37068d540eba5f93ba3a0019bf479d35ebd76 <da513f2ad1b1b1cf1880ccc2603ce1f1f818eb2e, >=73f37068d540eba5f93ba3a0019bf479d35ebd76 <e9f35294e18da82162004a2f35976e7031aaf7f935ce5f163889dbce88eda1df661b357a09bbed87, 5ba2f8fd3db1c695f74f7f5df72eb87d52668a66, 8dd446056336faa2283d62cefc2f576536845edc, da513f2ad1b1b1cf1880ccc2603ce1f1f818eb2e, e9f35294e18da82162004a2f35976e7031aaf7f9

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-40057 severity on Zeptric[![CVE-2025-40057](https://zeptric.io/badge/cve/CVE-2025-40057.svg)](https://zeptric.io/cve/CVE-2025-40057)