一、 漏洞 CVE-2025-23151 基础信息
漏洞信息
                                        # bus: mhi: host: 解决unprepare和queue_buf之间的竞争问题

## 漏洞概述
在Linux内核中,修复了一个关于MHI主机之间的竞态条件漏洞。在客户端驱动程序的拆解过程中,客户端驱动程序可能会使用`mhi_unprepare_from_transfer()`来暂停数据流入,同时处理数据时,可能会调用`mhi_queue_buf()`,导致`mhi_gen_tre()`运行,并由此引发非法指针解引用,最终导致页面错误。

## 影响版本
未具体列出,但影响Linux内核中使用MHI主机接口的版本。

## 细节
客户端驱动程序在拆解过程中调用`mhi_unprepare_from_transfer()`来暂停数据流入,同时处理数据时,可能会调用`mhi_queue_buf()`,这会导致`mhi_gen_tre()`运行。如果`mhi_gen_tre()`在`mhi_unprepare_from_transfer()`已经拆解了通道后运行,那么由于非法指针解引用,会引发页面错误。

## 影响
`mhi_gen_tre()`未验证锁定后的通道状态,导致当通道被拆解后仍然尝试访问数据时,发生非法指针解引用,最终导致系统崩溃。通过让`mhi_gen_tre()`确认通道状态有效或返回错误来避免访问已解除初始化的数据,这个问题得以修复。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
bus: mhi: host: Fix race between unprepare and queue_buf
来源:美国国家漏洞数据库 NVD
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved: bus: mhi: host: Fix race between unprepare and queue_buf A client driver may use mhi_unprepare_from_transfer() to quiesce incoming data during the client driver's tear down. The client driver might also be processing data at the same time, resulting in a call to mhi_queue_buf() which will invoke mhi_gen_tre(). If mhi_gen_tre() runs after mhi_unprepare_from_transfer() has torn down the channel, a panic will occur due to an invalid dereference leading to a page fault. This occurs because mhi_gen_tre() does not verify the channel state after locking it. Fix this by having mhi_gen_tre() confirm the channel state is valid, or return error to avoid accessing deinitialized data. [mani: added stable tag]
来源:美国国家漏洞数据库 NVD
CVSS信息
N/A
来源:美国国家漏洞数据库 NVD
漏洞类别
N/A
来源:美国国家漏洞数据库 NVD
漏洞标题
Linux kernel 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于mhi_gen_tre未验证通道状态,可能导致无效内存访问。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2025-23151 的公开POC
# POC 描述 源链接 神龙链接
三、漏洞 CVE-2025-23151 的情报信息