CVE-2022-50734

nvmem: core: Fix memleak in nvmem_register()

State
Published
Severity
Not scored
Published
Dec 24, 2025
Updated
May 23, 2026
Reserved
Dec 24, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • de0534df93474f268486c486ea7e01b44a478026 to before 9391cc3a787a58aa224a6440d7f244d780ba2896Affected
  • de0534df93474f268486c486ea7e01b44a478026 to before 2bd2774df0ce37920b23819a860a66fdbdd90823Affected
  • de0534df93474f268486c486ea7e01b44a478026 to before b6054b9b239a493672f853b034570cca93ba7a88Affected
  • de0534df93474f268486c486ea7e01b44a478026 to before bd1244561fa2a4531ded40dbf09c9599084f8b29Affected
  • c1d44b93ca9f3ebc26b0de0a7f4b7156702762b6Affected
  • 63c2b13ba0428b8f477e4adb1d40a50eb4493c09Affected
  • 5.13.19 to before 5.14Affected
  • 5.14.6 to before 5.15Affected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 5.15.75 through 5.15.*Not affected
  • 5.19.17 through 5.19.*Not affected
  • 6.0.3 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.