CVE-2023-52929

published 27 Mar 2025 · updated 11 May 2026

nvmem: core: fix cleanup after dev_set_name()

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 8f9c4b2a3b132bf6698e477aba6ee194b40c75f4, Kernel 39708bc8da7858de0bed9b3a88b3beb1d1e0b443, Kernel 560181d3ace61825f4ca9dd3481d6c0ee6709fa8 and 1 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.1, >=14eea6449473c1f55e196cc104ba16d144465869 <8f9c4b2a3b132bf6698e477aba6ee194b40c75f4, >=5544e90c81261e82e02bbf7c6015a4b9c8c825ef <39708bc8da7858de0bed9b3a88b3beb1d1e0b443, >=5544e90c81261e82e02bbf7c6015a4b9c8c825ef <560181d3ace61825f4ca9dd3481d6c0ee6709fa8, >=a19a0f67dbb89ad2bfc466f2003841acba645884 <23676ecd2eb377f7c24a6ff578b0f4c7135658b68f9c4b2a3b132bf6698e477aba6ee194b40c75f4, 39708bc8da7858de0bed9b3a88b3beb1d1e0b443, 560181d3ace61825f4ca9dd3481d6c0ee6709fa8, 23676ecd2eb377f7c24a6ff578b0f4c7135658b6

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-52929 severity on Zeptric[![CVE-2023-52929](https://zeptric.io/badge/cve/CVE-2023-52929.svg)](https://zeptric.io/cve/CVE-2023-52929)