Bug 2425068 (CVE-2022-50734) - CVE-2022-50734 kernel: nvmem: core: Fix memleak in nvmem_register()
Summary: CVE-2022-50734 kernel: nvmem: core: Fix memleak in nvmem_register()
Keywords:
Status: NEW
Alias: CVE-2022-50734
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-24 13:06 UTC by OSIDB Bzimport
Modified: 2026-06-29 17:52 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-24 13:06:13 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.