CVE-2021-47026: RDMA/rtrs-clt: destroy sysfs after removing session from active list

Published Feb 28, 2024
·
Updated

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 "removepath" that eventually calls rtrscltremovepathfromsysfs function. The current rtrscltremovepathfromsysfs 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 rtrscltrequest and getnextpathmininflight 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 rtrscltsess before reading its stats")

This patch changes the rtrscltremovepathfromsysfs 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.

Affected Software

3 affected components
Linux Linux kernel>=5.8<5.10.37
Linux Linux kernel>=5.11<5.11.21
Linux Linux kernel>=5.12<5.12.4

Event History

Feb 28, 2024
CVE Published
via MITRE·08:13 AM
Data Sourced
via MITRE·08:13 AM
Description
Data Sourced
via NVD·09:15 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2021-47026?

The severity of CVE-2021-47026 is classified as medium severity due to its potential impact on the stability of the RDMA subsystem in the Linux kernel.

2

How do I fix CVE-2021-47026?

To fix CVE-2021-47026, update the Linux kernel to a version later than 5.10.37, 5.11.21, or 5.12.4.

3

Which versions of the Linux kernel are affected by CVE-2021-47026?

CVE-2021-47026 affects Linux kernel versions between 5.8 and 5.10.37, 5.11 and 5.11.21, as well as 5.12 and 5.12.4.

4

What component of the Linux kernel is vulnerable in CVE-2021-47026?

CVE-2021-47026 impacts the RDMA/rtrs-clt component of the Linux kernel.

5

Is there a workaround for CVE-2021-47026?

There is no known workaround for CVE-2021-47026, and upgrading is the recommended action.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203