Skip to content
Race condition Write-up Advanced

RefluXFS: A Linux Kernel Local Privilege Escalation to Root in XFS (CVE-2026-64600)

A race condition in the Linux kernel's XFS copy-on-write path allows an unprivileged local user to overwrite any readable file on a reflink-enabled XFS volume at the block layer. This can be used to modify protected files such as /etc/passwd or SUID-root binaries, leading to host root privileges that persist across reboots.

Saeed Abbasi Follow

Published on blog.qualys.com

Qualys Threat Research Unit (TRU) identified CVE-2026-64600, a race condition in the Linux kernel’s XFS filesystem copy-on-write path. An attacker with an ordinary local account can exploit this race condition to overwrite protected files on disk and gain host root privileges on affected systems, including deployments…

Saeed Abbasi, on blog.qualys.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The kernel drops its inode lock while waiting for transaction log space during copy-on-write, and when it re-acquires the lock it re-checks the block reference count using a stale physical block address, incorrectly assuming the block is private and writing directly to it.

Impact

An unprivileged local user can gain host root privileges, and the modification persists across reboots and leaves no kernel log output; SELinux, container boundaries, and memory protections do not block it.

What the attacker needed

Linux kernel v4.11 or later without the patch; XFS filesystem with reflink=1; A writable directory for the unprivileged user; A high-value target file on the same filesystem

The fix

The vulnerability was fixed by vendor kernel patches, and immediate kernel patching with a reboot is recommended.

How it was found

  1. Start as an unprivileged local user on a system with an XFS filesystem that has reflink enabled.
  2. Trigger two concurrent O_DIRECT writes to the same reflinked file to cause the race condition.
  3. Exploit the race to overwrite a protected file such as /etc/passwd or a SUID-root binary at the block layer.
  4. Gain root privileges, for example by stripping the root account's password protection.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A race condition is a bug where two operations happening at the same time interfere with each other. In this case, two simultaneous writes to the same file on an XFS disk can trick the kernel into writing directly to a shared block, letting a normal user change files they should not be able to touch. By altering a system file like the password file, the user can become the root administrator.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More by Saeed Abbasi

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.