CVE-2026-99991: ntfs: roll back the ACL xattr commit when the WSL mode update fails
In the Linux kernel, the following vulnerability has been resolved:
ntfs: roll back the ACL xattr commit when the WSL mode update fails
ntfssetaclex() commits the ACL xattr before it rewrites the WSL mode EA, and removes it again when the rewrite fails. That only undoes a set that created the xattr: when the update replaced or removed an existing one, the old ACL is discarded along with the failed update. No error is recorded when the undo fails, so the new, typically more permissive, ACL is left on disk while imode, the mode EA and the cached ACL keep the old values. After a remount, a chmod 0640 -> 0777 that reported failure leaves the file accessible to the relaxed ACL while stat() still reports 0640.
Save the previous xattr before committing the update, and restore it when the mode EA rewrite fails. A removed xattr is created again, since XATTRREPLACE fails with -ENODATA once the removal dropped the entry. Remove the new xattr only when there was no previous one, and skip the undo when the commit changed nothing. A failed rollback is recorded: NVolSetErrors(), which the next persistence point persists as VOLUMEISDIRTY, and a log message the errors= policy acts on. The flag cannot be written to disk here directly: the target inode's mreclock is held and the $Volume mreclock cannot be nested under it.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1
Event History
Frequently Asked Questions
Under what conditions can the inconsistent permissions occur?
The issue occurs when NTFS updates an ACL xattr and then fails while rewriting the WSL mode extended attribute. It affects updates that replace or remove an existing ACL xattr; a failed chmod such as 0640 to 0777 can leave the relaxed ACL on disk.
How could an administrator detect that a file is affected?
A mismatch may be visible after remounting: stat() can report the old mode, such as 0640, while access is granted according to the newer, more permissive ACL left on disk. The affected state results from a failed permission update rather than a successfully reported chmod.
What happens if rollback of the ACL update also fails?
The corrected behavior records the rollback failure with NVolSetErrors(). At the next persistence point, this is persisted as VOLUME_IS_DIRTY, and a log message is handled according to the configured errors= policy.