bus: mhi: host: Fix race between unprepare and queue_buf
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.15.181, 6.1.135, 6.6.88, 6.8, 6.12.24, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
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]
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 176ed1727badd2fad2158e2b214dcbc24f4be7a1 · fixed in 899d0353ea69681f474b6bc9de32c663b89672da; From 0b093176fd0967a5f56e2c86b0d48247f6c0fa0f · fixed in 3e7ecf181cbdde9753204ada3883ca1704d8702b; From ce16274a6b8d1483d0d8383272deb2bfd1b577ca · fixed in 5f084993c90d9d0b4a52a349ede5120f992a7ca1; From b89b6a863dd53bc70d8e52d50f9cfaef8ef5e9c9 · fixed in a77955f7704b2a00385e232cbcc1cb06b5c7a425; From b89b6a863dd53bc70d8e52d50f9cfaef8ef5e9c9 · fixed in 178e5657c8fd285125cc6743a81b513bce099760; From b89b6a863dd53bc70d8e52d50f9cfaef8ef5e9c9 · fixed in ee1fce83ed56450087309b9b74ad9bcb2b010fa6; From b89b6a863dd53bc70d8e52d50f9cfaef8ef5e9c9 · fixed in 0686a818d77a431fc3ba2fab4b46bbb04e8c9380; From 5.15.149 · fixed in 5.15.181; From 6.1.76 · fixed in 6.1.135; From 6.6.15 · fixed in 6.6.88; From 6.7.3 · fixed in 6.8
- Linux Linux
6.8
- KernelLinux
fixed in 5.15.181; From 5.16.0 · fixed in 6.1.135; From 6.2.0 · fixed in 6.6.88; From 6.7.0 · fixed in 6.12.24; From 6.8.0 · fixed in 6.13.12; From 6.13.0 · fixed in 6.14.3
References 7
git.kernel.org
- stable/c/899d0353ea69681f474b6bc9de32c663b89672da
- stable/c/3e7ecf181cbdde9753204ada3883ca1704d8702b
- stable/c/5f084993c90d9d0b4a52a349ede5120f992a7ca1
- stable/c/a77955f7704b2a00385e232cbcc1cb06b5c7a425
- stable/c/178e5657c8fd285125cc6743a81b513bce099760
- stable/c/ee1fce83ed56450087309b9b74ad9bcb2b010fa6
- stable/c/0686a818d77a431fc3ba2fab4b46bbb04e8c9380