Back to Intelligence

CVE-2026-108472: Fedora xfsprogs xfs_admin Command Injection — Local Privilege Escalation Detection and Remediation Guide

SA
Security Arsenal Team
November 17, 2026
9 min read

A critical command injection vulnerability has been identified in the xfs_admin utility distributed with the xfsprogs package on Fedora Linux systems. Tracked as CVE-2026-108472, this flaw allows a local, unprivileged attacker to execute arbitrary commands with elevated privileges — typically root — by injecting malicious input through arguments passed to xfs_admin. The vulnerability carries significant risk for any environment running XFS filesystems, particularly shared hosting, CI/CD infrastructure, and multi-tenant systems where local user access is common.

This is not a theoretical exercise. xfs_admin is a setuid-capable administrative tool used to modify XFS filesystem parameters, including labels and UUIDs. If exploited, an attacker gains full control of the underlying host, bypassing filesystem isolation and enabling lateral movement, persistence, and data exfiltration. Fedora 45 users running xfsprogs versions prior to the patched release are directly affected and must act now.

Technical Analysis

Affected Products and Versions

  • Product: xfsprogs (XFS filesystem utilities)
  • Component: xfs_admin
  • Distribution: Fedora 45 (confirmed); other RPM-based distributions using vulnerable xfsprogs builds may also be affected
  • Vulnerable Versions: xfsprogs packages prior to the Fedora 45 security update released in April 2026
  • Platform: Linux (x86_64, aarch64)

Vulnerability Details

AttributeValue
CVE IDCVE-2026-108472
CVSS v3.1 Score7.8 (High)
Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ImpactConfidentiality, Integrity, Availability — Full

How the Vulnerability Works

xfs_admin is a command-line utility that modifies XFS filesystem metadata. Under normal operation, it is executed with elevated privileges (either directly by root or via sudo) to perform administrative tasks. The vulnerability stems from improper input sanitization when processing user-supplied arguments — specifically, the utility fails to adequately neutralize shell metacharacters or command separators in parameters such as filesystem labels or device paths.

An attacker with local shell access can craft a malicious argument string that injects arbitrary shell commands. When xfs_admin processes this input, it passes the unsanitized data to a system call or shell subprocess, resulting in command execution with the privileges of the xfs_admin process. If xfs_admin is configured as setuid root or invoked via sudo, the injected commands execute as root.

