Files
vuln-cve/data/2026/23xxx/CVE-2026-23137.json
T

185 lines
8.4 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2026-23137",
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"state": "PUBLISHED",
"assignerShortName": "Linux",
"dateReserved": "2026-01-13T15:37:45.971Z",
"datePublished": "2026-02-14T15:22:22.690Z",
"dateUpdated": "2026-10-30T12:23:44.164Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-10-30T12:23:44.164Z"
},
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nof: unittest: Fix memory leak in unittest_data_add()\n\nIn unittest_data_add(), if of_resolve_phandles() fails, the allocated\nunittest_data is not freed, leading to a memory leak.\n\nFix this by using scope-based cleanup helper __free(kfree) for automatic\nresource cleanup. This ensures unittest_data is automatically freed when\nit goes out of scope in error paths.\n\nFor the success path, use retain_and_null_ptr() to transfer ownership\nof the memory to the device tree and prevent double freeing."
}
],
"affected": [
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/of/unittest.c"
],
"versions": [
{
"version": "2eb46da2a760e5764c48b752a5ef320e02b96b21",
"lessThan": "4bafaec9e3a784d103ab9da11095708fcca70e76",
"status": "affected",
"versionType": "git"
},
{
"version": "2eb46da2a760e5764c48b752a5ef320e02b96b21",
"lessThan": "4c7ad40c285ab85e3614433e063f14aac2e2fe17",
"status": "affected",
"versionType": "git"
},
{
"version": "2eb46da2a760e5764c48b752a5ef320e02b96b21",
"lessThan": "58baf98d1bdab897fd796f39a16061bade229d71",
"status": "affected",
"versionType": "git"
},
{
"version": "2eb46da2a760e5764c48b752a5ef320e02b96b21",
"lessThan": "f09b0f705bd7197863b90256ef533a6414d1db2c",
"status": "affected",
"versionType": "git"
},
{
"version": "2eb46da2a760e5764c48b752a5ef320e02b96b21",
"lessThan": "235a1eb8d2dcc49a6cf0a5ee1aa85544a5d0054b",
"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/of/unittest.c"
],
"versions": [
{
"version": "3.18",
"status": "affected"
},
{
"version": "0",
"lessThan": "3.18",
"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.110",
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.18.6",
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.19",
"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": "3.18",
"versionEndExcluding": "6.1.191"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "3.18",
"versionEndExcluding": "6.6.160"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "3.18",
"versionEndExcluding": "6.12.110"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "3.18",
"versionEndExcluding": "6.18.6"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "3.18",
"versionEndExcluding": "6.19"
}
]
}
]
}
],
"references": [
{
"url": "https://git.kernel.org/stable/c/4bafaec9e3a784d103ab9da11095708fcca70e76"
},
{
"url": "https://git.kernel.org/stable/c/4c7ad40c285ab85e3614433e063f14aac2e2fe17"
},
{
"url": "https://git.kernel.org/stable/c/58baf98d1bdab897fd796f39a16061bade229d71"
},
{
"url": "https://git.kernel.org/stable/c/f09b0f705bd7197863b90256ef533a6414d1db2c"
},
{
"url": "https://git.kernel.org/stable/c/235a1eb8d2dcc49a6cf0a5ee1aa85544a5d0054b"
}
],
"title": "of: unittest: Fix memory leak in unittest_data_add()",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
}
}