Memory Leak Affecting linux-gcp-6.12 package, versions <6.12.80-r0


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.17% (7th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-LINUXGCP612-15992067
  • published12 Apr 2026
  • disclosed14 Feb 2026

Introduced: 14 Feb 2026

CVE-2026-23137  (opens in a new tab)
CWE-401  (opens in a new tab)

How to fix?

Upgrade Chainguard linux-gcp-6.12 to version 6.12.80-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream linux-gcp-6.12 package and not the linux-gcp-6.12 package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1