CVE-2026-23137: of: unittest: Fix memory leak in unittest_data_add()

Published Feb 14, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

of: unittest: Fix memory leak in unittestdataadd()

In unittestdataadd(), if ofresolvephandles() fails, the allocated unittestdata is not freed, leading to a memory leak.

Fix this by using scope-based cleanup helper free(kfree) for automatic resource cleanup. This ensures unittestdata is automatically freed when it goes out of scope in error paths.

For the success path, use retainandnullptr() to transfer ownership of the memory to the device tree and prevent double freeing.

Affected Software

6 affected components
linux/kernel
Linux Linux kernel>=3.18<6.18.6
Linux Linux kernel=6.19-rc1
Linux Linux kernel=6.19-rc2
Linux Linux kernel=6.19-rc3
Linux Linux kernel=6.19-rc4

Event History

Feb 14, 2026
CVE Published
via MITRE·03:22 PM
Data Sourced
via MITRE·03:22 PM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-23137?

CVE-2026-23137 has a medium severity rating of 5.5 according to the CVSS 3.1 scoring.

2

How do I fix CVE-2026-23137?

CVE-2026-23137 can be fixed by applying the available patch that addresses the memory leak in unittest_data_add().

3

What impact does CVE-2026-23137 have on the Linux kernel?

CVE-2026-23137 can lead to a memory leak due to improper cleanup of allocated resources when of_resolve_phandles() fails.

4

Which software is affected by CVE-2026-23137?

CVE-2026-23137 affects the Linux kernel, specifically the unittest component.

5

When was CVE-2026-23137 published?

CVE-2026-23137 was published on February 14, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203