CVE-2023-53163 fs/ntfs3: don't hold ni_lock when calling truncate_setsize()
A deadlock in the Linux kernel NTFS3 driver allows local attackers to cause a system hang by triggering a race condition between file locking and truncation operations.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-53163?
CVE-2023-53163 is a medium-severity vulnerability in Linux kernel, published on 15 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2023-53163?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-53163?
Apply the vendor's patch.
Is CVE-2023-53163 being exploited?
There is no known exploitation of CVE-2023-53163 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-53163, DEBIAN-CVE-2023-53163, GHSA-c5fv-6w4g-j37w, UBUNTU-CVE-2023-53163.