Attack Chain:

  1. Attacker gains local access (SSH, container escape, compromised service account, or physical access).
  2. Attacker invokes xfs_admin with a crafted argument containing shell metacharacters (e.g., ;, |, `, $()).
  3. The vulnerable argument parser passes the malicious string to an underlying shell or system() call without proper quoting or escaping.
  4. Arbitrary commands execute with root privileges, granting the attacker full system control.

Exploitation Status

As of the publication date, no public proof-of-concept exploit has been released, and CVE-2026-108472 is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. However, the vulnerability is trivially exploitable by any local user with basic shell knowledge, and the setuid nature of xfs_admin makes it a high-value target for privilege escalation chains. Given the low attack complexity, defenders should treat this as a patch-now priority, especially in environments where untrusted users have local access.

Detection & Response

Sigma Rules

The following Sigma rules target the suspicious invocation patterns of xfs_admin that indicate attempted exploitation. These rules focus on command-line arguments containing shell metacharacters and unexpected parent-child process relationships.

YAML
---
title: Suspicious xfs_admin Command Injection Attempt
id: a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects potential command injection attempts via xfs_admin by identifying shell metacharacters in command-line arguments.
references:
  - https://linuxsecurity.com/advisories/fedora/fedora-45-xfsprogs
  - https://attack.mitre.org/techniques/T1059/004/
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.privilege_escalation
  - attack.t1059.004
logsource:
  category: process_creation
  product: linux
detection:
  selection:
    Image|endswith: '/xfs_admin'
    CommandLine|contains:
      - ';'
      - '|'
      - '`'
      - '$('
      - '&&'
      - '||'
  condition: selection
falsepositives:
  - Legitimate administrative scripts with complex labeling schemes (rare)
level: high
---
title: xfs_admin Spawning Unexpected Child Processes
id: b2c3d4e5-6f7a-8b9c-0d1e-2f3a4b5c6d7e
status: experimental
description: Detects xfs_admin spawning shell or scripting interpreters, which may indicate successful command injection and privilege escalation.
references:
  - https://linuxsecurity.com/advisories/fedora/fedora-45-xfsprogs
  - https://attack.mitre.org/techniques/T1059/
author: Security Arsenal
date: 2026/04/06
tags:
  - attack.execution
  - attack.privilege_escalation
  - attack.t1059
logsource:
  category: process_creation
  product: linux
detection:
  selection:
    ParentImage|endswith: '/xfs_admin'
    Image|endswith:
      - '/bash'
      - '/sh'
      - '/dash'
      - '/zsh'
      - '/python'
      - '/perl'
      - '/nc'
      - '/ncat'
      - '/netcat'
  condition: selection
falsepositives:
  - None expected under normal administrative use
level: critical

KQL — Microsoft Sentinel / Defender

This KQL query hunts for suspicious xfs_admin executions ingested via Syslog or CEF into Microsoft Sentinel. It looks for command-line arguments containing shell injection patterns and flags executions by non-root users.

KQL — Microsoft Sentinel / Defender
Syslog
| where TimeGenerated > ago(7d)
| where ProcessName contains "xfs_admin"
| extend CommandLine = tostring(split(SyslogMessage, " ", 1))
| where CommandLine has_any (";", "|", "`", "$(", "&&", "||")
   or SyslogMessage has_any (";", "|", "`", "$(", "&&", "||")
| project TimeGenerated, Computer, ProcessName, SyslogMessage, HostIP, SeverityLevel
| order by TimeGenerated desc

For environments using Microsoft Defender for Endpoint on Linux, this query correlates process creation events:

KQL — Microsoft Sentinel / Defender
DeviceProcessEvents
| where TimeGenerated > ago(7d)
| where FileName =~ "xfs_admin"
| where ProcessCommandLine has_any (";", "|", "`", "$(", "&&", "||")
| extend InitiatingUser = InitiatingProcessAccountName
| project TimeGenerated, DeviceName, FileName, ProcessCommandLine, InitiatingUser, SHA256
| order by TimeGenerated desc

Velociraptor VQL

This VQL artifact hunts for live or historical xfs_admin executions with suspicious command lines across the endpoint fleet. It can be deployed as a Velociraptor hunt for rapid triage.

VQL — Velociraptor
-- Hunt for suspicious xfs_admin command-line arguments indicating command injection
SELECT Pid,
       Name,
       CommandLine,
       Exe,
       Username,
       CreateTime,
       Ppid,
       ParentName
FROM pslist()
WHERE Name =~ 'xfs_admin'
  AND CommandLine =~ '(;|\||`|\$\(|&&|\|\|)'
ORDER BY CreateTime DESC

For forensic depth, pair this with a file artifact check to identify recently modified XFS labels or unexpected binaries dropped post-exploitation:

VQL — Velociraptor
-- Identify recently modified files in /tmp and /dev/shm following xfs_admin execution
SELECT FullPath,
       Size,
       Mtime,
       Atime,
       Ctime,
       Mode
FROM glob(globs='/tmp/*', accessor='file')
WHERE Mtime > ago(1h)
  AND Mode =~ 'x'
ORDER BY Mtime DESC

Remediation Script — Bash

Deploy this Bash script across your Fedora 45 fleet to verify the installed xfsprogs version, apply the security patch, and audit for setuid misconfigurations.

Bash / Shell
#!/usr/bin/env bash
# CVE-2026-108472 Remediation Script for Fedora 45
# Run as root or via sudo

set -euo pipefail

echo "=== CVE-2026-108472: xfsprogs xfs_admin Remediation ==="

# Check current xfsprogs version
echo "[INFO] Checking installed xfsprogs version..."
CURRENT_VERSION=$(rpm -q xfsprogs --queryformat '%{VERSION}-%{RELEASE}\n' 2>/dev/null || echo "not-installed")
echo "[INFO] Installed xfsprogs version: ${CURRENT_VERSION}"

# Apply security update
echo "[INFO] Applying Fedora security update for xfsprogs..."
dnf update -y --advisory=FEDORA-2026-xfsprogs xfsprogs || dnf update -y xfsprogs

# Verify patched version
echo "[INFO] Verifying patched version..."
PATCHED_VERSION=$(rpm -q xfsprogs --queryformat '%{VERSION}-%{RELEASE}\n')
echo "[INFO] Updated xfsprogs version: ${PATCHED_VERSION}"

# Audit for setuid binaries (xfs_admin should NOT be setuid by default)
echo "[INFO] Auditing for setuid xfs_admin..."
if [[ -u /usr/sbin/xfs_admin ]]; then
    echo "[WARN] /usr/sbin/xfs_admin has setuid bit set. Removing..."
    chmod u-s /usr/sbin/xfs_admin
    echo "[INFO] Setuid bit removed."
else
    echo "[INFO] No setuid bit on xfs_admin. Configuration is secure."
fi

# Audit sudoers for xfs_admin entries
echo "[INFO] Auditing sudoers for xfs_admin permissions..."
if grep -r "xfs_admin" /etc/sudoers /etc/sudoers.d/ 2>/dev/null; then
    echo "[WARN] sudoers entries found for xfs_admin. Review and restrict to trusted administrators only."
else
    echo "[INFO] No sudoers entries for xfs_admin found."
fi

# Check for suspicious recent xfs_admin executions in audit logs
echo "[INFO] Checking audit logs for recent xfs_admin executions..."
ausearch -x xfs_admin -ts recent 2>/dev/null | head -20 || echo "[INFO] No recent xfs_admin executions found in audit log."

echo "=== Remediation Complete ==="
echo "[ACTION REQUIRED] Reboot is not required, but restart any dependent services."

Remediation

Immediate Actions

  1. Patch Immediately: Update xfsprogs to the latest version available in the Fedora 45 repositories. The Fedora Project has released a patched build that properly sanitizes input to xfs_admin. Run sudo dnf update xfsprogs and verify the version matches or exceeds the patched release.

  2. Remove Setuid Bit (If Present): xfs_admin does not require setuid root under normal operation. If your environment has manually configured the setuid bit, remove it immediately using sudo chmod u-s /usr/sbin/xfs_admin.

  3. Restrict sudo Access: Audit /etc/sudoers and /etc/sudoers.d/ for entries permitting non-root users to execute xfs_admin. Limit execution to trusted system administrators and require password authentication.

Verification

  • Confirm the installed xfsprogs version: rpm -q xfsprogs
  • Check for setuid misconfigurations: find /usr/sbin -name xfs_admin -perm /4000
  • Review audit logs for suspicious executions: ausearch -x xfs_admin -ts today

Long-Term Hardening

  • Enable SELinux: Ensure SELinux is in enforcing mode to confine the impact of compromised administrative utilities.
  • Implement Audit Rules: Add auditd rules to log all executions of xfs_admin and other XFS utilities: -w /usr/sbin/xfs_admin -p x -k xfs_admin_exec
  • Network Segmentation: Limit local shell access to trusted users and service accounts. Use jump hosts and privileged access workstations (PAWs) for administrative tasks.
  • Monitor for Anomalous Privilege Escalation: Deploy EDR solutions capable of detecting setuid abuse and unexpected child process spawning from administrative binaries.

Vendor References

  • Fedora Security Advisory: Fedora 45 xfsprogs Update
  • CVE Record: CVE-2026-108472 (pending MITRE publication at time of writing)
  • CISA KEV Status: Not currently listed

Executive Takeaways

  • Patch Now: CVE-2026-108472 is a trivially exploitable local privilege escalation in a core filesystem utility. Any untrusted local user can gain root.
  • Audit sudo and setuid: Misconfigured sudo rules or setuid bits on xfs_admin dramatically increase risk. Remove unnecessary privileges immediately.
  • Monitor for Injection Patterns: Deploy the provided Sigma and KQL rules to detect shell metacharacters in xfs_admin command lines and unexpected child processes.
  • Least Privilege Enforcement: Restrict local shell access and administrative tool execution to the smallest possible user base.
  • Verify Patch Deployment: Use the provided Bash script to confirm remediation across your fleet and audit for residual risk.

Related Resources

Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.

CVE-2026-108472: Fedora xfsprogs xfs_admin Command Injection — Local Privilege Escalation Detection and Remediation Guide | Security Arsenal | Security Arsenal