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 E8FDC2C2369 for ; Mon, 15 Sep 2025 14:47:10 +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=1757947631; cv=none; b=OzXtwE7VXGLoNHC1OFcq73cgLIln5GNDjpdOk7A2nk/wcyMDvAm0kAsW4IxqR4ARmBEFQJWaPypRBkcqzNaJtdtSp0Ajr/bptoSwY9e/t+UtfNi6Z9FXeNGAT/qO2AfGmvgZSdUyx86F99DsbR/kX3LMoEaD0ymSgIw9MXBYgxc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757947631; c=relaxed/simple; bh=4D9xYX1689biVQwR2KsabDtwovx2ZZEvRUIDHSZC4Lc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=i4H4+zC9Tkne6tG6TtpW/3KYl5HKO69NCZ5PySHBpeXwgaTBHsGnrNpKIGaNz1Y7c+WEVUg3W/cS+/0asX21RjUX1PrIVDDmeiBf2unZmaCo04/UB0jUVV6jBA3noJfKB87a45Vxo8WvV0s/7a2mgi/hDzLQ5MnkDxX1uujDly0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=STgb8Xft; 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="STgb8Xft" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15496C4CEF1; Mon, 15 Sep 2025 14:47:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757947630; bh=4D9xYX1689biVQwR2KsabDtwovx2ZZEvRUIDHSZC4Lc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=STgb8XftDktIN2SbGoY2ovMI55EeCga88eOLcMLau+fViKOOCXmzxtmpYHdPyKR+D E5fMK6QGi4UqNGlLWzVtWCy3fkWJuGyvJibmnMGYFztnRu9JiDW4X+U+9eFBmoV319 WCbnP9u0pdCMUsOrD1nUkWSuSlVlf05AewdvfD84= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50306: ext4: fix potential out of bound read in ext4_fc_replay_scan() Date: Mon, 15 Sep 2025 16:46:08 +0200 Message-ID: <2025091559-CVE-2022-50306-c1da@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=2122; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qwhs7IThpoab9mvg8uBmF0l2SjZv/+nzHsVqETF7DAg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkn1JZPttHZeMRK9FnPMY8L6Qs2ur6VjOjpXf2uvGd+8 u/YM/HGHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRa+4MCyY9iE+0nTH16rHG A3eaFn/N4xKcpMMwT3/Slalaz6e955S6qNmXNtl6Y6PNRAA= 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: ext4: fix potential out of bound read in ext4_fc_replay_scan() For scan loop must ensure that at least EXT4_FC_TAG_BASE_LEN space. If remain space less than EXT4_FC_TAG_BASE_LEN which will lead to out of bound read when mounting corrupt file system image. ADD_RANGE/HEAD/TAIL is needed to add extra check when do journal scan, as this three tags will read data during scan, tag length couldn't less than data length which will read. The Linux kernel CVE team has assigned CVE-2022-50306 to this issue. Affected and fixed versions =========================== Fixed in 5.15.87 with commit 6969367c1500c15eddc38fda12f6d15518ad6d03 Fixed in 6.0.6 with commit f234294812c9b68d603650d28743eafb718e7ad5 Fixed in 6.1 with commit 1b45cc5c7b920fd8bf72e5a888ec7abeadf41e09 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-2022-50306 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/ext4/fast_commit.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/6969367c1500c15eddc38fda12f6d15518ad6d03 https://git.kernel.org/stable/c/f234294812c9b68d603650d28743eafb718e7ad5 https://git.kernel.org/stable/c/1b45cc5c7b920fd8bf72e5a888ec7abeadf41e09