{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-52929","id":"CVE-2023-52929","title":"nvmem: core: fix cleanup after dev_set_name()","description":"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 p","descriptionLong":"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.]","published":"2025-03-27T16:37:11.396Z","updated":"2026-10-28T02:30:53.755981525Z","reserved":"2024-08-21T06:07:11.018Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","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"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","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"}],"platforms":[]}],"packages":[],"cwes":["CWE-459"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/23676ecd2eb377f7c24a6ff578b0f4c7135658b6","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8f9c4b2a3b132bf6698e477aba6ee194b40c75f4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/39708bc8da7858de0bed9b3a88b3beb1d1e0b443","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/560181d3ace61825f4ca9dd3481d6c0ee6709fa8","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52929.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52929","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00246,"epssPercentile":0.16085,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-52929","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52929","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-52929","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-52929","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}