<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Cifs-Utils (7.0 - 7.6) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/cifs-utils-7.0---7.6/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Thu, 15 Oct 2026 23:05:21 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/cifs-utils-7.0---7.6/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Local Privilege Escalation in cifs-utils via Credential File Injection</title><link>https://feed.craftedsignal.io/briefs/2026-10-cifs-utils-lpe/</link><pubDate>Thu, 15 Oct 2026 23:05:21 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-10-cifs-utils-lpe/</guid><description>A local privilege escalation vulnerability in cifs-utils (CVE-2026-104715) allows unprivileged users to gain root access by injecting malicious mount options into a user-controlled credentials file used by mount.cifs.</description><content:encoded><![CDATA[<p>CVE-2026-104715 is a critical local privilege escalation vulnerability affecting the <code>mount.cifs</code> utility within the <code>cifs-utils</code> package. The vulnerability stems from improper sanitization of the <code>username</code> field within credential files provided via the <code>credentials=</code> mount option. Because <code>mount.cifs</code> copies the <code>username</code> value into the kernel-bound mount option string without filtering for comma separators, an attacker who controls a local credential file can inject arbitrary mount parameters. Since the Linux kernel CIFS parser follows a last-write-wins logic, these injected parameters override earlier, legitimate security settings. By successfully injecting options such as <code>uid=0</code>, <code>forceuid</code>, and <code>file_mode=04755</code>, an attacker can gain a root shell through privileged mount operations performed by administrators, systemd units, or autofs. The vulnerability affects <code>cifs-utils</code> versions 7.0 through 7.6 and bypasses SELinux targeted policies.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker identifies a local <code>credentials</code> file or path that is currently or will be used by <code>mount.cifs</code> with root privileges.</li>
<li>Attacker modifies the credentials file, injecting malicious options into the <code>username</code> field (e.g., <code>username=user,uid=0,forceuid,file_mode=04755</code>).</li>
<li>A privileged process (e.g., administrator, systemd, or autofs) triggers a mount operation using the compromised credential file.</li>
<li><code>mount.cifs</code> parses the file and concatenates the malicious <code>username</code> string into the kernel mount option buffer.</li>
<li>The kernel parses the final mount option string; due to the last-write-wins behavior, the injected <code>uid=0</code> and permission-altering options override the default system settings.</li>
<li>The CIFS share is mounted with the attacker's desired permissions, effectively granting the attacker full control over file ownership and SUID bits on the mounted filesystem.</li>
<li>Attacker executes a binary or modifies files on the now-accessible share to gain persistence or escalate to a root shell.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation results in full local privilege escalation, allowing an unprivileged user to gain root access. This affects any system using <code>cifs-utils</code> for network filesystem management, including enterprise distributions such as Ubuntu 24.04 and RHEL 9.8. The attack is particularly dangerous because it does not require setuid permissions on <code>mount.cifs</code> or the presence of <code>pam_mount</code>, and it remains effective even when SELinux is in enforcing mode.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Prioritize updating <code>cifs-utils</code> to versions containing the fix provided by the maintainer (Paulo Alcantara) to enforce sanitization of credential file values.</li>
<li>Audit all <code>fstab</code> entries, systemd <code>.mount</code> units, and administrative scripts that use the <code>credentials=</code> mount option to ensure credential files are stored in directories with restricted write access.</li>
<li>Restrict write access to any files used as CIFS credentials to the specific user account authorized to use that share, preventing unauthorized injection.</li>
<li>Monitor system logs for unexpected or unauthorized mount operations, particularly those involving modifications to credential configuration files.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>privilege-escalation</category><category>linux</category><category>cifs-utils</category></item></channel></rss>