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 B11CB1B413B for ; Tue, 24 Dec 2024 11:30:16 +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=1735039817; cv=none; b=b8dmvbZK2rJx1vJyYfAAol4IRohCNzeE/y/m96S4ldfpvTyjOCmA6uTtJ870EepFobeOqTG2gkOGUWxV1UDFMCTqv8kIy/xs/2eZNCh+Y49+AOa5sUJairDEIP1dpYpzesb5H45E1v5J8BMozPXyAHa5hlD0Q/1c3WDuKOamFPY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735039817; c=relaxed/simple; bh=8Qhh7WYqsqfrBYA6vwm5J/P/0WTEVL5Z4NOLUAXRy9g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=npdAf0N7K2LJ7aNGZLvg8lB+/qYcvVXqtVsPehXNBrdis8I4f+8ztQJTivHA5i3fM0onsXBLKF7Jtoa9kKezR2CMG4lal0AMuf6PKk6EYbMLWSOsUO8zQMzjRmpFITJArc3apqwh7KTPhmjQ2ZrMApndpQWnht9UGbm2ren9Ed4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aq6ock0S; 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="aq6ock0S" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB90DC4CED0; Tue, 24 Dec 2024 11:30:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735039816; bh=8Qhh7WYqsqfrBYA6vwm5J/P/0WTEVL5Z4NOLUAXRy9g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=aq6ock0S/pRQIS91VrY3zkf5zhaI3xOA3duNYVWi5XPBZpZ7JCWKsK5aphrHhX5Kx oyKRkBv7YdNkTgaX9Pm64bD5trY28XCGPg2WmPfnCWHMSoKeBcq2UTJ8H0if7YMMMc B8zfnycvPbjWZPFstPBd1rJZqW0GJ8IlzgdUmphU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53147: exfat: fix out-of-bounds access of directory entries Date: Tue, 24 Dec 2024 12:29:27 +0100 Message-ID: <2024122426-CVE-2024-53147-bea5@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=2198; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8Qhh7WYqsqfrBYA6vwm5J/P/0WTEVL5Z4NOLUAXRy9g=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlZs8VWahiKbVmddnLZrgv2Uveq1l9u5OsMv6RY8/nKt ai1ySUmHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRqiMMC665m227Pqn+bPGb vtndUfssLQS3JjDM014iM2F6/hqWezc+3r36RUzwgGxNGwA= 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: exfat: fix out-of-bounds access of directory entries In the case of the directory size is greater than or equal to the cluster size, if start_clu becomes an EOF cluster(an invalid cluster) due to file system corruption, then the directory entry where ei->hint_femp.eidx hint is outside the directory, resulting in an out-of-bounds access, which may cause further file system corruption. This commit adds a check for start_clu, if it is an invalid cluster, the file or directory will be treated as empty. The Linux kernel CVE team has assigned CVE-2024-53147 to this issue. Affected and fixed versions =========================== Fixed in 6.11.11 with commit a0120d6463368378539ef928cf067d02372efb8c Fixed in 6.12.2 with commit 3ddd1cb2b458ff6a193bc845f408dfff217db29e Fixed in 6.13-rc1 with commit 184fa506e392eb78364d9283c961217ff2c0617b 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-53147 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/exfat/namei.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/a0120d6463368378539ef928cf067d02372efb8c https://git.kernel.org/stable/c/3ddd1cb2b458ff6a193bc845f408dfff217db29e https://git.kernel.org/stable/c/184fa506e392eb78364d9283c961217ff2c0617b