CVE-2023-52929

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-52929
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52929.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-52929
Downstream
Published
2025-03-27T16:37:11Z
Modified
2025-10-16T14:52:36.626406Z
Summary
nvmem: core: fix cleanup after dev_set_name()
Details

In the Linux kernel, the following vulnerability has been resolved:

nvmem: core: fix cleanup after devsetname()

If devsetname() fails, we leak nvmem->wpgpio as the cleanup does not put this. While a minimal fix for this would be to add the gpiodput() call, we can do better if we split deviceregister(), and use the tested nvmemrelease() 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 nvmemconfig wpgpio".

[Srini: Fixed subject line and error code handing with wp_gpio while applying.]

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a19a0f67dbb89ad2bfc466f2003841acba645884
Fixed
23676ecd2eb377f7c24a6ff578b0f4c7135658b6
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
14eea6449473c1f55e196cc104ba16d144465869
Fixed
8f9c4b2a3b132bf6698e477aba6ee194b40c75f4
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5544e90c81261e82e02bbf7c6015a4b9c8c825ef
Fixed
39708bc8da7858de0bed9b3a88b3beb1d1e0b443
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5544e90c81261e82e02bbf7c6015a4b9c8c825ef
Fixed
560181d3ace61825f4ca9dd3481d6c0ee6709fa8

Affected versions

v6.*

v6.0
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.1
v6.1-rc1
v6.1-rc2
v6.1-rc3
v6.1-rc4
v6.1-rc5
v6.1-rc6
v6.1-rc7
v6.1-rc8
v6.1.1
v6.1.10
v6.1.2
v6.1.3
v6.1.4
v6.1.5
v6.1.6
v6.1.7
v6.1.8
v6.1.9
v6.2-rc1
v6.2-rc2
v6.2-rc3
v6.2-rc4
v6.2-rc5

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.11