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 0B33825C6F8 for ; Fri, 2 May 2025 16:02:15 +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=1746201735; cv=none; b=jtawuAakOqRQBAz5ULM+LrwiwKxKAuyVcUJduvRIIkdtM/0BOGwp+y2YVJXmXfbNDnfWMMUaD9Sh2QUqV+eS5vU9S9sIKv140ch0s7bnVeCIVrwryAl41wKiiNrR/YfBsIV780/KdHJDpVJeukqhFVK5QrTo6Ghb1fcnwPLADJE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201735; c=relaxed/simple; bh=76svM6LNOjTpRcJrtniZvChyF+2A7gV0SwojugJWvu0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ckq0Iuago8+WO6SEEW7MaoETqgxidD531PYPSJytBpC+FRC8sxV8E0hQFh0zus8D9u6qsuBh51FyhVIM7Ys6dbEk3txmynUY084dsbS1dc1eoYZxzw8bAk/d0oU66yq1eok8CCiWGbFXVz1fuNzXgQgX92HNSMOaa1UF0c3hW2A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Zapor8Ef; 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="Zapor8Ef" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8959CC4CEEE; Fri, 2 May 2025 16:02:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201734; bh=76svM6LNOjTpRcJrtniZvChyF+2A7gV0SwojugJWvu0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Zapor8EfByoT3E4sDwT0DxU9I5KH0BnqJhGCQs29henjuDrJJl/Cc5jTyTr66hydl 3ZRgKTmbttl0hH1CqJEH0FC3+Lz3E/9eWyl95LjsbO9OQBJ5beQYioO+m4aStdCR40 45MIlXQ0eSaL0vhheYHAqC6EhN52/mp4idUIE7xk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53144: erofs: fix wrong kunmap when using LZMA on HIGHMEM platforms Date: Fri, 2 May 2025 17:56:49 +0200 Message-ID: <2025050239-CVE-2023-53144-2ad8@gregkh> X-Mailer: git-send-email 2.49.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=2742; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IW0fSl2sbjA5oxxB+vCZCq0T0uPQw6mZv1tb99oqr7s=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkir37Hhj2dKZ9Q6/iybFug8eTwE0/f/Z0vZJ8jycH27 nHv9EN/OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAixZYM88wEJ3oU8cbuP9G+ naPkwlHHxbe+r2JYsC7n39ZaHiUh1c+djTwnuDdcObXwBQA= 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: erofs: fix wrong kunmap when using LZMA on HIGHMEM platforms As the call trace shown, the root cause is kunmap incorrect pages: BUG: kernel NULL pointer dereference, address: 00000000 CPU: 1 PID: 40 Comm: kworker/u5:0 Not tainted 6.2.0-rc5 #4 Workqueue: erofs_worker z_erofs_decompressqueue_work EIP: z_erofs_lzma_decompress+0x34b/0x8ac z_erofs_decompress+0x12/0x14 z_erofs_decompress_queue+0x7e7/0xb1c z_erofs_decompressqueue_work+0x32/0x60 process_one_work+0x24b/0x4d8 ? process_one_work+0x1a4/0x4d8 worker_thread+0x14c/0x3fc kthread+0xe6/0x10c ? rescuer_thread+0x358/0x358 ? kthread_complete_and_exit+0x18/0x18 ret_from_fork+0x1c/0x28 ---[ end trace 0000000000000000 ]--- The bug is trivial and should be fixed now. It has no impact on !HIGHMEM platforms. The Linux kernel CVE team has assigned CVE-2023-53144 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 622ceaddb7649ca328832f50ba1400af778d75fa and fixed in 6.1.20 with commit fa4056781ac067b5946c6811459e1a36842047fd Issue introduced in 5.16 with commit 622ceaddb7649ca328832f50ba1400af778d75fa and fixed in 6.2.7 with commit 28aea8ae6cf212a5bf3ed962b27921e2029ad754 Issue introduced in 5.16 with commit 622ceaddb7649ca328832f50ba1400af778d75fa and fixed in 6.3 with commit 8f121dfb15f7b4ab345992ce96003eb63fd608f4 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-53144 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: fs/erofs/decompressor_lzma.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/fa4056781ac067b5946c6811459e1a36842047fd https://git.kernel.org/stable/c/28aea8ae6cf212a5bf3ed962b27921e2029ad754 https://git.kernel.org/stable/c/8f121dfb15f7b4ab345992ce96003eb63fd608f4