Skip to content
KitploitKITPLOIT
ToolsBlog
Log in
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-7867-disk2root — Weaponized local privilege escalation exploit for CVE-2026-7867 in udisks2, using as-user mount spoofing to bypass PolicyKit and gain a root shell. | Kitploit
Tools/GitHubGitHub/azqzazq1/cve-2026-7867-disk2root
Privilege EscalationVulnerability AnalysisExploitationPost-ExploitationPenetration TestingLearning & EducationRed TeamingBinary ExploitationLabs & Practice

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
GitHubazqzazq1/cve-2026-7867-disk2root

CVE-2026-7867-disk2root

Weaponized local privilege escalation exploit for CVE-2026-7867 in udisks2, using as-user mount spoofing to bypass PolicyKit and gain a root shell.

View Repository
184 months agoNot yet reviewed





Filesystem.Mount → as-user Spoofing → Authorization Bypass → Root-context Mount → LPE


Overview

CVE-2026-7867 is a local privilege escalation vulnerability in udisks2 involving the Filesystem.Mount D-Bus method, the as-user option, fstab-managed mount flows, and flawed authorization handling.

This private repository contains the technical research notes and PoC scripts used to validate the issue in a controlled lab environment.

The vulnerability was discovered and reported by:

Azizcan Daştan azqzazq1
Özlem Ozan oz7oz7

The issue was assigned:

CVE-2026-7867

Executive Summary

The vulnerability is caused by a flawed trust relationship between the real D-Bus caller UID and the computed/effective UID produced by the as-user mount option.

In vulnerable flows, an unprivileged local user can influence the mount execution path so that a filesystem mount is performed in a privileged/root context without the expected PolicyKit authorization behavior.

The core bug is not simply “user-controlled mount options.”

The real issue is:

udisks2 fails to consistently distinguish the original caller identity from the computed as-user identity during fstab mount authorization and execution.


Vulnerability at a Glance

FieldValue
CVECVE-2026-7867
Productudisks2
ComponentFilesystem.Mount
Attack TypeLocal Privilege Escalation
Primitiveas-user spoofing
Security BoundaryD-Bus caller identity → privileged mount execution
Authorization LayerPolicyKit / fstab mount authorization
VendorRed Hat / udisks upstream
StatusPatch in progress / coordinated disclosure
Planned Fix Releaseudisks 2.11.2

Affected Area

The vulnerable logic is associated with the fstab mount handling path inside udisks2, especially when the mount request involves:

Filesystem.Mount
as-user
x-udisks-auth
user
users

The relevant security-sensitive areas are:

D-Bus caller identity
        ↓
as-user option handling
        ↓
fstab authorization logic
        ↓
PolicyKit decision flow
        ↓
root-context mount execution

Attack Flow

┌─────────────────────────────┐
│ Unprivileged Local User     │
└──────────────┬──────────────┘
               │
               │ Filesystem.Mount
               │ with as-user influence
               ▼
┌─────────────────────────────┐
│ udisks2 / udisksd           │
│ privileged system daemon    │
└──────────────┬──────────────┘
               │
               │ fstab logic evaluates
               │ user/auth options
               ▼
┌─────────────────────────────┐
│ Authorization Gap           │
│ mount_other_user not        │
│ enforced in skipped path    │
└──────────────┬──────────────┘
               │
               │ root-context branch reached
               ▼
┌─────────────────────────────┐
│ Filesystem Mounted          │
│ without expected auth flow  │
└──────────────┬──────────────┘
               │
               │ impact depends on mount flags
               ▼
┌─────────────────────────────┐
│ Local Privilege Escalation  │
│ controlled lab validation   │
└─────────────────────────────┘

Root Cause

The vulnerable behavior comes from an identity confusion bug.

The system has multiple identity concepts:

real D-Bus caller UID
computed as-user UID
effective mount UID
udisksd daemon privilege context

The vulnerable flow fails to enforce these identities consistently.

In particular:

  • mount_other_user can become true because as-user is used
  • fstab options such as x-udisks-auth, user, or users can affect the authorization path
  • the authorization block can be skipped
  • the mount_other_user check is not reliably enforced outside that block
  • the mount path can reach a branch intended for genuine root/admin execution
  • the mount is performed by the privileged daemon context

The result is a local privilege boundary bypass.


The x-udisks-auth Problem

The x-udisks-auth option is supposed to force an administrative PolicyKit authorization flow.

Expected behavior:

mount request
    ↓
attempt mount as caller
    ↓
permission/auth failure
    ↓
PolicyKit filesystem-fstab check
    ↓
admin approval
    ↓
mount as authorized privileged action

Vulnerable behavior:

mount request with as-user influence
    ↓
computed identity affects execution
    ↓
mount succeeds too early
    ↓
PolicyKit auth path is not reached as expected
    ↓
privileged mount state is achieved

This makes the security model around x-udisks-auth unreliable in the vulnerable path.


Security Model Violation

Expected model:

Unprivileged user
    ↓
D-Bus mount request
    ↓
PolicyKit / fstab authorization
    ↓
restricted mount behavior

Broken model:

Unprivileged user
    ↓
D-Bus mount request with as-user spoofing
    ↓
authorization logic mismatch
    ↓
root-context mount execution

The bug is especially serious because the affected service runs with elevated privileges.


Impact

Successful exploitation may allow a local unprivileged user to mount a filesystem through udisks2 in a root-context execution path without the expected authorization prompt.

Depending on the filesystem and mount flags, impact may include:

  • local privilege escalation
  • unauthorized root-context filesystem mounting
  • bypass of expected PolicyKit authorization
  • unsafe fstab-managed device mounting
  • setuid-based escalation in affected lab configurations
  • unexpected execution of files from attacker-controlled or prepared filesystems

Exploitation Conditions

This is a local vulnerability.

Relevant conditions include:

ConditionRequired
Local user accessYes
Vulnerable udisks2 versionYes
as-user functionality presentYes
Suitable fstab-managed mount targetYes
Vulnerable authorization pathYes
Remote accessNo

Repository Layout

Download Tool