Files
vuln-cve/data/2025/40xxx/CVE-2025-40057.json
T

187 lines
8.3 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2025-40057",
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"state": "PUBLISHED",
"assignerShortName": "Linux",
"dateReserved": "2025-04-16T07:20:57.158Z",
"datePublished": "2025-10-28T11:48:30.947Z",
"dateUpdated": "2026-10-30T12:22:43.923Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-10-30T12:22:43.923Z"
},
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nptp: Add a upper bound on max_vclocks\n\nsyzbot reported WARNING in max_vclocks_store.\n\nThis occurs when the argument max is too large for kcalloc to handle.\n\nExtend the guard to guard against values that are too large for\nkcalloc"
}
],
"affected": [
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/ptp/ptp_private.h",
"drivers/ptp/ptp_sysfs.c"
],
"versions": [
{
"version": "73f37068d540eba5f93ba3a0019bf479d35ebd76",
"lessThan": "5ba2f8fd3db1c695f74f7f5df72eb87d52668a66",
"status": "affected",
"versionType": "git"
},
{
"version": "73f37068d540eba5f93ba3a0019bf479d35ebd76",
"lessThan": "da513f2ad1b1b1cf1880ccc2603ce1f1f818eb2e",
"status": "affected",
"versionType": "git"
},
{
"version": "73f37068d540eba5f93ba3a0019bf479d35ebd76",
"lessThan": "8dd446056336faa2283d62cefc2f576536845edc",
"status": "affected",
"versionType": "git"
},
{
"version": "73f37068d540eba5f93ba3a0019bf479d35ebd76",
"lessThan": "35ce5f163889dbce88eda1df661b357a09bbed87",
"status": "affected",
"versionType": "git"
},
{
"version": "73f37068d540eba5f93ba3a0019bf479d35ebd76",
"lessThan": "e9f35294e18da82162004a2f35976e7031aaf7f9",
"status": "affected",
"versionType": "git"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/ptp/ptp_private.h",
"drivers/ptp/ptp_sysfs.c"
],
"versions": [
{
"version": "5.14",
"status": "affected"
},
{
"version": "0",
"lessThan": "5.14",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.1.191",
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.6.160",
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.12.53",
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.17.3",
"lessThanOrEqual": "6.17.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.18",
"lessThanOrEqual": "*",
"status": "unaffected",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.14",
"versionEndExcluding": "6.1.191"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.14",
"versionEndExcluding": "6.6.160"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.14",
"versionEndExcluding": "6.12.53"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.14",
"versionEndExcluding": "6.17.3"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.14",
"versionEndExcluding": "6.18"
}
]
}
]
}
],
"references": [
{
"url": "https://git.kernel.org/stable/c/5ba2f8fd3db1c695f74f7f5df72eb87d52668a66"
},
{
"url": "https://git.kernel.org/stable/c/da513f2ad1b1b1cf1880ccc2603ce1f1f818eb2e"
},
{
"url": "https://git.kernel.org/stable/c/8dd446056336faa2283d62cefc2f576536845edc"
},
{
"url": "https://git.kernel.org/stable/c/35ce5f163889dbce88eda1df661b357a09bbed87"
},
{
"url": "https://git.kernel.org/stable/c/e9f35294e18da82162004a2f35976e7031aaf7f9"
}
],
"title": "ptp: Add a upper bound on max_vclocks",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
}
}