漏洞信息
# Cadence QSPI 引脚释放引用计数漏洞
## 概述
Linux 内核中,`spi: cadence-quadspi` 驱动存在一个因未正确处理强制卸载设备(unbind)操作而导致的漏洞。该问题出现在驱动执行间接读写操作期间,此时若发生强制卸载设备操作,会导致内核崩溃。
## 影响版本
无具体版本号,但问题存在于未包含修复补丁的 Linux 内核版本中。
## 细节
- 驱动原本在执行间接读写操作时,假设不会发生强制移除设备(unbind)操作。
- 然而,root 用户仍可发起设备移除操作。
- 若在间接读写期间发生 unbind 操作,会导致驱动结构体被提前释放,进而引发内核崩溃。
- 修复方式为引入引用计数(refcount)机制,跟踪控制器关联的设备。
- 驱动在移除操作前,会等待所有关联设备操作完成,从而确保安全卸载。
## 影响
未经修复的系统在执行 spi 驱动间接读写过程中,若 root 用户强制卸载设备,可能导致内核崩溃(crash)。
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
spi: cadence-quadspi: Implement refcount to handle unbind during busy
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved:
spi: cadence-quadspi: Implement refcount to handle unbind during busy
driver support indirect read and indirect write operation with
assumption no force device removal(unbind) operation. However
force device removal(removal) is still available to root superuser.
Unbinding driver during operation causes kernel crash. This changes
ensure driver able to handle such operation for indirect read and
indirect write by implementing refcount to track attached devices
to the controller and gracefully wait and until attached devices
remove operation completed before proceed with removal operation.
CVSS信息
N/A
漏洞类别
N/A
漏洞标题
Linux kernel 安全漏洞
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于未实现引用计数机制,可能导致设备移除期间内核崩溃。
CVSS信息
N/A
漏洞类别
其他