Skip to content

Security fixes ahead of Incus 6.21#2848

Merged
stgraber merged 2 commits intolxc:mainfrom
stgraber:security
Jan 22, 2026
Merged

Security fixes ahead of Incus 6.21#2848
stgraber merged 2 commits intolxc:mainfrom
stgraber:security

Conversation

@stgraber
Copy link
Copy Markdown
Member

This addresses two security issues that were responsibly disclosed to the Incus security team by Rory McNamara of snyk.io.

They cover:

LXC doesn't currently have a syntax to hold a multi-line environment
variable in its configuration. The use of multi-line environment
variables leads to a corrupted configuration file and to a security
issue where additional lines may be added by an unprivileged user to
escalate their privileges.

This fixes CVE-2026-23953.

Reported-by: Rory McNamara <[email protected]>
Signed-off-by: Stéphane Graber <[email protected]>
@hallyn hallyn enabled auto-merge January 22, 2026 19:17
This fixes three security issues related to file templates:

 - The template target path could be made to be relative or gothrough
   symlinks in a way that could lead to arbitrary write to the host
   filesystem.

 - The template directory could be relative, allowing for arbitrary read
   from the host filesystem.

 - The template file itself could be made relative, allowing for
   arbitrary reads from the host filesystem.

In the case of the template target path, the new logic makes use of the
kernel's openat2 system call which brings a variety of flags that can be
used to restrict path resolution and detect potential issues.

For the template path itself, we now validate that it is a simple local
file and that the template directory isn't a symlink.

This fixes CVE-2026-23954

Reported-by: Rory McNamara <[email protected]>
Signed-off-by: Stéphane Graber <[email protected]>
@stgraber stgraber disabled auto-merge January 22, 2026 21:56
@stgraber stgraber merged commit e4c267d into lxc:main Jan 22, 2026
53 of 55 checks passed
tomponline added a commit to tomponline/lxd that referenced this pull request Feb 3, 2026
Based on lxc/incus#2848

Related to GHSA-x6jc-phwx-hp32
(CVE-2026-23953)

This addresses a security issue that was responsibly disclosed to the
Incus security team by Rory McNamara of snyk.io.
tomponline added a commit to canonical/lxd that referenced this pull request Feb 3, 2026
Based on lxc/incus#2848

Related to GHSA-7f67-crqm-jgh7
(CVE-2026-23954)

This addresses a security issue that was responsibly disclosed to the
Incus security team by Rory McNamara of snyk.io.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants