CVE-2026-135381 in LXDinfo

Summary

by MITRE • 11/27/2026

Incorrect permission assignment for critical resources in rsync transfer sockets, instance storage directories, proxy socket paths, and disk staging mounts in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an unprivileged local user to gain root privileges on the host, read or modify transferred volumes, alter host file permissions, and inject AppArmor rules via connecting to unauthenticated abstract Unix sockets, running setuid binaries, or racing path and mount operations.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/27/2026

The vulnerability identified in Canonical LXD prior to versions 4.0.16, 5.0.12, 5.21.10, and 6.10.2 represents a critical failure in access control mechanisms for sensitive system resources. This flaw stems from incorrect permission assignments applied to various internal communication channels and storage locations within the container runtime environment. Specifically, the issue affects rsync transfer sockets used for data migration, instance storage directories that house virtual machine or container files, proxy socket paths facilitating network traffic routing, and disk staging mounts utilized during volume operations. The core technical deficiency lies in the insufficient restriction of access rights on these components, which are often exposed via abstract Unix sockets or file system paths without adequate authentication checks or permission boundaries. This misconfiguration creates a pathway for privilege escalation where an unprivileged local user can interact with these resources as if they possessed higher-level privileges, effectively bypassing the isolation guarantees that LXD is designed to enforce between guest instances and the host operating system.

From a technical perspective, the exploitation vector relies on three primary methods: connecting to unauthenticated abstract Unix sockets, executing setuid binaries within the context of vulnerable services, or racing path resolution and mount operations. Abstract Unix sockets in Linux do not have file system entries but are identified by namespaces; if these sockets lack proper authentication mechanisms such as credentials passing via SCM_CREDENTIALS, any local process can connect to them. By connecting to these unauthenticated sockets, an attacker can issue commands that manipulate the rsync transfer processes or proxy services running with elevated privileges. Similarly, race conditions in path and mount operations allow attackers to exploit timing windows where file permissions are temporarily permissive before being corrected, enabling unauthorized modifications to host files. The ability to inject AppArmor rules is particularly severe because it allows an attacker to modify security profiles that govern container confinement, potentially disabling restrictions for other containers or the host itself, thereby widening the blast radius of the compromise.

The operational impact of this vulnerability is profound, as it leads directly to full root privilege escalation on the underlying host system. An unprivileged local user can read sensitive data from transferred volumes, which may contain confidential information belonging to other users or services hosted within LXD instances. Furthermore, the ability to modify these volumes allows for persistent backdoors or malware installation that survives container restarts. The capability to alter host file permissions means an attacker can change ownership and access rights of critical system files, potentially disabling security controls or creating new entry points for further exploitation. Most critically, injecting AppArmor rules enables the attacker to weaken or remove mandatory access control policies, effectively neutralizing one of Linux's primary defense mechanisms against container escapes. This transforms a local user account into a fully compromised root shell on the host, allowing unrestricted access to all hardware resources, network interfaces, and stored data.

This vulnerability aligns with CWE-269, which describes Improper Privilege Management, specifically regarding the failure to enforce least privilege principles for system services and inter-process communication channels. It also maps closely to MITRE ATT&CK technique T1055, Process Injection, as well as T1074, Data Staged, due to the manipulation of staging mounts and transfer sockets. Additionally, the ability to modify AppArmor profiles relates to CWE-284, Improper Access Control, and can be seen in the context of defense evasion techniques where security controls are manipulated to avoid detection or restriction. The exploitation via race conditions also reflects aspects of T1063, Trust Relationship Manipulation, by exploiting timing dependencies in system operations that should be atomic or strictly ordered.

To mitigate this vulnerability, organizations must immediately upgrade Canonical LXD to version 4.0.16, 5.0.12, 5.21.10, or 6.10.2 and later releases where these permission issues have been corrected. It is essential to verify that the update process has properly applied new permissions to all affected socket paths and storage directories. Administrators should audit their LXD configurations to ensure that no custom scripts or services are overriding default security settings with overly permissive access controls. Implementing strict network segmentation for management interfaces can also reduce exposure, although this vulnerability primarily affects local users. Regular monitoring of system logs for unusual connections to Unix sockets or unexpected changes in AppArmor profiles can help detect potential exploitation attempts before full compromise occurs. Maintaining up-to-date software packages and applying security patches promptly remains the most effective defense against such privilege escalation flaws in container runtimes.

Responsible

Canonical

Reservation

11/23/2026

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00160

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!