All vulnerabilities

Servers and applications

GHSA-wgg4-rrw6-c64w

Container TPM resource manager node can refer to another TPM

Severity
High 8.4
Published
27 Nov 2026
Last changed
27 Nov 2026
Added to UpHeron
27 Nov 2026
Fixed in
7.7.0
Weakness
Incorrect calculation (CWE-682)
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data · Change data · Slow it down
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L
Sources
Project advisories (GitHub)

Description

When a tpm device is attached to a container, Incus derives the device numbers of the resource manager node (pathrm, usually /dev/tpmrm0) from the raw device numbers reported by swtpm, using a wrong constant and the raw device's major number instead of reading the kernel's own numbers from sysfs. As a result, the resource manager node for TPM index 0 does not refer to any device, and the resource manager node for TPM index 244 refers to the resource manager of TPM index 0 rather than the container's own TPM.

A container whose swtpm instance is assigned TPM index 244 is given, and allowed by its device cgroup, a resource manager node for TPM index 0. That TPM belongs to the host when the host has its own TPM, or to whichever instance first started a TPM device otherwise. TPM indices are allocated lowest-free, so a client able to add tpm devices to its instances (allowed in restricted projects) can reach index 244 by attaching enough devices.

From lxc/incus's security advisory. Shortened; the full text is there.

Workarounds

Do not allow untrusted clients to attach tpm devices to containers, or remove host and other TPM devices from systems where they can.

Workarounds as given by lxc/incus's security advisory.

Affected software

SoftwareAffected versions
IncusServers and applications · github:lxc/incus
  • Every version before 7.7.0

About Incus

container manager for system containers

From Wikidata, CC0 1.0.
GitHub stars
6,771GitHub, 29 Nov 2026
Forks
535GitHub, 29 Nov 2026
Latest release
v7.7.0GitHub, 29 Nov 2026
Released
27 Nov 2026GitHub
Developer
Linux ContainersWikidata
License
Apache License 2.0Wikidata
Written in
GoWikidata
First released
7 Aug 2023Wikidata
First published on GitHub
22 Jul 2023GitHub

References