CVE-2025-40057
JSON

Not scored

ptp: Add a upper bound on max_vclocks

Severity
Not scored
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 73f37068d540eba5f93ba3a0019bf479d35ebd76 before 5ba2f8fd3db1c695f74f7f5df72eb87d52668a66, from 73f37068d540eba5f93ba3a0019bf479d35ebd76 before da513f2ad1b1b1cf1880ccc2603ce1f1f818eb2e, from 73f37068d540eba5f93ba3a0019bf479d35ebd76 before 8dd446056336faa2283d62cefc2f576536845edc, from 73f37068d540eba5f93ba3a0019bf479d35ebd76 before 35ce5f163889dbce88eda1df661b357a09bbed87, from 73f37068d540eba5f93ba3a0019bf479d35ebd76 before e9f35294e18da82162004a2f35976e7031aaf7f9, 5.14
Not affected: before 5.14, from 6.1.191 up to 6.1.*, from 6.6.160 up to 6.6.*, from 6.12.53 up to 6.12.*, from 6.17.3 up to 6.17.*, from 6.18 up to *
CVE List

What each source says

CVE List

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

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ptp: Añadir un límite superior en max_vclocks syzbot informó de una ADVERTENCIA en max_vclocks_store. Esto ocurre cuando el argumento max es demasiado grande para que kcalloc lo maneje. Ampliar la protección para proteger contra valores que son demasiado grandes para kcalloc

References

Sources

SourceRecordLicence
CVE ListCVE-2025-40057 changed 2026-10-30CVE Terms of Use
NVDCVE-2025-40057 changed 2026-10-30Public domain