CVE-2022-50734
nvmem: core: Fix memleak in nvmem_register()
Check your servers for CVE-2022-50734
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50734 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.2% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from de0534df93474f268486c486ea7e01b44a478026, before 9391cc3a787a58aa224a6440d7f244d780ba2896 affected from de0534df93474f268486c486ea7e01b44a478026, before 2bd2774df0ce37920b23819a860a66fdbdd90823 affected from de0534df93474f268486c486ea7e01b44a478026, before b6054b9b239a493672f853b034570cca93ba7a88 affected from de0534df93474f268486c486ea7e01b44a478026, before bd1244561fa2a4531ded40dbf09c9599084f8b29 affected c1d44b93ca9f3ebc26b0de0a7f4b7156702762b6 affected 63c2b13ba0428b8f477e4adb1d40a50eb4493c09 affected from 5.13.19, before 5.14 affected from 5.14.6, before 5.15
Other versions: unaffected
|
| Linux |
affected 5.15 unaffected before 5.15 unaffected from 5.15.75 up to and including 5.15.* unaffected from 5.19.17 up to and including 5.19.* unaffected from 6.0.3 up to and including 6.0.* unaffected 6.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50734 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50734
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-50734
trivy image --scanners vuln IMAGE | grep CVE-2022-50734
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/9391cc3a787a58aa224a6440d7f244d780ba2896 git.kernel.org
- https://git.kernel.org/stable/c/2bd2774df0ce37920b23819a860a66fdbdd90823 git.kernel.org
- https://git.kernel.org/stable/c/b6054b9b239a493672f853b034570cca93ba7a88 git.kernel.org
- https://git.kernel.org/stable/c/bd1244561fa2a4531ded40dbf09c9599084f8b29 git.kernel.org
Source: the record CVE-2022-50734 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse