What’s Vulnerable › Vulnerabilities
CVE-2022-50734: nvmem: core: Fix memleak in nvmem_register()
- Severity: unknown
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-12-24 · updated 2026-06-17
Description
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.
Affected products
- Linux kernel: from 5.13.19 before 5.14; from 5.14.6 before 5.15; 5.15 — fixed in 5.14, 5.15, 6.1
How to fix
Upgrade to a fixed version: Linux kernel 5.14, 5.15, 6.1. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/2bd2774df0ce37920b23819a860a66fdbdd90823
- https://git.kernel.org/stable/c/9391cc3a787a58aa224a6440d7f244d780ba2896
- https://git.kernel.org/stable/c/b6054b9b239a493672f853b034570cca93ba7a88
- https://git.kernel.org/stable/c/bd1244561fa2a4531ded40dbf09c9599084f8b29
Get alerted when CVE-2022-50734 or the next vulnerability affects your stack