Loading date…
LinkedIn Twitter Instagram YouTube WhatsApp

RefluXFS: The Silent Linux Bug Giving Hackers Root Access

Diagram illustrating RefluXFS, a Linux kernel XFS vulnerability (CVE-2026-64600) that lets local users gain root access

RefluXFS Explained: The Silent XFS Race Condition Handing Root Access to Local Linux Users

Picture a mid-size fintech's SOC team on a quiet Wednesday morning. Nothing unusual in the SIEM. No failed logins, no privilege escalation alerts, no kernel panics. Yet somewhere on a shared RHEL application server, a low-privileged service account has just rewritten /etc/shadow at the raw disk block level, stripped root's password requirement, and walked in the front door — without tripping a single log entry. That's not a hypothetical. That's the real-world exploitation path Qualys demonstrated for a newly disclosed Linux kernel flaw called RefluXFS, tracked as CVE-2026-64600.

If your enterprise runs RHEL, CentOS Stream, Oracle Linux, Rocky, AlmaLinux, or Amazon Linux with XFS as the root filesystem — which is most of them, by default — this is not a "patch when convenient" bulletin. It's an emergency-priority local privilege escalation bug that's been quietly sitting in the Linux kernel since 2017.

Table of Contents

What Is RefluXFS?

Illustration explaining what RefluXFS is, a Linux kernel XFS race condition (CVE-2026-64600) exploited for root access

RefluXFS is the nickname given by the Qualys Threat Research Unit (TRU) to a race condition discovered in the copy-on-write path of the XFS filesystem inside the Linux kernel. In plain terms: it's a timing bug that lets an ordinary, unprivileged local user corrupt protected system files at the disk block level, and turn that corruption directly into root access — even on hosts running SELinux in Enforcing mode.

The flaw has existed in every mainline and stable Linux kernel release since version 4.11 in 2017. It was patched upstream on July 16, 2026, and publicly disclosed on July 22, 2026. Qualys estimates the exposure at more than 16.4 million internet-facing and internal systems worldwide, based on scans through its CyberSecurity Asset Management platform.

How the XFS Race Condition Actually Works

Diagram showing how the XFS copy-on-write race condition in RefluXFS lets a second O_DIRECT write corrupt a reflinked file

To understand RefluXFS, you need a quick refresher on how XFS handles reflinks. Reflink is a space-saving feature (enabled via the reflink=1 flag) that lets two files share the same underlying disk blocks instead of duplicating data. When a program writes to a reflinked file, XFS is supposed to perform copy-on-write: allocate a fresh private block, remap the file to it, and only then let the write proceed.

Here's the catch. While XFS is waiting for transaction log space during that remap, it briefly releases its inode lock. That tiny window is the whole vulnerability. If a second process fires off a competing write to the same reflinked file using the O_DIRECT flag during that window, it can complete its own remap first and decrement the reference count on the original block. When the first writer resumes, it's still holding a stale reference — and instead of writing to its private copy, it writes straight to the original, shared block.

Because O_DIRECT writes bypass the page cache entirely and skip the usual revalidation checks, that corrupted write lands permanently on disk. No cache flush required. No log entry generated. The change survives a reboot as if it were always there.

Real-World Attack Scenario

Illustration of a real-world RefluXFS attack scenario showing an unprivileged user gaining passwordless root access on RHEL 10.2

In its proof-of-concept, Qualys targeted a default RHEL 10.2 installation. Starting from an unprivileged local account with zero administrative rights, the exploit raced two concurrent writes against a reflinked file sitting in the same directory as a high-value target — in this case, a file backing root's password state. Within seconds, root's password protection was silently stripped, and the attacker had full, passwordless root access.

What makes this dangerous in a real enterprise environment isn't just the privilege escalation itself — it's the aftermath. The modified file kept its original ownership, permissions, timestamps, and even the setuid bit untouched. A tampered SUID-root binary still looks completely normal to every integrity check that relies on metadata. Multi-tenant hosting environments, shared university lab servers, CI/CD build agents, and any box where an attacker can get even a low-privilege shell are prime targets.

Who's Affected: Distributions and Conditions

Chart showing Linux distributions affected by RefluXFS including RHEL, CentOS, Oracle Linux, Rocky, AlmaLinux, and Amazon Linux

Three conditions have to line up for a system to be exploitable:

  • A kernel version 4.11 or later that hasn't received the fix
  • An XFS filesystem with reflink=1 enabled
  • A directory writable by an unprivileged user, sitting alongside a high-value target like a SUID-root binary or root-owned config file
