Shellfeed logo Shellfeed

CVE-2026-80855 · UNKNOWN

Summary: fuse: fix invalidate lock leak on open O_TRUNC DAX failure

Details

In the Linux kernel, the following vulnerability has been resolved:

fuse: fix invalidate lock leak on open O_TRUNC DAX failure

fuse_open() takes filemap_invalidate_lock() for a DAX truncate
(dax_truncate = true) and releases it before the out_inode_unlock
label. But when fuse_dax_break_layouts() fails, the goto
out_inode_unlock skips the unlock and leaks the rwsem, so any later
fault or truncate on the file stalls on the stale lock.

fuse_dax_break_layouts() can fail with -ERESTARTSYS when a signal
interrupts the wait for busy DAX pages to drain:

open("file", O_RDWR | O_TRUNC)
└─ fuse_open()
├─ filemap_invalidate_lock() # dax_truncate
└─ fuse_dax_break_layouts()
└─ dax_break_layout()
└─ wait_page_idle() # TASK_INTERRUPTIBLE
└─ fuse_wait_dax_page() # unlock, schedule, re-lock
└─ signal → -ERESTARTSYS
goto out_inode_unlock # <- lock leaked

Fix this by moving filemap_invalidate_unlock() below the label so
that all error paths release the lock, and rename the label to
out_unlock as it now covers more than just the inode lock.

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [81775ab858b4236c52c5da7e25cec6e49dd91b46 – 69a294e561c10909688bcb25456535dcd1818e1a] [d58366aab86854217b81679d1a9dcd54a2edfc2a – 1b04d80a27d317064cce2307472f5bef9975bc50] [2fdbb8dd01556e1501132b5ad3826e8f71e24a8b – a61524da59a2f5ac9c8de23ff98b30da769ab144] [5.10.179 – 5.10.273] [5.15.109 – 5.15.220] [5.18.18 – 5.19] [5.19.2 – 5.20] [b57e150ac2eac791d5d187923b73dc2dafaf67fa – ?] [1fdbbe246daf348adaa0739463384b16ceba1fc0 – ?]
  • Linux Kernel [0 – 5.10.273] [5.11.0 – 5.15.220] [5.16.0 – 6.1.187] [6.0.0 – 6.6.156] [6.2.0 – 6.12.108] [6.7.0 – 6.18.49] [6.13.0 – 7.1.13] [6.19.0 – 7.2.3]

References