Linux CoreService Arbitrary File Ownership Takeover via SetFileOwner
Coordinated Disclosure Timeline
Vulnerability identified and isolated in VeraCrypt Linux CoreService
Submitted responsible disclosure report and PoCs to VeraCrypt maintainer & VulnCheck CNA
Vendor triage received; VulnCheck reserved CVE-2026-61513 under a 120-day coordinated embargo
Patch review and boundary validation conducted with upstream maintainer
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::SetFileOwner routine. The elevated CoreService daemon exposes a request handler allowing an unprivileged user with access to the anonymous IPC pipe to pass arbitrary filesystem paths directly into the chown() system call without verifying whether the target path is a valid VeraCrypt container volume. This allows an attacker to seize ownership of critical system files (e.g., /etc/shadow or SUID executables) and achieve full root privileges.
Technical Details & Root Cause
When mounting volumes or configuring device nodes, the unprivileged frontend can request owner modifications by dispatching a serialized SetFileOwnerRequest over IPC to the root-privileged CoreService.
While VeraCrypt’s macOS implementation explicitly verifies that the target path is a block or character device residing in /dev via ValidateMacOSXSetFileOwnerTarget(), the Linux implementation lacked this target validation entirely:
// src/Core/Unix/CoreUnix.cpp (SetFileOwner)
void CoreUnix::SetFileOwner (const FilesystemPath &path, const UserId &owner) const
{
// VULNERABLE: Direct chown() on caller-specified path without device verification
throw_sys_if (chown (string (path).c_str(), owner.SystemId, (gid_t) -1) == -1);
}
Because CoreService runs with effective user ID 0, calling chown() succeeds on arbitrary targets across the root filesystem.
By submitting a serialized SetFileOwnerRequest referencing a critical system file (e.g., /etc/shadow or /etc/pam.d/su) along with their own user identifier (uid), an unprivileged attacker can take ownership of the target file, grant themselves write permissions, and alter security configurations to achieve root command execution.
Prerequisites & Threat Model
- Active Session Requirement (
AC:H/AT:P): The attack requires access to the anonymous IPC pipe of an active, elevatedCoreServicesession operating under the same local user identifier. - Scope: An unprivileged user who cannot directly invoke
sudocan elevate privileges by interacting with the existing elevated daemon’s IPC stream.
Upstream Remediation & Mitigation Review
During responsible disclosure coordination, a multi-stage validation check was developed:
- Device Path Restriction: Restricting
SetFileOwnertargets strictly to canonical paths beginning with/dev/. - Block Device Verification: Ensuring
stat()on the resolved canonical device path confirmsS_ISBLK(targetStat.st_mode). - Owner Tracking & Restoration: Storing original device ownership in a synchronized map (
SetFileOwnerOriginalOwners) and restricting restoration exclusively to the recorded initial owner. - IPC Hardening: Securing the IPC pipe endpoints against local eavesdropping and injection.
Temporary Defense & Recommendations
Until an official VeraCrypt release is made available by IDRIX:
- Disallow unprivileged users from interacting with or inspecting active VeraCrypt processes.
- Do not configure
NOPASSWDsudo rules for VeraCrypt binaries. - Ensure strict multi-user process boundaries on Linux desktop installations.