5.5medium
ntfs3: fix circular locking dependency in run_unpack_ex
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.12% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: ntfs3: fix circular locking dependency in run_unpack_ex Syzbot reported a circular locking dependency between wnd->rw_lock (sbi->used.bitmap) and ni->file.run_lock. The deadlock scenario: 1. ntfs_extend_mft() takes ni->file.run_lock then wnd->rw_lock. 2. run_unpack_ex() takes wnd->rw_lock then tries to acquire ni->file.run_lock inside ntfs_refresh_zone(). This creates an AB-BA deadlock. Fix this by using down_read_trylock() instead of down_read() when acquiring run_lock in run_unpack_ex(). If the lock is contended, skip ntfs_refresh_zone() - the MFT zone will be refreshed on the next MFT operation. This breaks the circular dependency since we never block waiting for run_lock while holding wnd->rw_lock.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 57f7979aefdcef66326bda47e07ee0d8be64bf21 before d60f09d2d16c44a797d8cb67015cde2508720506, from db7fc56646cafe39599a4c21f1398e2bdfd5c185 before 76016d15bbd90caa0ce7765fddf9bde8e943e601, from 5fc982fe7eca9d0cf7b25832450ebd4f7c8e1c36 before b014372b62237521444ee51384549bdf48b79015, from 5fc982fe7eca9d0cf7b25832450ebd4f7c8e1c36 before b8d22d9d8260b0f4f4d8e2898c98037c9982ea66, from 5fc982fe7eca9d0cf7b25832450ebd4f7c8e1c36 before 08ce2fee1b869ecbfbd94e0eb2630e52203a2e03, from 6.6.66 before 6.6.160, from 6.12.5 before 6.12.114, 6.13 Not affected: before 6.13, from 6.6.160 up to 6.6.*, from 6.12.114 up to 6.12.*, from 6.18.16 up to 6.18.*, from 6.19.6 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.6.66 before 6.18.16, from 6.19 before 6.19.6 | NVD |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: ntfs3: fix circular locking dependency in run_unpack_ex Syzbot reported a circular locking dependency between wnd->rw_lock (sbi->used.bitmap) and ni->file.run_lock. The deadlock scenario: 1. ntfs_extend_mft() takes ni->file.run_lock then wnd->rw_lock. 2. run_unpack_ex() takes wnd->rw_lock then tries to acquire ni->file.run_lock inside ntfs_refresh_zone(). This creates an AB-BA deadlock. Fix this by using down_read_trylock() instead of down_read() when acquiring run_lock in run_unpack_ex(). If the lock is contended, skip ntfs_refresh_zone() - the MFT zone will be refreshed on the next MFT operation. This breaks the circular dependency since we never block waiting for run_lock while holding wnd->rw_lock.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ntfs3: corrige la dependencia de bloqueo circular en run_unpack_ex Syzbot informó una dependencia de bloqueo circular entre wnd -> rw_lock (sbi -> used.bitmap) y ni -> file.run_lock. El escenario de interbloqueo: 1. ntfs_extend_mft() toma ni -> file.run_lock y luego wnd -> rw_lock. 2. run_unpack_ex() toma wnd -> rw_lock y luego intenta adquirir ni -> file.run_lock dentro de ntfs_refresh_zone(). Esto crea un interbloqueo AB-BA. Solucione esto usando down_read_trylock() en lugar de down_read() al adquirir run_lock en run_unpack_ex(). Si el bloqueo está en contención, omita ntfs_refresh_zone() - la zona MFT se actualizará en la siguiente operación MFT. Esto rompe la dependencia circular ya que nunca nos bloqueamos esperando run_lock mientras mantenemos wnd -> rw_lock.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43127 changed 2026-10-21 | CVE Terms of Use |
| NVD | CVE-2026-43127 changed 2026-11-11 | Public domain |