CVE-2023-54298: thermal: intel: quark_dts: fix error pointer dereference
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
thermal: intel: quark_dts: fix error pointer dereference
If alloc_soc_dts() fails, then we can just return. Trying to free "soc_dts" will lead to an Oops.
The Linux kernel CVE team has assigned CVE-2023-54298 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.2 with commit 8c1876939663191b5044807230fa295f35462215 and fixed in 4.14.308 with commit 0b366c6a42e2e2bc67af8d1130b68f3bfa31c80e Issue introduced in 4.2 with commit 8c1876939663191b5044807230fa295f35462215 and fixed in 4.19.276 with commit d0178f2788fb1183a5cc350213efdc94010b9147 Issue introduced in 4.2 with commit 8c1876939663191b5044807230fa295f35462215 and fixed in 5.4.235 with commit e23f1d9e6e03d04da2f18e78ab5d4255ffeb1333 Issue introduced in 4.2 with commit 8c1876939663191b5044807230fa295f35462215 and fixed in 5.10.173 with commit f73134231fa23e0856c15010db5f5c03693c1e92 Issue introduced in 4.2 with commit 8c1876939663191b5044807230fa295f35462215 and fixed in 5.15.100 with commit 5eaf55b38691291d49417c22e726591078ca1893 Issue introduced in 4.2 with commit 8c1876939663191b5044807230fa295f35462215 and fixed in 6.1.18 with commit 69e49f1b53605706bc2203455021539aba2ebe21 Issue introduced in 4.2 with commit 8c1876939663191b5044807230fa295f35462215 and fixed in 6.2.5 with commit 24c221b11c2894e1a5f07b93362d9bc91c6d8be7 Issue introduced in 4.2 with commit 8c1876939663191b5044807230fa295f35462215 and fixed in 6.3 with commit f1b930e740811d416de4d2074da48b6633a672c8
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-54298
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/thermal/intel/intel_quark_dts_thermal.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/0b366c6a42e2e2bc67af8d1130b68f3bfa31c80e https://git.kernel.org/stable/c/d0178f2788fb1183a5cc350213efdc94010b9147 https://git.kernel.org/stable/c/e23f1d9e6e03d04da2f18e78ab5d4255ffeb1333 https://git.kernel.org/stable/c/f73134231fa23e0856c15010db5f5c03693c1e92 https://git.kernel.org/stable/c/5eaf55b38691291d49417c22e726591078ca1893 https://git.kernel.org/stable/c/69e49f1b53605706bc2203455021539aba2ebe21 https://git.kernel.org/stable/c/24c221b11c2894e1a5f07b93362d9bc91c6d8be7 https://git.kernel.org/stable/c/f1b930e740811d416de4d2074da48b6633a672c8