In the Linux kernel, the following vulnerability has been resolved:
ptp: Add a upper bound on max_vclocks
syzbot reported WARNING in maxvclocksstore.
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
[
{
"id": "CVE-2025-40057-1e226af5",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8dd446056336faa2283d62cefc2f576536845edc",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/ptp/ptp_sysfs.c"
},
"digest": {
"line_hashes": [
"279531659522804091288275310758664707282",
"178567368228775418062909937870436844318",
"252959491496627856761589449713587821587",
"88606288007441707497881778629519778620"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2025-40057-353f069b",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8dd446056336faa2283d62cefc2f576536845edc",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "max_vclocks_store",
"file": "drivers/ptp/ptp_sysfs.c"
},
"digest": {
"length": 789.0,
"function_hash": "248772970209403810846110530735779749776"
},
"signature_type": "Function"
},
{
"id": "CVE-2025-40057-51c294fb",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e9f35294e18da82162004a2f35976e7031aaf7f9",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/ptp/ptp_sysfs.c"
},
"digest": {
"line_hashes": [
"279531659522804091288275310758664707282",
"178567368228775418062909937870436844318",
"252959491496627856761589449713587821587",
"88606288007441707497881778629519778620"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2025-40057-f229a058",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e9f35294e18da82162004a2f35976e7031aaf7f9",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "max_vclocks_store",
"file": "drivers/ptp/ptp_sysfs.c"
},
"digest": {
"length": 789.0,
"function_hash": "248772970209403810846110530735779749776"
},
"signature_type": "Function"
}
]