CVE-2025-40057

Source
https://cve.org/CVERecord?id=CVE-2025-40057
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40057.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40057
Downstream
Related
Published
2025-10-28T11:48:30Z
Modified
2026-08-12T03:30:17Z
Summary
ptp: Add a upper bound on max_vclocks
Details

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

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40057.json"
}
References

Affected packages

Git / 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/osv-test-cve-osv-conversion/osv-output/CVE-2025-40057.json"

Linux / Kernel

Package

Name
Kernel

Affected 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/osv-test-cve-osv-conversion/osv-output/CVE-2025-40057.json"