CVE-2026-23137of: unittest: Fix memory leak in unittest_data_add()
- 5.5MediumCVSS base score
- 0.17%Exploitation in 30 daysEPSS · top 93% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
In the Linux kernel, the following vulnerability has been resolved: of: unittest: Fix memory leak in unittest_data_add() In unittest_data_add(), if of_resolve_phandles() fails, the allocated unittest_data is not freed, leading to a memory leak. Fix this by using scope-based cleanup helper __free(kfree) for automatic resource cleanup. This ensures unittest_data is automatically freed when it goes out of scope in error paths. For the success path, use retain_and_null_ptr() to transfer ownership of the memory to the device tree and prevent double freeing.
Timeline
ID reserved
By Linux
- 32 days later
· 32 days later
Published
- 9 months later
· 9 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.17% · top 93% of all CVEs (16 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected 2eb46da2a760e5764c48b752a5ef320e02b96b21 – < 4bafaec9e3a784d103ab9da11095708fcca70e76
- affected 2eb46da2a760e5764c48b752a5ef320e02b96b21 – < 4c7ad40c285ab85e3614433e063f14aac2e2fe17
- affected 2eb46da2a760e5764c48b752a5ef320e02b96b21 – < 58baf98d1bdab897fd796f39a16061bade229d71
- affected 2eb46da2a760e5764c48b752a5ef320e02b96b21 – < f09b0f705bd7197863b90256ef533a6414d1db2c
- affected 2eb46da2a760e5764c48b752a5ef320e02b96b21 – < 235a1eb8d2dcc49a6cf0a5ee1aa85544a5d0054b
- affected 3.18
- unaffected < 3.18
- unaffected 6.1.191 – ≤ 6.1.*
- unaffected 6.6.160 – ≤ 6.6.*
- unaffected 6.12.110 – ≤ 6.12.*
- unaffected 6.18.6 – ≤ 6.18.*
- unaffected 6.19 – ≤ *
References
References5
- https://git.kernel.org/stable/c/4bafaec9e3a784d103ab9da11095708fcca70e76 (opens in a new tab)
- https://git.kernel.org/stable/c/4c7ad40c285ab85e3614433e063f14aac2e2fe17 (opens in a new tab)
- https://git.kernel.org/stable/c/58baf98d1bdab897fd796f39a16061bade229d71 (opens in a new tab)
- https://git.kernel.org/stable/c/f09b0f705bd7197863b90256ef533a6414d1db2c (opens in a new tab)
- https://git.kernel.org/stable/c/235a1eb8d2dcc49a6cf0a5ee1aa85544a5d0054b (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-5900 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-23137)Record last updated .