CategoryDetails
Confirmed exposed distrosRHEL 8/9/10, CentOS Stream 8/9/10, Oracle Linux 8/9/10, Rocky/AlmaLinux 8/9/10, CloudLinux 8/9/10, Amazon Linux 2023 & AL2 (Dec 2022+), Fedora Server 31+
Lower-risk distrosDebian, Ubuntu, SUSE (only exposed if XFS is manually selected with reflink=1)
Kernel versions affectedv4.11 (2017) onward
SeverityEmergency priority — local user to root, zero log artifacts, survives reboot

The reason RHEL-family distros dominate this list is simple: XFS has been the default root filesystem on RHEL since version 7, and reflink has been on by default for years. If your fleet is standardized on RHEL derivatives, assume you're exposed until you've verified otherwise.

Why SELinux, Containers, and Kernel Hardening Don't Save You

Diagram showing why SELinux, kernel lockdown, and container isolation fail to block the RefluXFS filesystem-layer vulnerability

This is the part that should worry defense-in-depth teams. RefluXFS operates at the filesystem allocation layer — below where most kernel hardening even looks.

  • Memory protections like KASLR, SMEP, and SMAP are designed for a different class of memory-corruption bugs entirely; they don't touch disk block allocation logic.
  • Kernel lockdown mode places no restriction on O_DIRECT or FICLONE system calls.
  • SELinux in Enforcing mode does not block the vulnerable code path, as confirmed in Qualys's own testing.
  • Container isolation — user namespaces, capability drops, seccomp profiles — likewise fails to intercept this layer, since the race happens inside the host kernel's filesystem code, not in userspace or the container runtime.

In short, there is currently no configuration-based workaround. Patching the kernel is the only fix.

Detection: Why Logs Won't Help You

Diagram showing why RefluXFS leaves no SIEM log artifacts and outlining detection steps like content-hash checks and asset inventory

If you're hoping to hunt for this in your SIEM, temper your expectations. Successful exploitation leaves zero kernel log artifacts. The overwritten file's ownership, permissions, and timestamps remain untouched, so file-integrity tools that only check metadata (rather than content hashes) won't flag anything either.

Practical detection approaches for SOC teams right now look less like log correlation and more like asset and vulnerability management:

  • Inventory every host running XFS with reflink enabled, and cross-reference kernel versions against the patched builds.
  • Run periodic content-hash comparisons (not just metadata checks) on critical files like /etc/passwd, /etc/shadow, and known SUID-root binaries.
  • Flag any host where an unprivileged user has write access to a directory shared with a root-owned target file — that's the precondition attackers need.
  • Treat unexplained authentication bypasses on Linux hosts as a potential RefluXFS indicator until the kernel version is confirmed patched.

Commands to Check Your Exposure

Terminal screenshot showing Linux commands to check RefluXFS exposure, including uname, xfs_info, and dnf updateinfo

Start by confirming your kernel version:

uname -r

This tells you the running kernel version. Compare it against your distribution's patched release (see your vendor's advisory for the exact patched build number). Do this on every host, not just a sample — kernel drift across a fleet is common.

Next, check whether reflink is enabled on your XFS filesystems:

xfs_info /path/to/mountpoint | grep reflink

An output showing reflink=1 means that filesystem meets one of the three exploitation conditions. Run this against every XFS mount in your environment, including data volumes, not just the root partition.

To check for pending kernel updates on RHEL-family systems:

sudo dnf updateinfo list --security | grep -i kernel

This surfaces any security advisories tagged against the kernel package, including the RefluXFS fix once it's available in your repos.

Disclaimer: Do not attempt to reproduce or test the RefluXFS exploitation technique against production systems. Race-condition proof-of-concept testing should only occur in an isolated lab environment with explicit authorization, and public exploit code should be handled under your organization's responsible testing policies.

Prevention and Patching Steps

Checklist infographic showing five steps to prevent RefluXFS including patching, rebooting, and auditing shared directories
  1. Patch immediately. The fix merged into the upstream kernel on July 16, 2026, and vendor-backported kernels are already shipping for RHEL, Oracle Linux, Rocky Linux, AlmaLinux, and Fedora.
  2. Reboot after patching. A kernel-level fix like this only takes effect after a full reboot — a live-patch or service restart won't cut it. Confirm the new kernel is active with uname -r post-reboot.
  3. Prioritize multi-tenant and internet-facing hosts first. Any system where multiple users or workloads share local shell access is the highest-priority target.
  4. Audit shared directories. Reduce the number of world-writable or group-writable directories that sit alongside root-owned files or SUID binaries on XFS volumes.
  5. Track vendor advisories directly. Red Hat, Oracle, and other vendors have issued CVE-specific advisories with exact patched build numbers — don't rely solely on generic "latest kernel" guidance.

The AI-Assisted Discovery Angle

Illustration of AI-assisted vulnerability research showing Qualys and Anthropic collaboration in discovering RefluXFS

