CVE-2025-40057Published Oct 28, 2025 · Oct 28Updated Nov 1
ptp: Add a upper bound on max_vclocks
Linux
Unrated
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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
From the CVE record · Linux
The Linux kernel’s ptp max_vclocks_store lacks an upper bound on max_vclocks. Supplying a value too large for kcalloc can trigger a warning; the input does not specify access requirements or whether user interaction is needed.
Engineers running the Linux kernel should check for affected versions; none are specified in the input.