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 BAC0B215F5C for ; Thu, 27 Mar 2025 16:46:13 +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=1743093973; cv=none; b=EZyWksmDKbRjgU6g2jJlfAa5CHKKCUktMqnOjo5QljQaTHux99JplGuEW9z1G+JmQn55bhbuDXLHDO7CWNP44Kxfq1Tu7Ex2XMp2dg/G+7ly1WgmUIbwQCJOpDQBn/fje+HeF8GDXrUtynjodSQYIJaMgwlw2cT0kQqEBtgxGB4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093973; c=relaxed/simple; bh=0oFeFAS9A8FaePuHrSCfC7UpBVMQhmUjX8F27zmy8Ug=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oE/GpviFw36XicwoodiVYvEeD1ICd6QzB1WG5zdXUWrkHibRYUom2YL6Cj+iUTBAsQWZaTuqMEaf8vCzZB7vWnUV5cHXeBJdOOdxLKXW+7zz2S0dS2yM/kbi+6ehxGUsIu69ZoQGFLdSVwg7HStAfQzg1vEv1HjyzNhiGxBXIuE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fLPFio7f; 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="fLPFio7f" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45018C4CEDD; Thu, 27 Mar 2025 16:46:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093973; bh=0oFeFAS9A8FaePuHrSCfC7UpBVMQhmUjX8F27zmy8Ug=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fLPFio7fga7CFyz3XiuWzlfAu/REjYI7VfjmdLtLGB2gspIMFL5JBrbAwtwv9Uj3r 5mmsw6UdYcAR48zUux+6uCtPgRkG0iMGel7k3LL/lq1tX8bTF8YLQ75pd6BNIYW357 OYPHB7QAB5++0BshXu6f4MaJul69x5OOTb6+jVKc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52979: squashfs: harden sanity check in squashfs_read_xattr_id_table Date: Thu, 27 Mar 2025 17:43:26 +0100 Message-ID: <2025032705-CVE-2023-52979-ca3f@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=3481; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0oFeFAS9A8FaePuHrSCfC7UpBVMQhmUjX8F27zmy8Ug=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPGySbP7YpMh49qJ+ysyO3cdN1LSb/xq1Z+6b7NbVN3 fToZcqujlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIpxPDPOOnExYzcH8u9yu1 4Ztesfz7a7uPMxgW7Pz84jFPWv6s7Eq5X6IxE5UFt998DQA= 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: squashfs: harden sanity check in squashfs_read_xattr_id_table While mounting a corrupted filesystem, a signed integer '*xattr_ids' can become less than zero. This leads to the incorrect computation of 'len' and 'indexes' values which can cause null-ptr-deref in copy_bio_to_actor() or out-of-bounds accesses in the next sanity checks inside squashfs_read_xattr_id_table(). Found by Linux Verification Center (linuxtesting.org) with Syzkaller. The Linux kernel CVE team has assigned CVE-2023-52979 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14.222 with commit ff49cace7b8cf00d27665f7536a863d406963d06 and fixed in 4.14.306 with commit cf5d6612092408157db6bb500c70bf6d67c40fbc Issue introduced in 4.19.176 with commit a8717b34003f4f7353b23826617ad872f85d85d8 and fixed in 4.19.273 with commit b30a74f83265c24d1d0842c6c3928cd2e775a3fb Issue introduced in 5.4.98 with commit 3654a0ed0bdc6d70502bfc7c9fec9f1e243dfcad and fixed in 5.4.232 with commit db76fc535fbdfbf29fd0b93e49627537ad794c8c Issue introduced in 5.10.16 with commit bddcce15cd1fb9675ddd46a76d8fe2d0a571313b and fixed in 5.10.168 with commit de2785aa3448d1ee7be3ab47fd4a873025f1b3d7 Issue introduced in 5.11 with commit 506220d2ba21791314af569211ffd8870b8208fa and fixed in 5.15.93 with commit b7398efe24a965cf3937b716c0b1011c201c5d6e Issue introduced in 5.11 with commit 506220d2ba21791314af569211ffd8870b8208fa and fixed in 6.1.11 with commit 29e774dcb27116c06b9c57b1f1f14a1623738989 Issue introduced in 5.11 with commit 506220d2ba21791314af569211ffd8870b8208fa and fixed in 6.2 with commit 72e544b1b28325fe78a4687b980871a7e4101f76 Issue introduced in 4.4.258 with commit 91d4f4d0d7bcd6abd9f9288ff40f4edc716f3d4b Issue introduced in 4.9.258 with commit eca93bf20f70e0f78c8c28720951942f61a49117 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-52979 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/squashfs/xattr_id.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/cf5d6612092408157db6bb500c70bf6d67c40fbc https://git.kernel.org/stable/c/b30a74f83265c24d1d0842c6c3928cd2e775a3fb https://git.kernel.org/stable/c/db76fc535fbdfbf29fd0b93e49627537ad794c8c https://git.kernel.org/stable/c/de2785aa3448d1ee7be3ab47fd4a873025f1b3d7 https://git.kernel.org/stable/c/b7398efe24a965cf3937b716c0b1011c201c5d6e https://git.kernel.org/stable/c/29e774dcb27116c06b9c57b1f1f14a1623738989 https://git.kernel.org/stable/c/72e544b1b28325fe78a4687b980871a7e4101f76