CVE-2022-50343
rapidio: fix possible name leaks when rio_add_device() fails
Check your servers for CVE-2022-50343
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-50343 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:
rapidio: fix possible name leaks when rio_add_device() fails
Patch series "rapidio: fix three possible memory leaks".
This patchset fixes three name leaks in error handling. - patch #1 fixes two name leaks while rio_add_device() fails. - patch #2 fixes a name leak while rio_register_mport() fails.
This patch (of 2):
If rio_add_device() returns error, the name allocated by dev_set_name() need be freed. It should use put_device() to give up the reference in the error path, so that the name can be freed in kobject_cleanup(), and the 'rdev' can be freed in rio_release_dev().
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.67% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 14 Jan 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-401 Missing Release of Memory after Effective Lifetime
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1fa5ae857bb14f6046205171d98506d8112dd74e, before 3b4676f274a6b5d001176f15d0542100bbf4b59a affected from 1fa5ae857bb14f6046205171d98506d8112dd74e, before c482cb0deb57924335103fe592c379a076d867f8 affected from 1fa5ae857bb14f6046205171d98506d8112dd74e, before 80fad2e53eaed2b3a2ff596575f65669e13ceda5 affected from 1fa5ae857bb14f6046205171d98506d8112dd74e, before 440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8 affected from 1fa5ae857bb14f6046205171d98506d8112dd74e, before 88fa351b20ca300693a206ccd3c4b0e0647944d8 affected from 1fa5ae857bb14f6046205171d98506d8112dd74e, before ec3f04f74f50d0b6bac04d795c93c2b852753a7a affected from 1fa5ae857bb14f6046205171d98506d8112dd74e, before c413f65011ff8caffabcde0e1c3ceede48a48d6f affected from 1fa5ae857bb14f6046205171d98506d8112dd74e, before 85fbf58b15c09d3a6a03098c1e42ebfe9002f39d affected from 1fa5ae857bb14f6046205171d98506d8112dd74e, before f9574cd48679926e2a569e1957a5a1bcc8a719ac
Other versions: unaffected
|
| Linux |
affected 2.6.30 unaffected before 2.6.30 unaffected from 4.9.337 up to and including 4.9.* unaffected from 4.14.303 up to and including 4.14.* unaffected from 4.19.270 up to and including 4.19.* unaffected from 5.4.229 up to and including 5.4.* unaffected from 5.10.163 up to and including 5.10.* unaffected from 5.15.86 up to and including 5.15.* unaffected from 6.0.16 up to and including 6.0.* unaffected from 6.1.2 up to and including 6.1.* unaffected 6.2 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-50343 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50343
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-50343
trivy image --scanners vuln IMAGE | grep CVE-2022-50343
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/3b4676f274a6b5d001176f15d0542100bbf4b59a git.kernel.org
- https://git.kernel.org/stable/c/c482cb0deb57924335103fe592c379a076d867f8 git.kernel.org
- https://git.kernel.org/stable/c/80fad2e53eaed2b3a2ff596575f65669e13ceda5 git.kernel.org
- https://git.kernel.org/stable/c/440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8 git.kernel.org
- https://git.kernel.org/stable/c/88fa351b20ca300693a206ccd3c4b0e0647944d8 git.kernel.org
- https://git.kernel.org/stable/c/ec3f04f74f50d0b6bac04d795c93c2b852753a7a git.kernel.org
- https://git.kernel.org/stable/c/c413f65011ff8caffabcde0e1c3ceede48a48d6f git.kernel.org
- https://git.kernel.org/stable/c/85fbf58b15c09d3a6a03098c1e42ebfe9002f39d git.kernel.org
- https://git.kernel.org/stable/c/f9574cd48679926e2a569e1957a5a1bcc8a719ac git.kernel.org
Source: the record CVE-2022-50343 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse