CVE-2023-53650: fbdev: omapfb: lcd_mipid: Fix an error handling path in mipid_spi_probe()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
fbdev: omapfb: lcd_mipid: Fix an error handling path in mipid_spi_probe()
If 'mipid_detect()' fails, we must free 'md' to avoid a memory leak.
The Linux kernel CVE team has assigned CVE-2023-53650 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.32 with commit 66d2f99d0bb5a2972fb5c1d88b61169510e540d6 and fixed in 4.14.322 with commit d97840bf5a388c6cbf6e46216887bf17be62acc2 Issue introduced in 2.6.32 with commit 66d2f99d0bb5a2972fb5c1d88b61169510e540d6 and fixed in 4.19.291 with commit 7a8f9293bee51183023c5e37e7ebf0543cd2a134 Issue introduced in 2.6.32 with commit 66d2f99d0bb5a2972fb5c1d88b61169510e540d6 and fixed in 5.4.251 with commit 9e3858f82e3ced1e990ef7116c3a16c84e62093e Issue introduced in 2.6.32 with commit 66d2f99d0bb5a2972fb5c1d88b61169510e540d6 and fixed in 5.10.188 with commit ce6e0434e502abdf966164b7c72523fb5fe54635 Issue introduced in 2.6.32 with commit 66d2f99d0bb5a2972fb5c1d88b61169510e540d6 and fixed in 5.15.121 with commit 716efd08985e3104031d1b655930b1f1c45fa8a7 Issue introduced in 2.6.32 with commit 66d2f99d0bb5a2972fb5c1d88b61169510e540d6 and fixed in 6.1.39 with commit 3b4c21804076e461a6453ee4d09872172336aa1d Issue introduced in 2.6.32 with commit 66d2f99d0bb5a2972fb5c1d88b61169510e540d6 and fixed in 6.3.13 with commit 7cca0af3167dd9603da5fa6fff3392f8338e97e1 Issue introduced in 2.6.32 with commit 66d2f99d0bb5a2972fb5c1d88b61169510e540d6 and fixed in 6.4.4 with commit 09ea1ae4a2ec17774892cfcff50f6d33dfa1e06f Issue introduced in 2.6.32 with commit 66d2f99d0bb5a2972fb5c1d88b61169510e540d6 and fixed in 6.5 with commit 79a3908d1ea6c35157a6d907b1a9d8ec06015e7a
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-53650
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/video/fbdev/omap/lcd_mipid.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/d97840bf5a388c6cbf6e46216887bf17be62acc2 https://git.kernel.org/stable/c/7a8f9293bee51183023c5e37e7ebf0543cd2a134 https://git.kernel.org/stable/c/9e3858f82e3ced1e990ef7116c3a16c84e62093e https://git.kernel.org/stable/c/ce6e0434e502abdf966164b7c72523fb5fe54635 https://git.kernel.org/stable/c/716efd08985e3104031d1b655930b1f1c45fa8a7 https://git.kernel.org/stable/c/3b4c21804076e461a6453ee4d09872172336aa1d https://git.kernel.org/stable/c/7cca0af3167dd9603da5fa6fff3392f8338e97e1 https://git.kernel.org/stable/c/09ea1ae4a2ec17774892cfcff50f6d33dfa1e06f https://git.kernel.org/stable/c/79a3908d1ea6c35157a6d907b1a9d8ec06015e7a