{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52929","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2024-08-21T06:07:11.018Z","datePublished":"2025-03-27T16:37:11.396Z","dateUpdated":"2026-05-11T19:35:54.530Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-05-11T19:35:54.530Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmem: core: fix cleanup after dev_set_name()\n\nIf dev_set_name() fails, we leak nvmem->wp_gpio as the cleanup does not\nput this. While a minimal fix for this would be to add the gpiod_put()\ncall, we can do better if we split device_register(), and use the\ntested nvmem_release() cleanup code by initialising the device early,\nand putting the device.\n\nThis results in a slightly larger fix, but results in clear code.\n\nNote: this patch depends on \"nvmem: core: initialise nvmem->id early\"\nand \"nvmem: core: remove nvmem_config wp_gpio\".\n\n[Srini: Fixed subject line and error code handing with wp_gpio while applying.]"}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvmem/core.c"],"versions":[{"version":"a19a0f67dbb89ad2bfc466f2003841acba645884","lessThan":"23676ecd2eb377f7c24a6ff578b0f4c7135658b6","status":"affected","versionType":"git"},{"version":"14eea6449473c1f55e196cc104ba16d144465869","lessThan":"8f9c4b2a3b132bf6698e477aba6ee194b40c75f4","status":"affected","versionType":"git"},{"version":"5544e90c81261e82e02bbf7c6015a4b9c8c825ef","lessThan":"39708bc8da7858de0bed9b3a88b3beb1d1e0b443","status":"affected","versionType":"git"},{"version":"5544e90c81261e82e02bbf7c6015a4b9c8c825ef","lessThan":"560181d3ace61825f4ca9dd3481d6c0ee6709fa8","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvmem/core.c"],"versions":[{"version":"6.1","status":"affected"},{"version":"0","lessThan":"6.1","status":"unaffected","versionType":"semver"},{"version":"6.1.11","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.1.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/23676ecd2eb377f7c24a6ff578b0f4c7135658b6"},{"url":"https://git.kernel.org/stable/c/8f9c4b2a3b132bf6698e477aba6ee194b40c75f4"},{"url":"https://git.kernel.org/stable/c/39708bc8da7858de0bed9b3a88b3beb1d1e0b443"},{"url":"https://git.kernel.org/stable/c/560181d3ace61825f4ca9dd3481d6c0ee6709fa8"}],"title":"nvmem: core: fix cleanup after dev_set_name()","x_generator":{"engine":"bippy-1.2.0"}}}}