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

Linux CoreService Arbitrary File Ownership Takeover via SetFileOwner

TARGET ECOSYSTEM / VENDORIDRIX
AFFECTED PRODUCTVeraCrypt (Linux <= 1.26.29)
CWE CLASSIFICATIONCWE-732: Incorrect Permission Assignment for Critical Resource
PUBLISHED / DISCLOSED DATE2026-07-12

Coordinated Disclosure Timeline

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

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

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

  4. Patch review and boundary validation conducted with upstream maintainer

  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::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, elevated CoreService session operating under the same local user identifier.
  • Scope: An unprivileged user who cannot directly invoke sudo can 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:

  1. Device Path Restriction: Restricting SetFileOwner targets strictly to canonical paths beginning with /dev/.
  2. Block Device Verification: Ensuring stat() on the resolved canonical device path confirms S_ISBLK(targetStat.st_mode).
  3. Owner Tracking & Restoration: Storing original device ownership in a synchronized map (SetFileOwnerOriginalOwners) and restricting restoration exclusively to the recorded initial owner.
  4. 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 NOPASSWD sudo rules for VeraCrypt binaries.
  • Ensure strict multi-user process boundaries on Linux desktop installations.