{"id":"CVE-2025-40057","aliases":["CVE-2025-40057"],"related":[],"kind":"vulnerability","state":"published","title":"ptp: Add a upper bound on max_vclocks","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nptp: Añadir un límite superior en max_vclocks\n\nsyzbot informó de una ADVERTENCIA en max_vclocks_store.\n\nEsto ocurre cuando el argumento max es demasiado grande para que kcalloc lo maneje.\n\nAmpliar la protección para proteger contra valores que son demasiado grandes para kcalloc","source":"nvd"}],"published":"2025-10-28T11:48:30.947Z","modified":"2026-10-30T13:18:12.627Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"73f37068d540eba5f93ba3a0019bf479d35ebd76","fixed":"5ba2f8fd3db1c695f74f7f5df72eb87d52668a66","status":"affected"},{"type":"git","introduced":"73f37068d540eba5f93ba3a0019bf479d35ebd76","fixed":"da513f2ad1b1b1cf1880ccc2603ce1f1f818eb2e","status":"affected"},{"type":"git","introduced":"73f37068d540eba5f93ba3a0019bf479d35ebd76","fixed":"8dd446056336faa2283d62cefc2f576536845edc","status":"affected"},{"type":"git","introduced":"73f37068d540eba5f93ba3a0019bf479d35ebd76","fixed":"35ce5f163889dbce88eda1df661b357a09bbed87","status":"affected"},{"type":"git","introduced":"73f37068d540eba5f93ba3a0019bf479d35ebd76","fixed":"e9f35294e18da82162004a2f35976e7031aaf7f9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.53","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.3","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/5ba2f8fd3db1c695f74f7f5df72eb87d52668a66","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/da513f2ad1b1b1cf1880ccc2603ce1f1f818eb2e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8dd446056336faa2283d62cefc2f576536845edc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/35ce5f163889dbce88eda1df661b357a09bbed87","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e9f35294e18da82162004a2f35976e7031aaf7f9","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40057","url":"https://www.cve.org/CVERecord?id=CVE-2025-40057","licence":"CVE Terms of Use","modified":"2026-10-30T12:22:43.923Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40057","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40057","licence":"Public domain","modified":"2026-10-30T13:18:12.627Z"}],"updatedAt":"2026-11-25T22:59:06.938Z","epss":{"score":0.00249,"percentile":0.1734,"date":"2026-12-01T12:00:22.000Z"}}