All reports
Low

kernel: ptp: Add a upper bound on max_vclocks

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-40057

Probability of exploitation in the next 30 days: 0.25%

FIRST EPSS · 2026-11-22

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 flaw was found in the Linux kernel's PTP (Precision Time Protocol) subsystem. In max_vclocks_store(), when a user provides an excessively large value for the maximum number of virtual clocks, the subsequent kcalloc() call cannot handle the allocation request, triggering a kernel WARNING. A local user with access to the PTP sysfs interface could exploit this to cause a denial of service.