{"id":"CVE-2023-52929","published":"2025-03-27T16:37:11Z","modified":"2026-05-11T19:35:54Z","title":"nvmem: core: fix cleanup after dev_set_name()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.]","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00284,"percentile":0.13516,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/23676ecd2eb377f7c24a6ff578b0f4c7135658b6","tags":[]},{"url":"https://git.kernel.org/stable/c/8f9c4b2a3b132bf6698e477aba6ee194b40c75f4","tags":[]},{"url":"https://git.kernel.org/stable/c/39708bc8da7858de0bed9b3a88b3beb1d1e0b443","tags":[]},{"url":"https://git.kernel.org/stable/c/560181d3ace61825f4ca9dd3481d6c0ee6709fa8","tags":[]}],"priority":{"score":2.7,"factors":[{"name":"EPSS percentile","points":2.7}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= a19a0f67dbb89ad2bfc466f2003841acba645884, < 23676ecd2eb377f7c24a6ff578b0f4c7135658b6",">= 14eea6449473c1f55e196cc104ba16d144465869, < 8f9c4b2a3b132bf6698e477aba6ee194b40c75f4",">= 5544e90c81261e82e02bbf7c6015a4b9c8c825ef, < 39708bc8da7858de0bed9b3a88b3beb1d1e0b443",">= 5544e90c81261e82e02bbf7c6015a4b9c8c825ef, < 560181d3ace61825f4ca9dd3481d6c0ee6709fa8"]},{"vendor":"Linux","product":"Linux","versions":["6.1"]}],"euvd":{"id":"EUVD-2023-59761","exploited":false,"provenance":"source"}}