CVE-2023-52929 Details
Description
In the Linux kernel, the following vulnerability has been resolved: nvmem: core: fix cleanup after dev_set_name() If dev_set_name() fails, we leak nvmem->wp_gpio as the cleanup does not put this. While a minimal fix for this would be to add the gpiod_put() call, we can do better if we split device_register(), and use the tested nvmem_release() cleanup code by initialising the device early, and putting the device. This results in a slightly larger fix, but results in clear code. Note: this patch depends on "nvmem: core: initialise nvmem->id early" and "nvmem: core: remove nvmem_config wp_gpio". [Srini: Fixed subject line and error code handing with wp_gpio while applying.]
A vulnerability in the Linux kernel's NVMEM (Non-Volatile Memory) subsystem has been addressed. The issue arose because the cleanup process did not properly release a GPIO resource if the function dev_set_name() failed, leading to a resource leak. The vulnerability was resolved by modifying the device registration process to initialize the device earlier and incorporate a proper cleanup routine, resulting in clearer code.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/23676ecd2eb377f7c24a6ff578b0f4c7135658b6 | kernel.org | Patch |
| https://git.kernel.org/stable/c/39708bc8da7858de0bed9b3a88b3beb1d1e0b443 | kernel.org | Patch |
| https://git.kernel.org/stable/c/560181d3ace61825f4ca9dd3481d6c0ee6709fa8 | kernel.org | Patch |
| https://git.kernel.org/stable/c/8f9c4b2a3b132bf6698e477aba6ee194b40c75f4 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-459 | Incomplete Cleanup | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.1, < 6.1.11 6.2 rc1 6.2 rc2 6.2 rc3 6.2 rc4 6.2 rc5 6.2 rc6 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 28, 2025 | Initial Analysis | [email protected] |
| Mar 27, 2025 | New CVE Received | kernel.org |