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 B0A372E426A for ; Wed, 1 Oct 2025 11:54:04 +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=1759319644; cv=none; b=gC/UnSw+vLuEZhQF4e3EpY1CK2psWkBS/a1sJCvDt5NYParikznlRaczEFG3xbT6vcnPD4IEc3T0GE+Y4NOUvgy2UKi8FlsfcIq2AxXRH3KoNdQZXDckP58sUGS80Xus94dvcRklzh4d44fD92f4N7lYlAyeDGoyLGMa79Zk9yo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319644; c=relaxed/simple; bh=3fK9uwcMgXUgxxO+u5C1sPyoXJD46bBcG6jsEzcfRBA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QCp6wByXXTay2SQn2a9H5xOQ6axOWZ5ImumzLwmj4oE63uqFFzJxPibOORpMVEzDII15dVD/NAC28HftA/YED90815P3baorOXZWsfXYH2Grxz7gI9WUkYVqPuCh+zFus6q7xxAkt37IFPefx2oWUlDFD3/poojpdWeCwgjllvY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bpGjcrlm; 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="bpGjcrlm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21F92C4CEF4; Wed, 1 Oct 2025 11:54:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319644; bh=3fK9uwcMgXUgxxO+u5C1sPyoXJD46bBcG6jsEzcfRBA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bpGjcrlmPdQeuYBfMhQoK/Mosr647A+RtQqqgSOjyDACnk2pQ+wffETyAj2cqynk7 ArJ1fZ0XOPyx86NOS2+ygPkmorViUqDi2ObV1I+JvpJbCZoFadgKSBuXZUF/+cl8Py KccnATjRqZER5E9kb9kqzX5IrVpAa95azYuKKBxM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53479: cxl/acpi: Fix a use-after-free in cxl_parse_cfmws() Date: Wed, 1 Oct 2025 13:42:49 +0200 Message-ID: <2025100112-CVE-2023-53479-5c70@gregkh> X-Mailer: git-send-email 2.51.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=2518; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aSV1BnZcaYdi3LDPCJPLxM01R2cL6UvWGjTVS75FDOE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3hae8WTi5dl24seJ3btuHFfOKJzvHbBDv/LhHcU4XU 9ELI/3kjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIbwXDgm1/uy8wFU168eLR rVbvLTunzVuks5xhvtvF+f923b9vNzm9RfHvkj8qlR+lowE= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: cxl/acpi: Fix a use-after-free in cxl_parse_cfmws() KASAN and KFENCE detected an user-after-free in the CXL driver. This happens in the cxl_decoder_add() fail path. KASAN prints the following error: BUG: KASAN: slab-use-after-free in cxl_parse_cfmws (drivers/cxl/acpi.c:299) This happens in cxl_parse_cfmws(), where put_device() is called, releasing cxld, which is accessed later. Use the local variables in the dev_err() instead of pointing to the released memory. Since the dev_err() is printing a resource, change the open coded print format to use the %pr format specifier. The Linux kernel CVE team has assigned CVE-2023-53479 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit e50fe01e1f2a4aba2275edee7d5c77ac87674ddb and fixed in 6.1.43 with commit 748fadc08bcbdaf573b34d9784bb3dbd87441dbf Issue introduced in 6.0 with commit e50fe01e1f2a4aba2275edee7d5c77ac87674ddb and fixed in 6.4.8 with commit 316db489647b8ddc381682597e89787eac61a278 Issue introduced in 6.0 with commit e50fe01e1f2a4aba2275edee7d5c77ac87674ddb and fixed in 6.5 with commit 4cf67d3cc9994a59cf77bb9c0ccf9007fe916afe 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-53479 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/cxl/acpi.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/748fadc08bcbdaf573b34d9784bb3dbd87441dbf https://git.kernel.org/stable/c/316db489647b8ddc381682597e89787eac61a278 https://git.kernel.org/stable/c/4cf67d3cc9994a59cf77bb9c0ccf9007fe916afe