VDB

CVE-2025-40057

CVE-2025-40057 PUBLISHED

ptp: Add a upper bound on max_vclocks

Reported by linux · Published October 28, 2025

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

EPSS 0.25% · 16.1th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
LinuxLinuxda513f2ad1b1b1cf1880ccc2603ce1f1f818eb2e, 8dd446056336faa2283d62cefc2f576536845edc, 5ba2f8fd3db1c695f74f7f5df72eb87d52668a66, 5.14, 35ce5f163889dbce88eda1df661b357a09bbed87

Risk scores

EPSS Score
0.25%
16.1th percentile

Affected products

VendorProductVersions
LinuxLinux73f37068d540eba5f93ba3a0019bf479d35ebd76, 73f37068d540eba5f93ba3a0019bf479d35ebd76, 73f37068d540eba5f93ba3a0019bf479d35ebd76
LinuxLinux5.14, 0, 6.1.191
LinuxLinux73f37068d540eba5f93ba3a0019bf479d35ebd76, 73f37068d540eba5f93ba3a0019bf479d35ebd76, 73f37068d540eba5f93ba3a0019bf479d35ebd76
amazon:2023kernel6.12-libbpf0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.12-devel0
amazon:2023bpftool6.120
amazon:2023kernel6.12-modules-extra-common0
linuxlinux_kernel5.14, 5.14, 5.14
amazon:2023kernel6.12-tools0
amazon:2023python3-perf6.120
amazon:2023kernel-livepatch-6.12.53-69.1190
amazon:2023perf6.120
amazon:2023kernel6.12-headers0
amazon:2023kernel6.120
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.12-libbpf-static0

Timeline

  • Oct 27, 2025 CVE Published
  • Oct 28, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 28, 2025 Coalition ESS Score (8 in total, the first dated here)
  • Dec 15, 2025 Security Advisory (175 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (118 in total, the first dated here)
  • Oct 30, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-40057
vulnetix vdb fixes CVE-2025-40057

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40057/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›