漏洞标题
RDMA/rtrs-clt:从活跃列表中移除会话后,销毁sysfs。
漏洞描述信息
在Linux内核中,以下漏洞已被修复:
RDMA/rtrs-clt:在从活动会话列表中移除会话后,销毁sysfs接口
一个会话可以通过sysfs接口"remove_path"动态移除,该接口最终调用rtrs_clt_remove_path_from_sysfs函数。当前的实现是,首先移除会话的sysfs接口,并释放sess->stats对象。其次,从活动会话列表中移除该会话。
因此,某些函数仍然需要检查会话状态,因为关闭或错误恢复路径可能会改变状态。
CVSS信息
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
漏洞类别
关键资源的不正确权限授予
漏洞标题
RDMA/rtrs-clt: destroy sysfs after removing session from active list
漏洞描述信息
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.
CVSS信息
N/A
漏洞类别
N/A
漏洞标题
Linux kernel 安全漏洞
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在安全漏洞,该漏洞源于允许从活动列表中删除会话。
CVSS信息
N/A
漏洞类别
其他