CVE-2023-52929

nvmem: core: fix cleanup after dev_set_name()

No CVSS score yet EPSS 0.25%

Published 27 Mar 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2023-52929

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-52929 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

Exploitation

EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.9% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from a19a0f67dbb89ad2bfc466f2003841acba645884, before 23676ecd2eb377f7c24a6ff578b0f4c7135658b6
affected from 14eea6449473c1f55e196cc104ba16d144465869, before 8f9c4b2a3b132bf6698e477aba6ee194b40c75f4
affected from 5544e90c81261e82e02bbf7c6015a4b9c8c825ef, before 39708bc8da7858de0bed9b3a88b3beb1d1e0b443
affected from 5544e90c81261e82e02bbf7c6015a4b9c8c825ef, before 560181d3ace61825f4ca9dd3481d6c0ee6709fa8
Other versions: unaffected
Linux
affected 6.1
unaffected before 6.1
unaffected from 6.1.11 up to and including 6.1.*
unaffected 6.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-52929 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52929

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-52929
trivy image --scanners vuln IMAGE | grep CVE-2023-52929

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2023-52929 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.