{"id":"CVE-2023-52929","aliases":["CVE-2023-52929"],"related":[],"kind":"vulnerability","state":"published","title":"nvmem: core: fix cleanup after dev_set_name()","summary":"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.]","summarySource":"cvelist","descriptions":[{"lang":"en","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.]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nvmem: core: fix cleanup after dev_set_name(). Si dev_set_name() falla, se filtra nvmem-&gt;wp_gpio, ya que la limpieza no lo incluye. Si bien una solución mínima sería añadir la llamada gpiod_put(), podemos mejorar si dividimos device_register() y usamos el código de limpieza nvmem_release() probado, inicializando el dispositivo antes y colocándolo. Esto resulta en una corrección ligeramente mayor, pero con código limpio. Nota: Este parche depende de \"nvmem: core: initialise nvmem-&gt;id early\" y \"nvmem: core: remove nvmem_config wp_gpio\". [Srini: Se corrigió la línea de asunto y la gestión del código de error con wp_gpio durante la aplicación].","source":"nvd"}],"published":"2025-03-27T16:37:11.396Z","modified":"2026-06-17T06:43:57.387Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-459"],"affected":[{"ranges":[{"type":"git","introduced":"a19a0f67dbb89ad2bfc466f2003841acba645884","fixed":"23676ecd2eb377f7c24a6ff578b0f4c7135658b6","status":"affected"},{"type":"git","introduced":"14eea6449473c1f55e196cc104ba16d144465869","fixed":"8f9c4b2a3b132bf6698e477aba6ee194b40c75f4","status":"affected"},{"type":"git","introduced":"5544e90c81261e82e02bbf7c6015a4b9c8c825ef","fixed":"39708bc8da7858de0bed9b3a88b3beb1d1e0b443","status":"affected"},{"type":"git","introduced":"5544e90c81261e82e02bbf7c6015a4b9c8c825ef","fixed":"560181d3ace61825f4ca9dd3481d6c0ee6709fa8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.1","status":"unaffected"},{"type":"semver","introduced":"6.1.11","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.1","fixed":"6.1.11"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/23676ecd2eb377f7c24a6ff578b0f4c7135658b6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8f9c4b2a3b132bf6698e477aba6ee194b40c75f4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/39708bc8da7858de0bed9b3a88b3beb1d1e0b443","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/560181d3ace61825f4ca9dd3481d6c0ee6709fa8","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-52929","url":"https://www.cve.org/CVERecord?id=CVE-2023-52929","licence":"CVE Terms of Use","modified":"2026-05-11T19:35:54.530Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-52929","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52929","licence":"Public domain","modified":"2026-06-17T06:43:57.387Z"}],"updatedAt":"2026-11-25T22:58:34.573Z","epss":{"score":0.00246,"percentile":0.16997,"date":"2026-12-01T12:00:22.000Z"}}