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 174EB337BA5 for ; Wed, 24 Dec 2025 13:08:00 +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=1766581681; cv=none; b=h9BDTZWRwFH+UjPuz3KxNkashZzaq4bR24AmP/OPmmb8hMOiC8VaunoFV4luuEtzRRB3AsdJUpWUmypJsjnqnKMIq0ALjP0/SbEuG0UIb07hNxBBPiS2zNbSF/A2cmtpr70HzzHs0LdNrY/IQXu98ws6SuImT8XWlO6rkXMGOew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581681; c=relaxed/simple; bh=jUtF+FskQtQOcbveAMGhPnP1s9LdOwVbLNalR4/McHo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pB8UR/YjTHwOCM0JkoEGLU8YO8IScmHjtAvfv6deAldXzMHG451W9QuKaN2UmFC423JsNOQCgP6n2T9lhUOwXFK5jL82tB0qpzfB5PS7hABt6A89xZsK9qHWSzDH3UVzN2aErKvuI/8gDnDo8Ab54RUqn4ys1zCIYMVFS0ckYFo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QmZNhSnZ; 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="QmZNhSnZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12B84C4CEFB; Wed, 24 Dec 2025 13:07:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581680; bh=jUtF+FskQtQOcbveAMGhPnP1s9LdOwVbLNalR4/McHo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=QmZNhSnZiwrtgZNXyJZihbgoHWnoeibu7gzU3Jht3YQ1bx7tdjmQu0Updl7YJ/Srd RM0GBwmXN2OtVeyLC1baWq6mlFnn2KHCyLx9jac1J5mL5Ce0PqvDO3B2FlUicf7gCZ FAbKt8daJbHtg0hAs7zRceZn/wl+P0fXyN5lDsmE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50746: erofs: validate the extent length for uncompressed pclusters Date: Wed, 24 Dec 2025 14:05:57 +0100 Message-ID: <2025122450-CVE-2022-50746-7cbf@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2372; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=so6bbTBXvj2xjRlDhOo6L79UVYkvi76OqpVs5SpUHb4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneT/VuJC7uLoio3Dhr7puVvndlVuz89TE+8sC3jB+/z C8yNOm/64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJnKpimB82/9WV/d6JHhlF vSvefO95u6W0P5BhwRoelo+2zw6vmWf8oX6zyTPJ5Kb95gA= 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: validate the extent length for uncompressed pclusters syzkaller reported a KASAN use-after-free: https://syzkaller.appspot.com/bug?extid=2ae90e873e97f1faf6f2 The referenced fuzzed image actually has two issues: - m_pa == 0 as a non-inlined pcluster; - The logical length is longer than its physical length. The first issue has already been addressed. This patch addresses the second issue by checking the extent length validity. The Linux kernel CVE team has assigned CVE-2022-50746 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit 02827e1796b33f1794966f5c3101f8da2dfa9c1d and fixed in 6.0.16 with commit dc8b6bd587b13b85aff6e9d36cdfcd3f955cac9e Issue introduced in 4.19 with commit 02827e1796b33f1794966f5c3101f8da2dfa9c1d and fixed in 6.1.2 with commit 40c73b2ea9611b5388807be406f30f5e4e1162da Issue introduced in 4.19 with commit 02827e1796b33f1794966f5c3101f8da2dfa9c1d and fixed in 6.2 with commit c505feba4c0d76084e56ec498ce819f02a7043ae 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-50746 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/zmap.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/dc8b6bd587b13b85aff6e9d36cdfcd3f955cac9e https://git.kernel.org/stable/c/40c73b2ea9611b5388807be406f30f5e4e1162da https://git.kernel.org/stable/c/c505feba4c0d76084e56ec498ce819f02a7043ae