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

Read the record on cve.org

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

ProductVersions
LinuxLinux
  • 73f37068d540eba5f93ba3a0019bf479d35ebd76 to before 5ba2f8fd3db1c695f74f7f5df72eb87d52668a66Affected
  • 73f37068d540eba5f93ba3a0019bf479d35ebd76 to before da513f2ad1b1b1cf1880ccc2603ce1f1f818eb2eAffected
  • 73f37068d540eba5f93ba3a0019bf479d35ebd76 to before 8dd446056336faa2283d62cefc2f576536845edcAffected
  • 73f37068d540eba5f93ba3a0019bf479d35ebd76 to before 35ce5f163889dbce88eda1df661b357a09bbed87Affected
  • 73f37068d540eba5f93ba3a0019bf479d35ebd76 to before e9f35294e18da82162004a2f35976e7031aaf7f9Affected
LinuxLinux
  • 5.14Affected
  • before 5.14Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.160 through 6.6.*Not affected
  • 6.12.53 through 6.12.*Not affected
  • 6.17.3 through 6.17.*Not affected
  • 6.18 and laterNot affected

References

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.