One detail that's drawn attention across the security community: RefluXFS was surfaced through a joint research effort between Qualys and Anthropic, where Qualys's Threat Research Unit incorporated an AI model into its manual audit workflow, under human oversight, while hunting for Dirty COW-style race conditions. The model flagged the XFS flaw and produced a working proof-of-concept, which Qualys engineers then independently verified before coordinating disclosure with kernel maintainers.

Qualys has been careful about the framing here: the takeaway isn't that AI can be pointed at a codebase to spit out exploits on demand. It's that AI paired with experienced human judgment can help defenders find serious bugs before attackers do — a distinction worth keeping in mind as more vulnerability research teams experiment with this workflow.

Expert Tips for SOC Teams

Infographic listing expert tips for SOC teams on responding to RefluXFS including fleet inventory, FIM, and compliance
  • Don't wait for a CVSS score to move on this — Qualys has rated it emergency priority, and the "no logs, survives reboot" combination makes post-incident forensics unusually difficult.
  • If you manage a fleet with mixed kernel versions, build a quick inventory script combining uname -r and xfs_info output across all hosts rather than relying on configuration management drift reports alone.
  • Revisit your file-integrity monitoring strategy. If your FIM tool only checks metadata and not content hashes, this vulnerability class is a blind spot worth closing regardless of this specific CVE.
  • Loop in your compliance team early. For regulated environments under frameworks like NIST 800-53 or HIPAA, an unpatched local-to-root escalation on production Linux hosts is the kind of finding that shows up in an audit.

Related Cybersecurity Topics You Should Explore

FAQ

Q: What is RefluXFS in simple terms?
A: It's a timing bug in the Linux kernel's XFS filesystem that lets a regular local user trick the system into overwriting protected files, effectively gaining root access.

Q: What is the CVE number for RefluXFS?
A: CVE-2026-64600.

Q: Is my system vulnerable if I don't use XFS?
A: No. The bug requires an XFS filesystem with reflink enabled. Systems on ext4 or other filesystems are not affected by this specific flaw.

Q: Can SELinux or containers protect me from RefluXFS?
A: No. Both have been tested against this flaw and neither blocks the vulnerable code path, since the race occurs deep in the kernel's filesystem allocation logic.

Q: How do I know if my kernel is patched?
A: Run uname -r and compare it against your distribution's published patched kernel build number in their security advisory.

Q: Does this vulnerability require remote access to exploit?
A: No, RefluXFS is a local privilege escalation flaw. An attacker needs some form of local, low-privileged access first — through a compromised account, a web shell, or a malicious insider, for example.

Q: Will restarting a service fix this instead of rebooting?
A: No. Because this is a kernel-level fix, only a full reboot into the patched kernel resolves the vulnerability.

Q: How many systems are affected worldwide?
A: Qualys estimates over 16.4 million systems globally, based on its asset management scanning.

Conclusion

RefluXFS is a stark reminder that some of the scariest vulnerabilities aren't flashy remote-code-execution zero-days — they're quiet, nine-year-old logic flaws sitting in code most of us assumed was solid. A local user turning into root, with zero log trail and metadata that lies to your face, is exactly the kind of bug that turns a routine pentest finding into a boardroom conversation.

If you run RHEL, Oracle Linux, Rocky, AlmaLinux, or Amazon Linux with XFS — and odds are you do — stop reading and go check your kernel version. Patch it, reboot it, and verify it. Then come back and tell us in the comments how your fleet's exposure check went, or share this with the sysadmin on your team who still thinks "we'll patch it next maintenance window" is an acceptable answer to an emergency-priority CVE.

Shubham Chaudhary

Welcome to Xpert4Cyber! I’m a passionate Cyber Security Expert and Ethical Hacker dedicated to empowering individuals, students, and professionals through practical knowledge in cybersecurity, ethical hacking, and digital forensics. With years of hands-on experience in penetration testing, malware analysis, threat hunting, and incident response, I created this platform to simplify complex cyber concepts and make security education accessible. Xpert4Cyber is built on the belief that cyber awareness and technical skills are key to protecting today’s digital world. Whether you’re exploring vulnerability assessments, learning mobile or computer forensics, working on bug bounty challenges, or just starting your cyber journey, this blog provides insights, tools, projects, and guidance. From secure coding to cyber law, from Linux hardening to cloud and IoT security, we cover everything real, relevant, and research-backed. Join the mission to defend, educate, and inspire in cyberspace.

Post a Comment

Previous Post Next Post
×

🤖 Welcome to Xpert4Cyber

Xpert4Cyber shares cybersecurity tutorials, ethical hacking guides, tools, and projects for learners and professionals to explore and grow in the field of cyber defense.

🔒 Join Our Cybersecurity Community on WhatsApp

Get exclusive alerts, tools, and guides from Xpert4Cyber.

Join Now