CVE-2025-23151

MEDIUM

Linux Kernel - Use-After-Free in MHI Host Queue Buffer Handling

Title source: llm
STIX 2.1

Description

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]

Scores

CVSS v3 4.7
EPSS 0.0005
EPSS Percentile 16.9%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-362
Status published
Products (29)
debian/debian_linux 11.0
linux/Kernel < 5.15.181linux
linux/Kernel 5.16.0 - 6.1.135linux
linux/Kernel 6.13.0 - 6.14.3linux
linux/Kernel 6.2.0 - 6.6.88linux
linux/Kernel 6.7.0 - 6.12.24linux
linux/Kernel 6.8.0 - 6.13.12linux
Linux/Linux < 6.8
Linux/Linux 0b093176fd0967a5f56e2c86b0d48247f6c0fa0f - 3e7ecf181cbdde9753204ada3883ca1704d8702b
Linux/Linux 176ed1727badd2fad2158e2b214dcbc24f4be7a1 - 899d0353ea69681f474b6bc9de32c663b89672da
... and 19 more
Published May 01, 2025
Tracked Since Feb 18, 2026