CVE-2025-40057
ptp: Add a upper bound on max_vclocks
Check your servers for CVE-2025-40057
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40057 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 73f37068d540eba5f93ba3a0019bf479d35ebd76, before 5ba2f8fd3db1c695f74f7f5df72eb87d52668a66 affected from 73f37068d540eba5f93ba3a0019bf479d35ebd76, before da513f2ad1b1b1cf1880ccc2603ce1f1f818eb2e affected from 73f37068d540eba5f93ba3a0019bf479d35ebd76, before 8dd446056336faa2283d62cefc2f576536845edc affected from 73f37068d540eba5f93ba3a0019bf479d35ebd76, before 35ce5f163889dbce88eda1df661b357a09bbed87 affected from 73f37068d540eba5f93ba3a0019bf479d35ebd76, before e9f35294e18da82162004a2f35976e7031aaf7f9
Other versions: unaffected
|
| Linux |
affected 5.14 unaffected before 5.14 unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.53 up to and including 6.12.* unaffected from 6.17.3 up to and including 6.17.* unaffected 6.18 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40057 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40057
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-40057
trivy image --scanners vuln IMAGE | grep CVE-2025-40057
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/5ba2f8fd3db1c695f74f7f5df72eb87d52668a66 git.kernel.org
- https://git.kernel.org/stable/c/da513f2ad1b1b1cf1880ccc2603ce1f1f818eb2e git.kernel.org
- https://git.kernel.org/stable/c/8dd446056336faa2283d62cefc2f576536845edc git.kernel.org
- https://git.kernel.org/stable/c/35ce5f163889dbce88eda1df661b357a09bbed87 git.kernel.org
- https://git.kernel.org/stable/c/e9f35294e18da82162004a2f35976e7031aaf7f9 git.kernel.org
Source: the record CVE-2025-40057 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse