# CVE-2025-23151: bus: mhi: host: Fix race between unprepare and queue\_buf

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-05-01 · Modified: 2026-10-15
- Aliases: UBUNTU-CVE-2025-23151, DEBIAN-CVE-2025-23151
- Record: https://cvemate.com/vulnerability/CVE-2025-23151 · JSON: https://cvemate.com/vulnerability/CVE-2025-23151/json

## Description

```text
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]
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.158%, percentile 5.14%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 131)

- debian linux (Debian): \< 6.1.135-1 \| \< 6.12.25-1
- ubuntu linux (Ubuntu): \< 5.15.0-144.157 \| \< 6.8.0-100.100
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.15.0-1088.95 \| \< 6.8.0-1046.49
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1088.95~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1046.49~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 5.15.0-1088.95+fips1 \| \< 6.8.0-1046.49+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1094.103 \| \< 6.8.0-1046.52
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1094.103~20.04.1
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 41)

- <https://git.kernel.org/stable/c/899d0353ea69681f474b6bc9de32c663b89672da>
- <https://git.kernel.org/stable/c/3e7ecf181cbdde9753204ada3883ca1704d8702b>
- <https://git.kernel.org/stable/c/5f084993c90d9d0b4a52a349ede5120f992a7ca1>
- <https://git.kernel.org/stable/c/a77955f7704b2a00385e232cbcc1cb06b5c7a425>
- <https://git.kernel.org/stable/c/178e5657c8fd285125cc6743a81b513bce099760>
- <https://git.kernel.org/stable/c/ee1fce83ed56450087309b9b74ad9bcb2b010fa6>
- <https://git.kernel.org/stable/c/0686a818d77a431fc3ba2fab4b46bbb04e8c9380>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- <https://ubuntu.com/security/CVE-2025-23151>
- <https://www.cve.org/CVERecord?id=CVE-2025-23151>
- <https://git.kernel.org/linus/0686a818d77a431fc3ba2fab4b46bbb04e8c9380>
- <https://ubuntu.com/security/notices/USN-7594-1>
- <https://ubuntu.com/security/notices/USN-7594-2>
- <https://ubuntu.com/security/notices/USN-7594-3>
- <https://ubuntu.com/security/notices/USN-7654-1>
- <https://ubuntu.com/security/notices/USN-7654-2>
- <https://ubuntu.com/security/notices/USN-7654-3>
- <https://ubuntu.com/security/notices/USN-7655-1>
- <https://ubuntu.com/security/notices/USN-7654-4>
- <https://ubuntu.com/security/notices/USN-7654-5>

---

Data as of 2026-12-05T03:32:20.659Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
