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 D22EC31618B for ; Wed, 24 Dec 2025 10:36:30 +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=1766572590; cv=none; b=dmZjo9lk4T/0qHwxUAV/vhNRL1Xzvvx1BjqddwE0n1D/VElC+ySsO87wwUjErmdwzHwip5yHuAYJMGcDVIz860PvWRHRQqDRlPuLDPepJIHct+2I2kIAumX/GQrZUzzF+/Es0MZh1m+9Rf3hQznQlLbLmODRZWbxmCnb07DXs+c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572590; c=relaxed/simple; bh=V4S788+KwLEcCgEZaSEiPhjHQxZ5XGp/WnRVOtyYAiU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EnmX4FE6zJCHEA6+fs7P3+CkALbVkrggG2rZv1ES6uXhbST3W6URvl1V3JxWVslxeiDfq1X99eCbwvcZ6gNEonrjbpGls4quz3ialViCE4sCfm9TSyYiShAOaNBZ2dawvAvvbJBxx57KDmPIGS1ZWNP2L+VTK/FJxfcDhlGNtCs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=thorzmQt; 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="thorzmQt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5888CC4CEFB; Wed, 24 Dec 2025 10:36:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766572590; bh=V4S788+KwLEcCgEZaSEiPhjHQxZ5XGp/WnRVOtyYAiU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=thorzmQt61IWxCBt5s3ac6HpDVQy3JqYrVAhcg1b0DQLXPyFa4n67W9IjEnMELL0V MCVnCJ8AdSDADlYW9ZMw+GYH/fmZd2FwzMWVCUgeTc2offllC8kM3Zl/vFPAQKd0C9 0Grw/1JBeYNMzkyHA5cUkPSvrylPfnbcLlUFpFBo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68351: exfat: fix refcount leak in exfat_find Date: Wed, 24 Dec 2025 11:34:56 +0100 Message-ID: <2025122454-CVE-2025-68351-bafe@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=2325; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pVmq1t0MSEsmvIa1u2kyQGl6fa5h3Rpj967qzPxPteg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneB885C00qYzfoYVr+TCPYYcf508yibr+6mbc+fZF68 avjfGH5jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgImy7DbLbp2mK3+pTPRJqq eX9acO2KoJlHOMP8enMVJ7n11eIcvP7BtSbnSjaEnWUFAA== 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: fix refcount leak in exfat_find Fix refcount leaks in `exfat_find` related to `exfat_get_dentry_set`. Function `exfat_get_dentry_set` would increase the reference counter of `es->bh` on success. Therefore, `exfat_put_dentry_set` must be called after `exfat_get_dentry_set` to ensure refcount consistency. This patch relocate two checks to avoid possible leaks. The Linux kernel CVE team has assigned CVE-2025-68351 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 13940cef95491472760ca261b6713692ece9b946 and fixed in 6.18.2 with commit d009ff8959d28d2a33aeb96a5f7e7161c421d78f Issue introduced in 6.14 with commit 13940cef95491472760ca261b6713692ece9b946 and fixed in 6.19-rc1 with commit 9aee8de970f18c2aaaa348e3de86c38e2d956c1d Issue introduced in 6.12.23 with commit 92075758782c5edb4c67d0da9e47586a624c22f7 Issue introduced in 6.13.11 with commit 0c8a1d2afd0dce0ea9257ab8c2271d8db6cb575d Issue introduced in 6.12.59 with commit 6c627bcc1896ba62ec793d0c00da74f3c93ce3ad 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-68351 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/d009ff8959d28d2a33aeb96a5f7e7161c421d78f https://git.kernel.org/stable/c/9aee8de970f18c2aaaa348e3de86c38e2d956c1d