CVE-2022-50734

published 24 Dec 2025 · updated 17 Nov 2026

nvmem: core: Fix memleak in nvmem_register()

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel bd1244561fa2a4531ded40dbf09c9599084f8b29, Kernel 5.14, Kernel 5.15 and 6 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=de0534df93474f268486c486ea7e01b44a478026 <bd1244561fa2a4531ded40dbf09c9599084f8b29, >=5.13.19 <5.14, >=5.14.6 <5.15, >=de0534df93474f268486c486ea7e01b44a478026 <2bd2774df0ce37920b23819a860a66fdbdd90823, >=de0534df93474f268486c486ea7e01b44a478026 <9391cc3a787a58aa224a6440d7f244d780ba2896, >=de0534df93474f268486c486ea7e01b44a478026 <b6054b9b239a493672f853b034570cca93ba7a88, =5.15, =63c2b13ba0428b8f477e4adb1d40a50eb4493c09, =c1d44b93ca9f3ebc26b0de0a7f4b7156702762b6bd1244561fa2a4531ded40dbf09c9599084f8b29, 5.14, 5.15, 2bd2774df0ce37920b23819a860a66fdbdd90823, 9391cc3a787a58aa224a6440d7f244d780ba2896, b6054b9b239a493672f853b034570cca93ba7a88
linux-kernel: Kernel>=5.14.6 <5.15, >=5.15.0 <5.15.75, >=5.16.0 <5.19.17, >=5.20.0 <6.0.3, >=5.13.19 <5.145.15, 5.15.75, 5.19.17, 6.0.3, 5.14

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50734 severity on Zeptric[![CVE-2022-50734](https://zeptric.io/badge/cve/CVE-2022-50734.svg)](https://zeptric.io/cve/CVE-2022-50734)