CVE-2023-54249: bus: mhi: ep: Only send -ENOTCONN status if client driver is available
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
bus: mhi: ep: Only send -ENOTCONN status if client driver is available
For the STOP and RESET commands, only send the channel disconnect status -ENOTCONN if client driver is available. Otherwise, it will result in null pointer dereference.
The Linux kernel CVE team has assigned CVE-2023-54249 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.19 with commit e827569062a804c67b51930ce83a4cb886113cb7 and fixed in 6.1.16 with commit 353aea15d6edbd4e69e039356a1bd3e641f7d952 Issue introduced in 5.19 with commit e827569062a804c67b51930ce83a4cb886113cb7 and fixed in 6.2.3 with commit 860ad591056d7e4dc30bc130b6ec6e6d70930c85 Issue introduced in 5.19 with commit e827569062a804c67b51930ce83a4cb886113cb7 and fixed in 6.3 with commit e6cebcc27519dcf1652e604c73b9fd4f416987c0
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2023-54249
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/bus/mhi/ep/main.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/353aea15d6edbd4e69e039356a1bd3e641f7d952 https://git.kernel.org/stable/c/860ad591056d7e4dc30bc130b6ec6e6d70930c85 https://git.kernel.org/stable/c/e6cebcc27519dcf1652e604c73b9fd4f416987c0