haitam lazaar / lazaarsec
CVE-2026-615127.3high[Pending Vendor Patch · Embargo Expired]

Linux CoreService RPC Command Injection via Unsanitized VirtualDevice

TARGET ECOSYSTEM / VENDORIDRIX
AFFECTED PRODUCTVeraCrypt (Linux <= 1.26.29)
CWE CLASSIFICATIONCWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
PUBLISHED / DISCLOSED DATE2026-07-12

Coordinated Disclosure Timeline

5 Milestones
  1. Vulnerability identified and verified in VeraCrypt Linux CoreService

  2. Submitted responsible disclosure report and PoCs to VeraCrypt maintainer & VulnCheck CNA

  3. Vendor triage received; VulnCheck reserved CVE-2026-61512 under a 120-day coordinated embargo

  4. Proposed patch review completed with maintainer; validated IPC token and credential hardening

  5. 120-day embargo elapsed. Advisory published with technical root cause; weaponized PoC withheld pending vendor patch release

CVSS v3.1 Vector Breakdown

Base Score: 7.0 / 10
Vector String:CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector(AV)
LocalL
Complexity(AC)
HighH
Privileges(PR)
LowL
Interaction(UI)
NoneN
Scope(S)
UnchangedU
Confidentiality(C)
HighH
Integrity(I)
HighH
Availability(A)
HighH
Technical Advisory & Impact AnalysisDISCLOSURE DOSSIER

Responsible Disclosure & Embargo Status

Advisory Status: Reported · Pending Vendor Patch
The 120-day coordinated disclosure window (established July 12, 2026 with VulnCheck and the upstream maintainer) elapsed on November 9, 2026 without an official upstream patch release. In accordance with coordinated vulnerability disclosure norms, this advisory documents the vulnerability mechanics, root cause, and defensive guidance for system administrators. Actionable weaponized exploit scripts remain withheld pending the vendor’s upcoming release.


Summary

VeraCrypt on Linux (tested on versions 1.25.9 and 1.26.29) contains a Local Privilege Escalation (LPE) vulnerability in the CoreUnix::CheckFilesystem routine. The elevated CoreService daemon (running as root) receives unsterilized volume properties via anonymous pipe IPC from the unprivileged frontend. During a filesystem check, the VirtualDevice property is concatenated directly into a shell command executed via sh -c inside a terminal emulator, allowing an unprivileged local attacker possessing IPC pipe access to execute arbitrary commands as root.


Technical Details & Root Cause

In VeraCrypt’s Linux architecture, privileged container operations are delegated to CoreService, a helper daemon executed with elevated permissions (uid=0). Communication between the unprivileged GUI/CLI process and CoreService occurs over an anonymous IPC pipe.

When filesystem verification is triggered (CoreUnix::CheckFilesystem), the daemon prepares arguments for fsck:

// src/Core/Unix/CoreUnix.cpp (CheckFilesystem)
string xargs = fsckPath + " ";
#ifdef TC_LINUX
if (!repair)
    xargs += "-n ";
else
    xargs += "-r ";
#endif

// VULNERABLE: Attacker-controlled VirtualDevice concatenated without sanitization
xargs += string (mountedVolume->VirtualDevice) + "; echo '[Done]'; read W";

for (const TerminalInfo* term = TERMINALS; term->name != NULL; ++term) {
    // Passes unescaped command line to `sh -c` inside a terminal emulator
    args.push_back(xargs);
    Process::Execute (termPath, args, 1000);
}

Because mountedVolume->VirtualDevice was never validated to ensure it was a genuine block device node before shell construction, command separator tokens (such as ;, &&, or backticks) are interpreted directly by the invoked shell.

For instance, injecting a crafted VirtualDevice payload such as:

/dev/null; id > /tmp/pwned; #

results in sh -c "fsck -n /dev/null; id > /tmp/pwned; #; echo '[Done]'; read W", executing the injected command with full root privileges.


Prerequisites & Threat Model

  • Active Session Requirement (AC:H / AT:P): The attack requires access to the anonymous IPC pipe of an active, legitimately elevated CoreService session sharing the same local user identifier.
  • Privilege Boundary: Exploitation does not require prior administrative passwords if an elevated session is running and the attacker has local process or file descriptor access under the user context.

Upstream Remediation & Mitigation Review

During responsible disclosure coordination, a hardening patch was reviewed that eliminates shell invocation entirely by switching to direct argument arrays:

  1. Direct Parameter Execution: Passing parameters as discrete argv vectors (Process::Execute) rather than via intermediate shell interpretation (sh -c).
  2. Block Device Enforcement: Strictly verifying that VirtualDevice is an existing, verified block device via mountedVolume->VirtualDevice.IsBlockDevice() prior to executing any filesystem utility.
  3. IPC Protection: Implementing strict token authentication and PR_SET_DUMPABLE=0 on IPC endpoints to prevent unauthorized local pipe interception.

Temporary Defense & Recommendations

Until an official VeraCrypt release is made available by IDRIX:

  • Avoid executing VeraCrypt with NOPASSWD sudo policies on multi-user or untrusted shared workstations.
  • Ensure strict local process isolation so unprivileged background processes cannot inspect open file descriptors of active desktop sessions.