CVE-2025-40057
ptp: Add a upper bound on max_vclocks
- State
- Published
- Severity
- Not scored
- Published
- Oct 28, 2025
- Updated
- Oct 30, 2026
- Reserved
- Apr 16, 2025
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
Scores
The record has no CVSS score.
Weaknesses
The record names no weakness.
Affected Products
| Product | Versions |
|---|---|
LinuxLinux |
|
LinuxLinux |
|
References
- https://git.kernel.org/stable/c/5ba2f8fd3db1c695f74f7f5df72eb87d52668a66
- https://git.kernel.org/stable/c/da513f2ad1b1b1cf1880ccc2603ce1f1f818eb2e
- https://git.kernel.org/stable/c/8dd446056336faa2283d62cefc2f576536845edc
- https://git.kernel.org/stable/c/35ce5f163889dbce88eda1df661b357a09bbed87
- https://git.kernel.org/stable/c/e9f35294e18da82162004a2f35976e7031aaf7f9
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.