CVE-2025-40057 Details
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
A vulnerability in the Linux kernel's Precision Time Protocol (PTP) subsystem allows for improper handling of the maximum virtual clocks parameter. This issue arises because the maximum value can exceed what the memory allocation function 'kcalloc' can manage, potentially leading to memory-related errors. The vulnerability is present in the PTP sysfs interface, specifically within the 'max_vclocks_store' function, where the input is not adequately validated before being processed.
Users can update to the latest version of the Linux kernel, where this vulnerability has been addressed by adding a proper upper limit on the maximum virtual clocks parameter, ensuring that it does not exceed what can be safely handled by the memory allocation functions.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 28, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/35ce5f163889dbce88eda1df661b357a09bbed87 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/5ba2f8fd3db1c695f74f7f5df72eb87d52668a66 | kernel.org | |
| https://git.kernel.org/stable/c/8dd446056336faa2283d62cefc2f576536845edc | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/da513f2ad1b1b1cf1880ccc2603ce1f1f818eb2e | kernel.org | |
| https://git.kernel.org/stable/c/e9f35294e18da82162004a2f35976e7031aaf7f9 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 30, 2026 | CVE Modified | kernel.org |
| Oct 21, 2026 | CVE Modified | kernel.org |
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 28, 2025 | New CVE Received | kernel.org |
Volerion