{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-23137","id":"CVE-2026-23137","title":"of: unittest: Fix memory leak in unittest_data_add()","description":"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 goe","descriptionLong":"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.","published":"2026-02-14T15:22:22.690Z","updated":"2026-11-01T02:30:47.239177164Z","reserved":"2026-01-13T15:37:45.971Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","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"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","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"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/4bafaec9e3a784d103ab9da11095708fcca70e76","tags":["web"]},{"url":"https://git.kernel.org/stable/c/4c7ad40c285ab85e3614433e063f14aac2e2fe17","tags":["web"]},{"url":"https://git.kernel.org/stable/c/58baf98d1bdab897fd796f39a16061bade229d71","tags":["web"]},{"url":"https://git.kernel.org/stable/c/f09b0f705bd7197863b90256ef533a6414d1db2c","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/235a1eb8d2dcc49a6cf0a5ee1aa85544a5d0054b","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23137.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23137","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00173,"epssPercentile":0.06916,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-23137","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23137","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-23137","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-23137","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}