Linux CoreService RPC Command Injection via Unsanitized VirtualDevice
Coordinated Disclosure Timeline
Vulnerability identified and verified in VeraCrypt Linux CoreService
Submitted responsible disclosure report and PoCs to VeraCrypt maintainer & VulnCheck CNA
Vendor triage received; VulnCheck reserved CVE-2026-61512 under a 120-day coordinated embargo
Proposed patch review completed with maintainer; validated IPC token and credential hardening
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 / 10CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HResponsible 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 elevatedCoreServicesession 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:
- Direct Parameter Execution: Passing parameters as discrete argv vectors (
Process::Execute) rather than via intermediate shell interpretation (sh -c). - Block Device Enforcement: Strictly verifying that
VirtualDeviceis an existing, verified block device viamountedVolume->VirtualDevice.IsBlockDevice()prior to executing any filesystem utility. - IPC Protection: Implementing strict token authentication and
PR_SET_DUMPABLE=0on 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
NOPASSWDsudo 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.