CVE-2022-50734
nvmem: core: Fix memleak in nvmem_register()
CVSS Score
0.0
EPSS Score
0.0%
EPSS Percentile
0th
In the Linux kernel, the following vulnerability has been resolved: nvmem: core: Fix memleak in nvmem_register() dev_set_name will alloc memory for nvmem->dev.kobj.name in nvmem_register, when nvmem_validate_keepouts failed, nvmem's memory will be freed and return, but nobody will free memory for nvmem->dev.kobj.name, there will be memleak, so moving nvmem_validate_keepouts() after device_register() and let the device core deal with cleaning name in error cases.
| Vendor | linux |
| Product | linux |
| Ecosystems | |
| Industries | Technology |
| Published | Dec 24, 2025 |
| Last Updated | May 11, 2026 |
Stay Ahead of the Next One
Get instant alerts for linux linux
Be the first to know when new unknown vulnerabilities affecting linux linux are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
Affected Versions
Linux / Linux
de0534df93474f268486c486ea7e01b44a478026 < 9391cc3a787a58aa224a6440d7f244d780ba2896 de0534df93474f268486c486ea7e01b44a478026 < 2bd2774df0ce37920b23819a860a66fdbdd90823 de0534df93474f268486c486ea7e01b44a478026 < b6054b9b239a493672f853b034570cca93ba7a88 de0534df93474f268486c486ea7e01b44a478026 < bd1244561fa2a4531ded40dbf09c9599084f8b29 c1d44b93ca9f3ebc26b0de0a7f4b7156702762b6 63c2b13ba0428b8f477e4adb1d40a50eb4493c09
Linux / Linux
5.15
References
git.kernel.org: https://git.kernel.org/stable/c/9391cc3a787a58aa224a6440d7f244d780ba2896 git.kernel.org: https://git.kernel.org/stable/c/2bd2774df0ce37920b23819a860a66fdbdd90823 git.kernel.org: https://git.kernel.org/stable/c/b6054b9b239a493672f853b034570cca93ba7a88 git.kernel.org: https://git.kernel.org/stable/c/bd1244561fa2a4531ded40dbf09c9599084f8b29