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 2CDD51990A2 for ; Tue, 24 Dec 2024 11:29:44 +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=1735039785; cv=none; b=mzVvmyey1Z03o5PmGJRbeU+1XqhR5LO9PIRwOE096LIbr92ONS6Daz1Pi2v21vBa/LDk9+A5CSPJPgN07ukECfyjLeWSKccJxUXD5Kgs1z8Gb9E2r9t1m84v5fEY0t2KH99iooHaR3/9+RKPZ62KETJhsuPhD9Cipp3/dh3Xvf8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735039785; c=relaxed/simple; bh=Mn81rBJvp7dP1jCSZ4j9ZnZoCicocKKf+81ilTDDEN4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QHc9uhDpoHrhCJiJmWTkJVFK8+ss9JsNl+ItkQVGz7m3fLqhfBg+budm3HXiOnsty0UqHmyvevBnIXy8BnYdLBnjV2woGcMcG6xyTHw05dPC5QxIlOa9mPqXZznKaF5uEPsXg+3KXFvkTBkDAlAydt849SYd3O5r1beoafQqsyw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XHf97Jp5; 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="XHf97Jp5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 355FFC4CED7; Tue, 24 Dec 2024 11:29:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735039784; bh=Mn81rBJvp7dP1jCSZ4j9ZnZoCicocKKf+81ilTDDEN4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XHf97Jp5mxFMxIvPHI5ShLZL+TQ4VjoIirWLCnyj8GgGzH0DIw8/L6hWcPmx8+LpA yF2MP7Jz8/+uaP6y8Uw+iXu+xoe+SNVkbG7YXfHqVaebqQQ2GNBK1vIInD3Ywa1efE 1ml1wjHF8iliMMZ+uiGiZb3meugtB5Kwr9zey2fk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53155: ocfs2: fix uninitialized value in ocfs2_file_read_iter() Date: Tue, 24 Dec 2024 12:29:35 +0100 Message-ID: <2024122429-CVE-2024-53155-df38@gregkh> X-Mailer: git-send-email 2.47.1 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=4526; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Mn81rBJvp7dP1jCSZ4j9ZnZoCicocKKf+81ilTDDEN4=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlZsyWL2AQuN5evLny6xEGFR+fGrcY3TjPOzGW1nez5N nLyir2qHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAnARFob5qa7h8c/u6qRwFygf sXzr8FHXu0qLYcGleZ276w0XF4a3Pqovu79Y5+PV/KMA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix uninitialized value in ocfs2_file_read_iter() Syzbot has reported the following KMSAN splat: BUG: KMSAN: uninit-value in ocfs2_file_read_iter+0x9a4/0xf80 ocfs2_file_read_iter+0x9a4/0xf80 __io_read+0x8d4/0x20f0 io_read+0x3e/0xf0 io_issue_sqe+0x42b/0x22c0 io_wq_submit_work+0xaf9/0xdc0 io_worker_handle_work+0xd13/0x2110 io_wq_worker+0x447/0x1410 ret_from_fork+0x6f/0x90 ret_from_fork_asm+0x1a/0x30 Uninit was created at: __alloc_pages_noprof+0x9a7/0xe00 alloc_pages_mpol_noprof+0x299/0x990 alloc_pages_noprof+0x1bf/0x1e0 allocate_slab+0x33a/0x1250 ___slab_alloc+0x12ef/0x35e0 kmem_cache_alloc_bulk_noprof+0x486/0x1330 __io_alloc_req_refill+0x84/0x560 io_submit_sqes+0x172f/0x2f30 __se_sys_io_uring_enter+0x406/0x41c0 __x64_sys_io_uring_enter+0x11f/0x1a0 x64_sys_call+0x2b54/0x3ba0 do_syscall_64+0xcd/0x1e0 entry_SYSCALL_64_after_hwframe+0x77/0x7f Since an instance of 'struct kiocb' may be passed from the block layer with 'private' field uninitialized, introduce 'ocfs2_iocb_init_rw_locked()' and use it from where 'ocfs2_dio_end_io()' might take care, i.e. in 'ocfs2_file_read_iter()' and 'ocfs2_file_write_iter()'. The Linux kernel CVE team has assigned CVE-2024-53155 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.22 with commit 7cdfc3a1c3971c9125c317cb8c2525745851798e and fixed in 4.19.325 with commit 6c8f8d1e595dabd5389817f6d798cc8bd95c40ab Issue introduced in 2.6.22 with commit 7cdfc3a1c3971c9125c317cb8c2525745851798e and fixed in 5.4.287 with commit f4078ef38d3163e6be47403a619558b19c4bfccd Issue introduced in 2.6.22 with commit 7cdfc3a1c3971c9125c317cb8c2525745851798e and fixed in 5.10.231 with commit 66b7ddd1804e2c4216dd7ead8eeb746cdbb3b62f Issue introduced in 2.6.22 with commit 7cdfc3a1c3971c9125c317cb8c2525745851798e and fixed in 5.15.174 with commit 8c966150d5abff58c3c2bdb9a6e63fd773782905 Issue introduced in 2.6.22 with commit 7cdfc3a1c3971c9125c317cb8c2525745851798e and fixed in 6.1.120 with commit 83f8713a0ef1d55d6a287bcfadcaab8245ac5098 Issue introduced in 2.6.22 with commit 7cdfc3a1c3971c9125c317cb8c2525745851798e and fixed in 6.6.64 with commit 8e0de82ed18ba0e71f817adbd81317fd1032ca5a Issue introduced in 2.6.22 with commit 7cdfc3a1c3971c9125c317cb8c2525745851798e and fixed in 6.11.11 with commit 366c933c2ab34dd6551acc03b4872726b7605143 Issue introduced in 2.6.22 with commit 7cdfc3a1c3971c9125c317cb8c2525745851798e and fixed in 6.12.2 with commit dc78efe556fed162d48736ef24066f42e463e27c Issue introduced in 2.6.22 with commit 7cdfc3a1c3971c9125c317cb8c2525745851798e and fixed in 6.13-rc1 with commit adc77b19f62d7e80f98400b2fca9d700d2afdd6f 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-2024-53155 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/ocfs2/aops.h fs/ocfs2/file.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/6c8f8d1e595dabd5389817f6d798cc8bd95c40ab https://git.kernel.org/stable/c/f4078ef38d3163e6be47403a619558b19c4bfccd https://git.kernel.org/stable/c/66b7ddd1804e2c4216dd7ead8eeb746cdbb3b62f https://git.kernel.org/stable/c/8c966150d5abff58c3c2bdb9a6e63fd773782905 https://git.kernel.org/stable/c/83f8713a0ef1d55d6a287bcfadcaab8245ac5098 https://git.kernel.org/stable/c/8e0de82ed18ba0e71f817adbd81317fd1032ca5a https://git.kernel.org/stable/c/366c933c2ab34dd6551acc03b4872726b7605143 https://git.kernel.org/stable/c/dc78efe556fed162d48736ef24066f42e463e27c https://git.kernel.org/stable/c/adc77b19f62d7e80f98400b2fca9d700d2afdd6f