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",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8dd446056336faa2283d62cefc2f576536845edc",
"target": {
"file": "drivers/ptp/ptp_sysfs.c"
},
"digest": {
"line_hashes": [
"279531659522804091288275310758664707282",
"178567368228775418062909937870436844318",
"252959491496627856761589449713587821587",
"88606288007441707497881778629519778620"
],
"threshold": 0.9
},
"signature_version": "v1",
"signature_type": "Line"
},
{
"id": "CVE-2025-40057-353f069b",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8dd446056336faa2283d62cefc2f576536845edc",
"target": {
"function": "max_vclocks_store",
"file": "drivers/ptp/ptp_sysfs.c"
},
"digest": {
"length": 789.0,
"function_hash": "248772970209403810846110530735779749776"
},
"signature_version": "v1",
"signature_type": "Function"
},
{
"id": "CVE-2025-40057-51c294fb",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e9f35294e18da82162004a2f35976e7031aaf7f9",
"target": {
"file": "drivers/ptp/ptp_sysfs.c"
},
"digest": {
"line_hashes": [
"279531659522804091288275310758664707282",
"178567368228775418062909937870436844318",
"252959491496627856761589449713587821587",
"88606288007441707497881778629519778620"
],
"threshold": 0.9
},
"signature_version": "v1",
"signature_type": "Line"
},
{
"id": "CVE-2025-40057-8146e13e",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@35ce5f163889dbce88eda1df661b357a09bbed87",
"target": {
"function": "max_vclocks_store",
"file": "drivers/ptp/ptp_sysfs.c"
},
"digest": {
"length": 789.0,
"function_hash": "248772970209403810846110530735779749776"
},
"signature_version": "v1",
"signature_type": "Function"
},
{
"id": "CVE-2025-40057-f229a058",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e9f35294e18da82162004a2f35976e7031aaf7f9",
"target": {
"function": "max_vclocks_store",
"file": "drivers/ptp/ptp_sysfs.c"
},
"digest": {
"length": 789.0,
"function_hash": "248772970209403810846110530735779749776"
},
"signature_version": "v1",
"signature_type": "Function"
},
{
"id": "CVE-2025-40057-f7d0d0a7",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@35ce5f163889dbce88eda1df661b357a09bbed87",
"target": {
"file": "drivers/ptp/ptp_sysfs.c"
},
"digest": {
"line_hashes": [
"279531659522804091288275310758664707282",
"178567368228775418062909937870436844318",
"252959491496627856761589449713587821587",
"88606288007441707497881778629519778620"
],
"threshold": 0.9
},
"signature_version": "v1",
"signature_type": "Line"
}
]