Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 279F63E48E for ; Wed, 6 Mar 2024 06:46:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709707594; cv=none; b=fLgmW3HDgdctzPsKIg2y9hi/4vSHutpxO0rtNvtTgfjjQzggTpVzccI9U1xTxKc/Vi3lpo0XAJfUu5RXEik+pPkdaxxR4LH6os+6JOwyHd9TpkuATyFUJbW12hCUuoiv+GbsgKube44MS0t5Yf4yQUZ5G7WaWCX3s94zQRNClpw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709707594; c=relaxed/simple; bh=CnbBKD4iFwr4aLzu56PUygxnsTF+k61BzcyxAFiC/bg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=eoubIUiEC3LD0BQdad4IkY3yUejEHuKoWOjy5emlzCiGxVeKraMYyD5qBCkTDTcNlrp138KstfYBXIfXuzWMEjYcKmcqB9Kidk+gP7VItNwnjzfaXM+jKDOm1VJRqb9f+dwD4cBad68LtaRX1m0B7dPXT2R8Hgb8kqZj1iT7RI0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UmiqNPC1; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UmiqNPC1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF8B7C433C7; Wed, 6 Mar 2024 06:46:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709707594; bh=CnbBKD4iFwr4aLzu56PUygxnsTF+k61BzcyxAFiC/bg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UmiqNPC1l/3zdO+yVGPRjJfr5pfRNjz604hcYGvjj1USJvAHCNrevjIO+LhB0uizg /UM3PePXLlykYumLcfiwFxSwHNp/XjtnqoUf5r4r+HH2l2m+Vgu1JNjSzFR22/jUrr XD2w0BhZQSoaMUWpb3lioqfw3VMpmT+jSp32oToA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52605: ACPI: extlog: fix NULL pointer dereference check Date: Wed, 6 Mar 2024 06:46:03 +0000 Message-ID: <2024030647-CVE-2023-52605-292a@gregkh> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3204; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CnbBKD4iFwr4aLzu56PUygxnsTF+k61BzcyxAFiC/bg=; b=owGbwMvMwCRo6H6F97bub03G02pJDKkvBKWP631m7Psp0eC2zCpmYVmcRZV/dfvFtq1LDM55e gkdOiDbEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPZws+wYK3cdaWdiyQ1ItUS bY1X74udl3jamGF+XeZygcTNVhsi3SqEty17cd1+Xm0eAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ACPI: extlog: fix NULL pointer dereference check The gcc plugin -fanalyzer [1] tries to detect various patterns of incorrect behaviour. The tool reports: drivers/acpi/acpi_extlog.c: In function ‘extlog_exit’: drivers/acpi/acpi_extlog.c:307:12: warning: check of ‘extlog_l1_addr’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] | | 306 | ((struct extlog_l1_head *)extlog_l1_addr)->flags &= ~FLAG_OS_OPTIN; | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ | | | | | (1) pointer ‘extlog_l1_addr’ is dereferenced here | 307 | if (extlog_l1_addr) | | ~ | | | | | (2) pointer ‘extlog_l1_addr’ is checked for NULL here but it was already dereferenced at (1) | Fix the NULL pointer dereference check in extlog_exit(). The Linux kernel CVE team has assigned CVE-2023-52605 to this issue. Affected and fixed versions =========================== Fixed in 4.19.307 with commit b7b33627be06 Fixed in 5.4.269 with commit d2049af7ddbc Fixed in 5.10.210 with commit b17a71435e7e Fixed in 5.15.149 with commit 5457b0cbaa02 Fixed in 6.1.77 with commit 33650372e3ea Fixed in 6.6.16 with commit f066171de33d Fixed in 6.7.4 with commit 77846571b3ba Fixed in 6.8-rc1 with commit 72d9b9747e78 Please see https://www.kernel.org or 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-52605 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/acpi/acpi_extlog.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/b7b33627be0626b16ca321b982d6a2261ef7f703 https://git.kernel.org/stable/c/d2049af7ddbc361702c3e1f09bd6c5e9488454ca https://git.kernel.org/stable/c/b17a71435e7e153e949df018244a98b4ede04069 https://git.kernel.org/stable/c/5457b0cbaa0238fc56b855c4ef2c0b9cc9c559ab https://git.kernel.org/stable/c/33650372e3ead97c5ab3b84d9ad97737bc5e00c0 https://git.kernel.org/stable/c/f066171de33d71ff0f7c46bd17636a5a26db3fb6 https://git.kernel.org/stable/c/77846571b3ba6a6125a20ad109bb8514ba884cf9 https://git.kernel.org/stable/c/72d9b9747e78979510e9aafdd32eb99c7aa30dd1