CVE-2022-50734

nvmem: core: Fix memleak in nvmem_register()

published December 24, 2025

CVSS
—
EPSS
0%
Percentile
14.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00238 · 14.0th percentile
Published
2025-12-24T12:22Z
EPSS history
Timeline
  • 24 DEC 12:22Z
    nvmem: core: Fix memleak in nvmem_register()
    cvelistv5