{"id":"CVE-2022-50734","aliases":["CVE-2022-50734"],"related":[],"kind":"vulnerability","state":"published","title":"nvmem: core: Fix memleak in nvmem_register()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmem: core: Fix memleak in nvmem_register()\n\ndev_set_name will alloc memory for nvmem->dev.kobj.name in\nnvmem_register, when nvmem_validate_keepouts failed, nvmem's\nmemory will be freed and return, but nobody will free memory\nfor nvmem->dev.kobj.name, there will be memleak, so moving\nnvmem_validate_keepouts() after device_register() and let\nthe device core deal with cleaning name in error cases.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmem: core: Fix memleak in nvmem_register()\n\ndev_set_name will alloc memory for nvmem->dev.kobj.name in\nnvmem_register, when nvmem_validate_keepouts failed, nvmem's\nmemory will be freed and return, but nobody will free memory\nfor nvmem->dev.kobj.name, there will be memleak, so moving\nnvmem_validate_keepouts() after device_register() and let\nthe device core deal with cleaning name in error cases.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnvmem: core: Corrección de fuga de memoria en nvmem_register()\n\ndev_set_name asignará memoria para nvmem  ->  dev.kobj.name en nvmem_register, cuando nvmem_validate_keepouts falló, la memoria de nvmem será liberada y se retornará, pero nadie liberará la memoria para nvmem  ->  dev.kobj.name, habrá una fuga de memoria, por lo tanto, moviendo nvmem_validate_keepouts() después de device_register() y dejando que el núcleo del dispositivo se encargue de limpiar el nombre en casos de error.","source":"nvd"}],"published":"2025-12-24T12:22:53.333Z","modified":"2026-11-10T12:10:00.177Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"de0534df93474f268486c486ea7e01b44a478026","fixed":"9391cc3a787a58aa224a6440d7f244d780ba2896","status":"affected"},{"type":"git","introduced":"de0534df93474f268486c486ea7e01b44a478026","fixed":"2bd2774df0ce37920b23819a860a66fdbdd90823","status":"affected"},{"type":"git","introduced":"de0534df93474f268486c486ea7e01b44a478026","fixed":"b6054b9b239a493672f853b034570cca93ba7a88","status":"affected"},{"type":"git","introduced":"de0534df93474f268486c486ea7e01b44a478026","fixed":"bd1244561fa2a4531ded40dbf09c9599084f8b29","status":"affected"},{"type":"git","version":"c1d44b93ca9f3ebc26b0de0a7f4b7156702762b6","status":"affected"},{"type":"git","version":"63c2b13ba0428b8f477e4adb1d40a50eb4493c09","status":"affected"},{"type":"semver","introduced":"5.13.19","fixed":"5.14","status":"affected"},{"type":"semver","introduced":"5.14.6","fixed":"5.15","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"5.15.75","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.19.17","lastAffected":"5.19.*","status":"unaffected"},{"type":"semver","introduced":"6.0.3","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/9391cc3a787a58aa224a6440d7f244d780ba2896","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2bd2774df0ce37920b23819a860a66fdbdd90823","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b6054b9b239a493672f853b034570cca93ba7a88","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd1244561fa2a4531ded40dbf09c9599084f8b29","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50734","url":"https://www.cve.org/CVERecord?id=CVE-2022-50734","licence":"CVE Terms of Use","modified":"2026-05-23T15:25:01.557Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50734","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50734","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.339Z","epss":{"score":0.00255,"percentile":0.18204,"date":"2026-12-01T12:00:22.000Z"}}