CVE-2023-52929

nvmem: core: fix cleanup after dev_set_name()

MEDIUM
5.5
CVSS Score
Published: March 27, 2025 at 04:37 PM UTC
Updated: June 17, 2026 at 06:43 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.1 ≤ v < 6.1.116.1 ≤ v < 6.214eea6449473c1f55e196cc104ba16d1444658695544e90c81261e82e02bbf7c6015a4b9c8c825ef6.16.2 rc16.2 rc26.2 rc36.2 rc46.2 rc56.2 rc6a19a0f67dbb89ad2bfc466f2003841acba645884
Vendor states this is fixed in 23676ecd2eb377f7c24a6ff578b0f4c7135658b6 (fixed)
Vendor states this is fixed in 39708bc8da7858de0bed9b3a88b3beb1d1e0b443 (fixed)
Vendor states this is fixed in 560181d3ace61825f4ca9dd3481d6c0ee6709fa8 (fixed)
Vendor states this is fixed in 8f9c4b2a3b132bf6698e477aba6ee194b40c75f4 (fixed)
Vendor states this is fixed in 6.1 (unaffected)
Vendor states this is fixed in 6.1.11 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/23676ecd2eb377f7c24a6ff578b0f4c7135658b6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/39708bc8da7858de0bed9b3a88b3beb1d1e0b443
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/560181d3ace61825f4ca9dd3481d6c0ee6709fa8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8f9c4b2a3b132bf6698e477aba6ee194b40c75f4

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-459

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card