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.
Workarounds
Do not allow untrusted clients to attach tpm devices to containers, or remove host and other TPM devices from systems where they can.
Affected software
| Software | Affected versions |
|---|---|
IncusServers and applications · github:lxc/incus |
|
About Incus
container manager for system containers
- 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
Vulnerabilities in Incus
- In our list
- 134
- Published in the last 12 months
- 131
- Critical, last 12 months
- 49
- High, last 12 months
- 46
- Known exploited
- 0
- GHSA-wxrh-h92w-7p77Restricted clients can make QEMU read arbitrary host files through SMBIOS type 11 keysHigh 7.7 27 Nov 2026
- GHSA-58vc-fxv9-grp7Line breaks in instance configuration inject liblxc directives and run host commandsCritical 9.9 27 Nov 2026
- GHSA-xw8w-vwh3-9w5vRestricted project users can read and write host devices through the file transfer APICritical 9.9 27 Nov 2026
- GHSA-wm96-rxh7-f5w2NBD commands expose volume and VM disks to every local user through an unauthenticated loopback listenerHigh 7.9 27 Nov 2026
- GHSA-whqq-3g5w-5p5wArbitrary file write during recursive file pull on case-insensitive file systemsHigh 7.7 27 Nov 2026
- GHSA-v855-hxm9-5pwgRestricted clients can crash, exhaust or stall the Incus daemonMedium 6.5 27 Nov 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-wgg4-rrw6-c64w
- github.com https://github.com/lxc/incus/security/advisories/GHSA-wgg4-rrw6-c64w