# CVE-2022-50734: nvmem: core: Fix memleak in nvmem\_register()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-12-24T12:22:53.333Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= de0534df93474f268486c486ea7e01b44a478026, \< 9391cc3a787a58aa224a6440d7f244d780ba2896; \>= de0534df93474f268486c486ea7e01b44a478026, \< 2bd2774df0ce37920b23819a860a66fdbdd90823; \>= de0534df93474f268486c486ea7e01b44a478026, \< b6054b9b239a493672f853b034570cca93ba7a88; \>= de0534df93474f268486c486ea7e01b44a478026, \< bd1244561fa2a4531ded40dbf09c9599084f8b29; c1d44b93ca9f3ebc26b0de0a7f4b7156702762b6; 63c2b13ba0428b8f477e4adb1d40a50eb4493c09; \>= 5.13.19, \< 5.14; \>= 5.14.6, \< 5.15
- Anyone running Linux 5.15

## 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 and fixed versions

- Linux: \>= de0534df93474f268486c486ea7e01b44a478026, \< 9391cc3a787a58aa224a6440d7f244d780ba2896; \>= de0534df93474f268486c486ea7e01b44a478026, \< 2bd2774df0ce37920b23819a860a66fdbdd90823; \>= de0534df93474f268486c486ea7e01b44a478026, \< b6054b9b239a493672f853b034570cca93ba7a88; \>= de0534df93474f268486c486ea7e01b44a478026, \< bd1244561fa2a4531ded40dbf09c9599084f8b29; c1d44b93ca9f3ebc26b0de0a7f4b7156702762b6; 63c2b13ba0428b8f477e4adb1d40a50eb4493c09; \>= 5.13.19, \< 5.14; \>= 5.14.6, \< 5.15 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 5.15 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50734. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50734.md
Affected: Linux >= de0534df93474f268486c486ea7e01b44a478026, < 9391cc3a787a58aa224a6440d7f244d780ba2896; >= de0534df93474f268486c486ea7e01b44a478026, < 2bd2774df0ce37920b23819a860a66fdbdd90823; >= de0534df93474f268486c486ea7e01b44a478026, < b6054b9b239a493672f853b034570cca93ba7a88; >= de0534df93474f268486c48…
Fixed in: Linux 9391cc3a787a58aa224a6440d7f244d780ba2896, Linux 2bd2774df0ce37920b23819a860a66fdbdd90823, Linux 5.14, Linux 5.15

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50734 being exploited?

There is no confirmed exploitation: CVE-2022-50734 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50734?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50734?

Linux \>= de0534df93474f268486c486ea7e01b44a478026, \< 9391cc3a787a58aa224a6440d7f244d780ba2896; \>= de0534df93474f268486c486ea7e01b44a478026, \< 2bd2774df0ce37920b23819a860a66fdbdd90823; \>= de0534df93474f268486c486ea7e01b44a478026, \< b6054b9b239a493672f853b034570cca93ba7a88; \>= de0534df93474f268486c486ea7e01b44a478026, \< bd1244561fa2a4531ded40dbf09c9599084f8b29; c1d44b93ca9f3ebc26b0de0a7f4b7156702762b6; 63c2b13ba0428b8f477e4adb1d40a50eb4493c09; \>= 5.13.19, \< 5.14; \>= 5.14.6, \< 5.15; Linux 5.15.

### Is there a fix for CVE-2022-50734?

Yes. Fixed in Linux 9391cc3a787a58aa224a6440d7f244d780ba2896, Linux 2bd2774df0ce37920b23819a860a66fdbdd90823, Linux 5.14, Linux 5.15. Upgrade Linux to 5.15 or later.

### How do I check if I'm affected by CVE-2022-50734?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/9391cc3a787a58aa224a6440d7f244d780ba2896>
- other: <https://git.kernel.org/stable/c/2bd2774df0ce37920b23819a860a66fdbdd90823>
- other: <https://git.kernel.org/stable/c/b6054b9b239a493672f853b034570cca93ba7a88>
- other: <https://git.kernel.org/stable/c/bd1244561fa2a4531ded40dbf09c9599084f8b29>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50734>

HTML: <https://flawdb.com/CVE-2022-50734> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50734>
