{"id":"CVE-2025-23151","aliases":["CVE-2025-23151"],"related":[],"kind":"vulnerability","state":"published","title":"bus: mhi: host: Fix race between unprepare and queue_buf","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbus: mhi: host: Fix race between unprepare and queue_buf\n\nA client driver may use mhi_unprepare_from_transfer() to quiesce\nincoming data during the client driver's tear down. The client driver\nmight also be processing data at the same time, resulting in a call to\nmhi_queue_buf() which will invoke mhi_gen_tre(). If mhi_gen_tre() runs\nafter mhi_unprepare_from_transfer() has torn down the channel, a panic\nwill occur due to an invalid dereference leading to a page fault.\n\nThis occurs because mhi_gen_tre() does not verify the channel state\nafter locking it. Fix this by having mhi_gen_tre() confirm the channel\nstate is valid, or return error to avoid accessing deinitialized data.\n\n[mani: added stable tag]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbus: mhi: host: Fix race between unprepare and queue_buf\n\nA client driver may use mhi_unprepare_from_transfer() to quiesce\nincoming data during the client driver's tear down. The client driver\nmight also be processing data at the same time, resulting in a call to\nmhi_queue_buf() which will invoke mhi_gen_tre(). If mhi_gen_tre() runs\nafter mhi_unprepare_from_transfer() has torn down the channel, a panic\nwill occur due to an invalid dereference leading to a page fault.\n\nThis occurs because mhi_gen_tre() does not verify the channel state\nafter locking it. Fix this by having mhi_gen_tre() confirm the channel\nstate is valid, or return error to avoid accessing deinitialized data.\n\n[mani: added stable tag]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bus: mhi: host: Corrección de la competencia entre unprepare y queue_buf. Un controlador de cliente podría usar mhi_unprepare_from_transfer() para silenciar los datos entrantes durante su desconexión. El controlador de cliente también podría estar procesando datos simultáneamente, lo que resulta en una llamada a mhi_queue_buf(), que invocará mhi_gen_tre(). Si mhi_gen_tre() se ejecuta después de que mhi_unprepare_from_transfer() haya desconectado el canal, se producirá un pánico debido a una desreferencia no válida que provoca un fallo de página. Esto ocurre porque mhi_gen_tre() no verifica el estado del canal después de bloquearlo. Para solucionar esto, haga que mhi_gen_tre() confirme que el estado del canal es válido o devuelva un error para evitar acceder a los datos desinicializados. [mani: etiqueta estable añadida]","source":"nvd"}],"published":"2025-05-01T12:55:38.833Z","modified":"2026-10-15T22:18:16.707Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"git","introduced":"176ed1727badd2fad2158e2b214dcbc24f4be7a1","fixed":"899d0353ea69681f474b6bc9de32c663b89672da","status":"affected"},{"type":"git","introduced":"0b093176fd0967a5f56e2c86b0d48247f6c0fa0f","fixed":"3e7ecf181cbdde9753204ada3883ca1704d8702b","status":"affected"},{"type":"git","introduced":"ce16274a6b8d1483d0d8383272deb2bfd1b577ca","fixed":"5f084993c90d9d0b4a52a349ede5120f992a7ca1","status":"affected"},{"type":"git","introduced":"b89b6a863dd53bc70d8e52d50f9cfaef8ef5e9c9","fixed":"a77955f7704b2a00385e232cbcc1cb06b5c7a425","status":"affected"},{"type":"git","introduced":"b89b6a863dd53bc70d8e52d50f9cfaef8ef5e9c9","fixed":"178e5657c8fd285125cc6743a81b513bce099760","status":"affected"},{"type":"git","introduced":"b89b6a863dd53bc70d8e52d50f9cfaef8ef5e9c9","fixed":"ee1fce83ed56450087309b9b74ad9bcb2b010fa6","status":"affected"},{"type":"git","introduced":"b89b6a863dd53bc70d8e52d50f9cfaef8ef5e9c9","fixed":"0686a818d77a431fc3ba2fab4b46bbb04e8c9380","status":"affected"},{"type":"git","version":"642adb03541673f3897f64bbb62856ffd73807f5","status":"affected"},{"type":"semver","introduced":"5.15.149","fixed":"5.15.181","status":"affected"},{"type":"semver","introduced":"6.1.76","fixed":"6.1.135","status":"affected"},{"type":"semver","introduced":"6.6.15","fixed":"6.6.88","status":"affected"},{"type":"semver","introduced":"6.7.3","fixed":"6.8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.8","status":"unaffected"},{"type":"semver","introduced":"5.15.181","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.135","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.88","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.24","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.12","lastAffected":"6.13.*","status":"unaffected"},{"type":"semver","introduced":"6.14.3","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.15.149","fixed":"5.15.181"},{"status":"affected","introduced":"6.1.76","fixed":"6.1.135"},{"status":"affected","introduced":"6.6.15","fixed":"6.6.88"},{"status":"affected","introduced":"6.7.3","fixed":"6.12.24"},{"status":"affected","introduced":"6.13","fixed":"6.13.12"},{"status":"affected","introduced":"6.14","fixed":"6.14.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/899d0353ea69681f474b6bc9de32c663b89672da","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3e7ecf181cbdde9753204ada3883ca1704d8702b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f084993c90d9d0b4a52a349ede5120f992a7ca1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a77955f7704b2a00385e232cbcc1cb06b5c7a425","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/178e5657c8fd285125cc6743a81b513bce099760","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ee1fce83ed56450087309b9b74ad9bcb2b010fa6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0686a818d77a431fc3ba2fab4b46bbb04e8c9380","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":["mailing-list"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:44:50.471Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-23151","url":"https://www.cve.org/CVERecord?id=CVE-2025-23151","licence":"CVE Terms of Use","modified":"2026-10-15T21:51:58.988Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-23151","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-23151","licence":"Public domain","modified":"2026-10-15T22:18:16.707Z"}],"updatedAt":"2026-11-25T22:58:57.267Z","epss":{"score":0.00158,"percentile":0.05175,"date":"2026-12-02T12:00:21.000Z"}}