{"id":"CVE-2023-53163","state":"PUBLISHED","title":"fs/ntfs3: don't hold ni_lock when calling truncate_setsize()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: don't hold ni_lock when calling truncate_setsize()\n\nsyzbot is reporting hung task at do_user_addr_fault() [1], for there is\na silent deadlock between PG_locked bit and ni_lock lock.\n\nSince filemap_update_page() calls filemap_read_folio() after calling\nfolio_trylock() which will set PG_locked bit, ntfs_truncate() must not\ncall truncate_setsize() which will wait for PG_locked bit to be cleared\nwhen holding ni_lock lock.","publishedAt":"2025-09-15T14:03:33.777Z","updatedAt":"2026-05-11T19:39:29.524Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4342306f0f0d5ff4315a204d315c1b51b914fca5","status":"affected","lessThan":"8414983c2e649364d8af29080a0869266b31abb6","versionType":"git"},{"version":"4342306f0f0d5ff4315a204d315c1b51b914fca5","status":"affected","lessThan":"6bb6b1c6b0c31e36736b87a39dd1cbbd9d5ec22f","versionType":"git"},{"version":"4342306f0f0d5ff4315a204d315c1b51b914fca5","status":"affected","lessThan":"73fee7e1e5ea11b51c51c46e0577a197ca3602cf","versionType":"git"},{"version":"4342306f0f0d5ff4315a204d315c1b51b914fca5","status":"affected","lessThan":"0226635c304cfd5c9db9b78c259cb713819b057e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/file.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.87","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.19","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.5","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/file.c"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53163.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53163","state":"PUBLISHED","datePublished":"2025-09-15T14:03:33.777Z","dateUpdated":"2026-05-11T19:39:29.524Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-09-15T13:59:19.062Z"},"containers":{"cna":{"title":"fs/ntfs3: don't hold ni_lock when calling truncate_setsize()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: don't hold ni_lock when calling truncate_setsize()\n\nsyzbot is reporting hung task at do_user_addr_fault() [1], for there is\na silent deadlock between PG_locked bit and ni_lock lock.\n\nSince filemap_update_page() calls filemap_read_folio() after calling\nfolio_trylock() which will set PG_locked bit, ntfs_truncate() must not\ncall truncate_setsize() which will wait for PG_locked bit to be cleared\nwhen holding ni_lock lock."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4342306f0f0d5ff4315a204d315c1b51b914fca5","status":"affected","lessThan":"8414983c2e649364d8af29080a0869266b31abb6","versionType":"git"},{"version":"4342306f0f0d5ff4315a204d315c1b51b914fca5","status":"affected","lessThan":"6bb6b1c6b0c31e36736b87a39dd1cbbd9d5ec22f","versionType":"git"},{"version":"4342306f0f0d5ff4315a204d315c1b51b914fca5","status":"affected","lessThan":"73fee7e1e5ea11b51c51c46e0577a197ca3602cf","versionType":"git"},{"version":"4342306f0f0d5ff4315a204d315c1b51b914fca5","status":"affected","lessThan":"0226635c304cfd5c9db9b78c259cb713819b057e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/file.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.87","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.19","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.5","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/file.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8414983c2e649364d8af29080a0869266b31abb6"},{"url":"https://git.kernel.org/stable/c/6bb6b1c6b0c31e36736b87a39dd1cbbd9d5ec22f"},{"url":"https://git.kernel.org/stable/c/73fee7e1e5ea11b51c51c46e0577a197ca3602cf"},{"url":"https://git.kernel.org/stable/c/0226635c304cfd5c9db9b78c259cb713819b057e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:39:29.524Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.87"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.0.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}