CVE-2021-47026
RDMA/rtrs-clt: destroy sysfs after removing session from active list
Check your servers for CVE-2021-47026
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-2021-47026 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:
RDMA/rtrs-clt: destroy sysfs after removing session from active list
A session can be removed dynamically by sysfs interface "remove_path" that eventually calls rtrs_clt_remove_path_from_sysfs function. The current rtrs_clt_remove_path_from_sysfs first removes the sysfs interfaces and frees sess->stats object. Second it removes the session from the active list.
Therefore some functions could access non-connected session and access the freed sess->stats object even-if they check the session status before accessing the session.
For instance rtrs_clt_request and get_next_path_min_inflight check the session status and try to send IO to the session. The session status could be changed when they are trying to send IO but they could not catch the change and update the statistics information in sess->stats object, and generate use-after-free problem. (see: "RDMA/rtrs-clt: Check state of the rtrs_clt_sess before reading its stats")
This patch changes the rtrs_clt_remove_path_from_sysfs to remove the session from the active session list and then destroy the sysfs interfaces.
Each function still should check the session status because closing or error recovery paths can change the status.
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 28 Feb 2024):
- 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
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 6a98d71daea186247005099758af549e6afdd244, before b64415c6b3476cf9fa4d0aea3807065b8403a937 affected from 6a98d71daea186247005099758af549e6afdd244, before 676171f9405dcaa45a33d18241c32f387dbaae39 affected from 6a98d71daea186247005099758af549e6afdd244, before d3cca8067d43dfee4a3535c645b55f618708dccb affected from 6a98d71daea186247005099758af549e6afdd244, before 7f4a8592ff29f19c5a2ca549d0973821319afaad
Other versions: unaffected
|
| Linux |
affected 5.8 unaffected before 5.8 unaffected from 5.10.37 up to and including 5.10.* unaffected from 5.11.21 up to and including 5.11.* unaffected from 5.12.4 up to and including 5.12.* unaffected 5.13 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-2021-47026 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47026
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-2021-47026
trivy image --scanners vuln IMAGE | grep CVE-2021-47026
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/b64415c6b3476cf9fa4d0aea3807065b8403a937 git.kernel.org
- https://git.kernel.org/stable/c/676171f9405dcaa45a33d18241c32f387dbaae39 git.kernel.org
- https://git.kernel.org/stable/c/d3cca8067d43dfee4a3535c645b55f618708dccb git.kernel.org
- https://git.kernel.org/stable/c/7f4a8592ff29f19c5a2ca549d0973821319afaad git.kernel.org
Source: the record CVE-2021-47026 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse