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 8C44926FA4B for ; Thu, 4 Sep 2025 15:33:41 +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=1757000021; cv=none; b=NJY9BpUk49juJ+JWfpbS2wX7Cs+mvtDlabXf2/cKQPVveYbIRgeqq/lDr5Ilk3uaimNbJpQCcdX2tdcbIcZShD9ENZpqACzApkNRWSH9TrgWr4X+sMMhKPzdjHfC7ftri4PH0zi91/ce61tQW+YuCt8wVEwPxwU5pOaRjJL/uCw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757000021; c=relaxed/simple; bh=9DrPleeNOlDCHWP3gDnl62mbWMUuOqsGNJOE4wVAirg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nLsuswrar/vq57nbl/KMowGJ1m9EzmHKWyxQfyEJCQ/X4JmJvOgry6yorVSOOW3L1Egfl2mQ2T1xpvAnOzYt0KYAqwaRfl6LYY2SETQXqtMVo1i4IhGCTi8NaJUw9S++r5zG+HdokkRb5oCY1FSZYNHw/acMZOMn8OC3AgNCV8Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=O2VGGeT2; 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="O2VGGeT2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA464C4CEF6; Thu, 4 Sep 2025 15:33:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757000021; bh=9DrPleeNOlDCHWP3gDnl62mbWMUuOqsGNJOE4wVAirg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=O2VGGeT2giYbfV/I567AZ0sO7rWHNg8/fN4+eZwgsFkQJqZhjuSongOewGRRgtc19 rkEpDSh/qXZNUPC0bctzebYmvr+AaUyYiB2K+ap/c+ylJfDrcFqnxzEJ2C+tXRfiJK UT1oIFi9u9cpyhZB6WdBw0hGIue8CjbF73PjvfLc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38692: exfat: add cluster chain loop check for dir Date: Thu, 4 Sep 2025 17:32:57 +0200 Message-ID: <2025090450-CVE-2025-38692-90f5@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=3286; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7DEN/NZlrVLwuBHv4LZOwXbC85ibWsicVOA6qw6uV3k=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk7NyrlfanV5np4boaHpNaqNXe1bs3yr7Q9dfWx9RPNb bv0SrhMOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAic5sY5if+YVvgnvby3PU3 DEWGlQ/50pP/3mKYK/LDjvMLL1PKNr7//qGiYQnd8UevAAA= 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: exfat: add cluster chain loop check for dir An infinite loop may occur if the following conditions occur due to file system corruption. (1) Condition for exfat_count_dir_entries() to loop infinitely. - The cluster chain includes a loop. - There is no UNUSED entry in the cluster chain. (2) Condition for exfat_create_upcase_table() to loop infinitely. - The cluster chain of the root directory includes a loop. - There are no UNUSED entry and up-case table entry in the cluster chain of the root directory. (3) Condition for exfat_load_bitmap() to loop infinitely. - The cluster chain of the root directory includes a loop. - There are no UNUSED entry and bitmap entry in the cluster chain of the root directory. (4) Condition for exfat_find_dir_entry() to loop infinitely. - The cluster chain includes a loop. - The unused directory entries were exhausted by some operation. (5) Condition for exfat_check_dir_empty() to loop infinitely. - The cluster chain includes a loop. - The unused directory entries were exhausted by some operation. - All files and sub-directories under the directory are deleted. This commit adds checks to break the above infinite loop. The Linux kernel CVE team has assigned CVE-2025-38692 to this issue. Affected and fixed versions =========================== Fixed in 6.6.103 with commit 868f23286c1a13162330fa6c614fe350f78e3f82 Fixed in 6.12.43 with commit aa8fe7b7b73d4c9a41bb96cb3fb3092f794ecb33 Fixed in 6.15.11 with commit e2066ca3ef49a30920d8536fa366b2a183a808ee Fixed in 6.16.2 with commit 4c3cda20c4cf1871e27868d08fda06b79bc7d568 Fixed in 6.17-rc1 with commit 99f9a97dce39ad413c39b92c90393bbd6778f3fd 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-2025-38692 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/dir.c fs/exfat/fatent.c fs/exfat/namei.c fs/exfat/super.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/868f23286c1a13162330fa6c614fe350f78e3f82 https://git.kernel.org/stable/c/aa8fe7b7b73d4c9a41bb96cb3fb3092f794ecb33 https://git.kernel.org/stable/c/e2066ca3ef49a30920d8536fa366b2a183a808ee https://git.kernel.org/stable/c/4c3cda20c4cf1871e27868d08fda06b79bc7d568 https://git.kernel.org/stable/c/99f9a97dce39ad413c39b92c90393bbd6778f3fd