bus: mhi: host: Fix race between unprepare and queue_buf
Published May 1, 2025
7.8
HIGHCVSS 3.1
EPSS 0.15%
Description
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]
Affected products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 5.15.149StatusaffectedConstraints<5.15.181
- Version 6.1.76StatusaffectedConstraints<6.1.135
- Version 6.6.15StatusaffectedConstraints<6.6.88
- Version 6.7.3StatusaffectedConstraints<6.8
- Version
-
- Version 6.8StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<6.8
- Version 5.15.181StatusunaffectedConstraints<=5.15.*
- Version 6.1.135StatusunaffectedConstraints<=6.1.*
- Version 6.12.24StatusunaffectedConstraints<=6.12.*
- Version 6.13.12StatusunaffectedConstraints<=6.13.*
- Version 6.14.3StatusunaffectedConstraints<=6.14.*
- Version 6.15StatusunaffectedConstraints<=*
- Version 6.6.88StatusunaffectedConstraints<=6.6.*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux | unaffected |
| ||||||||||||||||||||||||||||||
| Linux | Linux | unaffected |
| ||||||||||||||||||||||||||||||
| Linux | Linux | affected |
|
Configuration 1
- ≥ 5.15.149 · < 5.15.181
- ≥ 6.1.76 · < 6.1.135
- ≥ 6.6.15 · < 6.6.88
- ≥ 6.7.3 · < 6.12.24
- ≥ 6.13 · < 6.13.12
- ≥ 6.14 · < 6.14.3
Configuration 2
- 11.0
No data.
Red Hat Enterprise Linux 10
kernel
Fix deferred
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Not affected
Red Hat Enterprise Linux 8
kernel-rt
Not affected
Red Hat Enterprise Linux 9
kernel
Fix deferred
Red Hat Enterprise Linux 9
kernel-rt
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Fix deferred | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Fix deferred | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (14)
- https://access.redhat.com/security/cve/CVE-2025-23151 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2363342 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-13098 Advisory
- https://git.kernel.org/stable/c/0686a818d77a431fc3ba2fab4b46bbb04e8c9380 Patch
- https://git.kernel.org/stable/c/178e5657c8fd285125cc6743a81b513bce099760 Patch
- https://git.kernel.org/stable/c/3e7ecf181cbdde9753204ada3883ca1704d8702b Patch
- https://git.kernel.org/stable/c/5f084993c90d9d0b4a52a349ede5120f992a7ca1 Patch
- https://git.kernel.org/stable/c/899d0353ea69681f474b6bc9de32c663b89672da Patch
- https://git.kernel.org/stable/c/a77955f7704b2a00385e232cbcc1cb06b5c7a425 Patch
- https://git.kernel.org/stable/c/ee1fce83ed56450087309b9b74ad9bcb2b010fa6 Patch
- https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html Mailing List
- https://lore.kernel.org/linux-cve-announce/2025050128-CVE-2025-23151-aba7@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2025-23151
- https://www.cve.org/CVERecord?id=CVE-2025-23151
Change history (0)
No recorded changes yet.