CVE-2021-47026
Last modified
CVE-2021-47026 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.24% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 5.8, < 5.10.37 |
| Linux | Linux Kernel | >= 5.11, < 5.11.21 |
| Linux | Linux Kernel | >= 5.12, < 5.12.4 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2021-47026?
How severe is CVE-2021-47026?
How do I fix CVE-2021-47026?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-47020In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47021In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47022In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47023In the Linux kernel, the following vulnerability has been re…8.2
- CVE-2021-47024In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47025In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47027In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47028In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47029In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47030In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47031In the Linux kernel, the following vulnerability has been re…4.3
- CVE-2021-47032In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2021-47026?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
