Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-104715 — Proof-of-concept for CVE-2026-104715: cifs-utils credentials-file option injection in mount.cifs that lets a local user inject kernel mount options and gain root. | Kitploit
Tools/GitHubGitHub/m3aculpa/cve-2026-104715
Privilege EscalationVulnerability AnalysisExploitationPapers & Research
GitHubm3aculpa/cve-2026-104715

CVE-2026-104715

Proof-of-concept for CVE-2026-104715: cifs-utils credentials-file option injection in mount.cifs that lets a local user inject kernel mount options and gain root.

View Repository
1 month agoNot yet reviewed
Share

CVE-2026-104715 POC

cifs-utils credentials-file option injection -> local root

open_cred_file() in mount.cifs copies the username= value from a credentials file into the kernel-bound mount option string with no comma tokenization. The value lands after mount.cifs's per-token sanitizer has already run, so injected options like uid=0,forceuid,file_mode=04755 pass straight through to the kernel. Kernel CIFS parser is last-write-wins on duplicate keys.

An unprivileged user who controls the credentials file gets arbitrary kernel mount options. That's enough for a root shell.

Works under SELinux enforcing with zero AVC denials.

affected

  • cifs-utils 7.0 (Ubuntu 24.04) through 7.6 (RHEL 9.8), probably older too
  • every kernel with CIFS support (last-write-wins option parsing)
  • SELinux targeted policy does not mitigate

CVSS

AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N = 8.4 High

root cause

mount.cifs.c, the CRED_USER case in open_cred_file:

case CRED_USER:
    strlcpy(parsed_info->username, temp_val,
        sizeof(parsed_info->username));

temp_val is the raw value after username= in the cred file. No validation, no comma splitting. Later at line 1942:

strlcat(parsed_info->options, "user=", ...);
strlcat(parsed_info->options, parsed_info->username, ...);

This runs after the sanitizer already emitted uid=N,gid=N. So a cred file with username=smbuser,uid=0,forceuid,file_mode=04755 produces:

...,uid=1000,gid=1000,user=smbuser,uid=0,forceuid,file_mode=04755,...

Kernel walks left to right, last write wins. uid=0 overwrites uid=1000.

exploitation

The common real-world trigger is an fstab entry like:

//server/share /mnt/data cifs credentials=/home/user/.smbcredentials 0 0

User owns that cred file. Change the username= line, wait for the next privileged mount. Also works via autofs, systemd .mount units, admin scripts, or anything else that calls mount.cifs as root with credentials= pointing to a file you can write.

The PoC demonstrates full root shell: inject uid=0,forceuid,file_mode=04755, place a binary on the share, every file on the mount becomes SUID root.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    901
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    861
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    668
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    448
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    414
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    401

Explore all tools

Browse our collection of tools

View all tools →