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 9BDE731A05B for ; Mon, 15 Sep 2025 14:08:55 +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=1757945335; cv=none; b=c+eKguehYKwqsRzA6o0IkWZpQaHnSoB/E+vG24JlJ9/Sri6caJCnLAhbGblYQVEJbUmZyla44cgFRBa8GSHSsPIk3AkVnv5pLpe3T23PtMtU8rrgbDctArkO/hzAFDLFH1x4p1mJQUewvQYlUPx3GVyKKX3T34WqfVUgadC3MkY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757945335; c=relaxed/simple; bh=bm/5ymDchJ1IDDWV7Gu9EBZl/zuxk2Z+t782MKEk9pQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=vAAQ/5syVROg7j0fK3SyRwn5G7ZhoPDFWFpWnJ2YP9d2jKHiLmEy91e5xRlYiuIijc8ukIYjWVZGLFRX4S9P4Gq45MOTAu+Ml/8CTYqVHdopc47jF294F3B7yhgdKC1yh/EU6Mlbc239cXfLPA57KSE8vFSuBjqF1dkRoSgfZHE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XycOlxHt; 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="XycOlxHt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99611C4CEF5; Mon, 15 Sep 2025 14:08:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757945335; bh=bm/5ymDchJ1IDDWV7Gu9EBZl/zuxk2Z+t782MKEk9pQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XycOlxHtaNYzjMIxAVcO68yQDm+R09JcpIVqTJ6f5Ndm2QZbOwK10OwmN8jP3Vpme dEno/weEq0f1XmiXmfUyKcK17vphRfC68a/lnauR2/OdGWAknabfNyzLn9W6O6eADC PZC1U9Zl01mOCIggZQZgtTKp5PqLj5DM2S4m2WBI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53163: fs/ntfs3: don't hold ni_lock when calling truncate_setsize() Date: Mon, 15 Sep 2025 16:02:17 +0200 Message-ID: <2025091553-CVE-2023-53163-860f@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=2589; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SInfq8u0Zj4sGr5tLB09JR5C/eY84rhPCeQqFvFsZ7c=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknZAJPaalmMHTXJ7PFOrVXxco4ikfaN3ffUjrbIvjsR uqB6eYdsSwMgkwMsmKKLF+28RzdX3FI0cvQ9jTMHFYmkCEMXJwCMBHhFQwLDr+9oqN4gjVfImiX hNIFruLMVulvDAsaTX0nZE2UKH5c9IBrX2Ow3ff1atMB 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: fs/ntfs3: don't hold ni_lock when calling truncate_setsize() syzbot is reporting hung task at do_user_addr_fault() [1], for there is a silent deadlock between PG_locked bit and ni_lock lock. Since filemap_update_page() calls filemap_read_folio() after calling folio_trylock() which will set PG_locked bit, ntfs_truncate() must not call truncate_setsize() which will wait for PG_locked bit to be cleared when holding ni_lock lock. The Linux kernel CVE team has assigned CVE-2023-53163 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 4342306f0f0d5ff4315a204d315c1b51b914fca5 and fixed in 5.15.87 with commit 8414983c2e649364d8af29080a0869266b31abb6 Issue introduced in 5.15 with commit 4342306f0f0d5ff4315a204d315c1b51b914fca5 and fixed in 6.0.19 with commit 6bb6b1c6b0c31e36736b87a39dd1cbbd9d5ec22f Issue introduced in 5.15 with commit 4342306f0f0d5ff4315a204d315c1b51b914fca5 and fixed in 6.1.5 with commit 73fee7e1e5ea11b51c51c46e0577a197ca3602cf Issue introduced in 5.15 with commit 4342306f0f0d5ff4315a204d315c1b51b914fca5 and fixed in 6.2 with commit 0226635c304cfd5c9db9b78c259cb713819b057e 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-53163 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/ntfs3/file.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/8414983c2e649364d8af29080a0869266b31abb6 https://git.kernel.org/stable/c/6bb6b1c6b0c31e36736b87a39dd1cbbd9d5ec22f https://git.kernel.org/stable/c/73fee7e1e5ea11b51c51c46e0577a197ca3602cf https://git.kernel.org/stable/c/0226635c304cfd5c9db9b78c259cb713819b057e