# CVE-2023-52929: nvmem: core: fix cleanup after dev\_set\_name()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 14, 2026-11-26)
- **CWE:** CWE-459
- **Published:** 2025-03-27T16:37:11.396Z
- **Modified:** 2026-06-17T06:43:57.387Z

## Who should check

- Anyone running Linux \>= a19a0f67dbb89ad2bfc466f2003841acba645884, \< 23676ecd2eb377f7c24a6ff578b0f4c7135658b6; \>= 14eea6449473c1f55e196cc104ba16d144465869, \< 8f9c4b2a3b132bf6698e477aba6ee194b40c75f4; \>= 5544e90c81261e82e02bbf7c6015a4b9c8c825ef, \< 39708bc8da7858de0bed9b3a88b3beb1d1e0b443; \>= 5544e90c81261e82e02bbf7c6015a4b9c8c825ef, \< 560181d3ace61825f4ca9dd3481d6c0ee6709fa8
- Anyone running Linux 6.1

## 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.\]

## Affected and fixed versions

- Linux: \>= a19a0f67dbb89ad2bfc466f2003841acba645884, \< 23676ecd2eb377f7c24a6ff578b0f4c7135658b6; \>= 14eea6449473c1f55e196cc104ba16d144465869, \< 8f9c4b2a3b132bf6698e477aba6ee194b40c75f4; \>= 5544e90c81261e82e02bbf7c6015a4b9c8c825ef, \< 39708bc8da7858de0bed9b3a88b3beb1d1e0b443; \>= 5544e90c81261e82e02bbf7c6015a4b9c8c825ef, \< 560181d3ace61825f4ca9dd3481d6c0ee6709fa8 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- Upgrade Linux to 560181d3ace61825f4ca9dd3481d6c0ee6709fa8 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52929. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52929.md
Affected: Linux >= a19a0f67dbb89ad2bfc466f2003841acba645884, < 23676ecd2eb377f7c24a6ff578b0f4c7135658b6; >= 14eea6449473c1f55e196cc104ba16d144465869, < 8f9c4b2a3b132bf6698e477aba6ee194b40c75f4; >= 5544e90c81261e82e02bbf7c6015a4b9c8c825ef, < 39708bc8da7858de0bed9b3a88b3beb1d1e0b443; >= 5544e90c81261e82e02bbf7…
Fixed in: Linux 23676ecd2eb377f7c24a6ff578b0f4c7135658b6, Linux 8f9c4b2a3b132bf6698e477aba6ee194b40c75f4, Linux 39708bc8da7858de0bed9b3a88b3beb1d1e0b443, Linux 560181d3ace61825f4ca9dd3481d6c0ee6709fa8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52929 being exploited?

There is no confirmed exploitation: CVE-2023-52929 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-52929?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52929?

Linux \>= a19a0f67dbb89ad2bfc466f2003841acba645884, \< 23676ecd2eb377f7c24a6ff578b0f4c7135658b6; \>= 14eea6449473c1f55e196cc104ba16d144465869, \< 8f9c4b2a3b132bf6698e477aba6ee194b40c75f4; \>= 5544e90c81261e82e02bbf7c6015a4b9c8c825ef, \< 39708bc8da7858de0bed9b3a88b3beb1d1e0b443; \>= 5544e90c81261e82e02bbf7c6015a4b9c8c825ef, \< 560181d3ace61825f4ca9dd3481d6c0ee6709fa8; Linux 6.1.

### Is there a fix for CVE-2023-52929?

Yes. Fixed in Linux 23676ecd2eb377f7c24a6ff578b0f4c7135658b6, Linux 8f9c4b2a3b132bf6698e477aba6ee194b40c75f4, Linux 39708bc8da7858de0bed9b3a88b3beb1d1e0b443, Linux 560181d3ace61825f4ca9dd3481d6c0ee6709fa8. Upgrade Linux to 560181d3ace61825f4ca9dd3481d6c0ee6709fa8 or later.

### How do I check if I'm affected by CVE-2023-52929?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/23676ecd2eb377f7c24a6ff578b0f4c7135658b6>
- patch: <https://git.kernel.org/stable/c/8f9c4b2a3b132bf6698e477aba6ee194b40c75f4>
- patch: <https://git.kernel.org/stable/c/39708bc8da7858de0bed9b3a88b3beb1d1e0b443>
- patch: <https://git.kernel.org/stable/c/560181d3ace61825f4ca9dd3481d6c0ee6709fa8>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52929>

HTML: <https://flawdb.com/CVE-2023-52929> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52929>
