{"id":"CVE-2025-40057","summary":"ptp: Add a upper bound on max_vclocks","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nptp: Add a upper bound on max_vclocks\n\nsyzbot reported WARNING in max_vclocks_store.\n\nThis occurs when the argument max is too large for kcalloc to handle.\n\nExtend the guard to guard against values that are too large for\nkcalloc","modified":"2026-04-02T12:48:16.302740Z","published":"2025-10-28T11:48:30.947Z","related":["openSUSE-SU-2025:15702-1","openSUSE-SU-2026:10301-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40057.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/35ce5f163889dbce88eda1df661b357a09bbed87"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8dd446056336faa2283d62cefc2f576536845edc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e9f35294e18da82162004a2f35976e7031aaf7f9"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40057.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40057"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"73f37068d540eba5f93ba3a0019bf479d35ebd76"},{"fixed":"8dd446056336faa2283d62cefc2f576536845edc"},{"fixed":"35ce5f163889dbce88eda1df661b357a09bbed87"},{"fixed":"e9f35294e18da82162004a2f35976e7031aaf7f9"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40057.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.14.0"},{"fixed":"6.12.53"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40057.json"}}],"schema_version":"1.7.5"}