All vulnerabilities

Servers and applications

CVE-2026-141355

Container TPM resource manager node can refer to another TPM

Severity
Medium 5.6
Published
3 Dec 2026
Last changed
3 Dec 2026
Added to UpHeron
3 Dec 2026
Fixed in
5.0.13, 5.21.11, 6.10.3
Weakness
Incorrect calculation (CWE-682)
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
CVSS vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:L
Also known as
GHSA-jgqp-w77q-4m87
Sources
CVE Program, Project advisories (GitHub)

Description

Reported from https://github.com/lxc/incus/security/advisories/GHSA-wgg4-rrw6-c64w

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.

From canonical/lxd's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
LXDServers and applications · cna:canonical|lxd
  • From 5.0 before 5.0.13
  • From 5.0 before 5.21.11
  • From 5.0 before 6.10.3
LXDServers and applications · github:canonical/lxd
  • From 5.0 before 5.0.13

About LXD

container manager for system containers

From Wikidata, CC0 1.0.
GitHub stars
4,861GitHub, 29 Nov 2026
Forks
1,080GitHub, 29 Nov 2026
Latest release
lxd-6.10.2GitHub, 29 Nov 2026
Released
26 Nov 2026GitHub
Developer
Stéphane GraberWikidata
License
AGPL-3.0GitHub
Written in
GoWikidata
First released
4 Nov 2014Wikidata
First published on GitHub
4 Nov 2014GitHub

References