Read the docs

systemd imports unmeasured SMBIOS credentials in Intel TDX guests

Priority MEDIUM 46CWE-807Published · Updated

Key facts

Attack vector
Local
Privileges required
High
User interaction
None
Attack complexity
High
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
High · High · None
Fix status
Fixed

Attack profile from CVSS 4.0 · GHSA-6rp9-8c2m-246r. Fix status from GitHub.

Summary

The systemd service manager's last known affected version is 262. In Intel TDX guests, it imports system credentials from SMBIOS Type 11 OEM strings, and the firmware does not measure those strings, so attestation cannot detect the imported values (CWE-807). A malicious or compromised host can inject trusted credentials, including root credentials and units, when neither systemd-boot nor systemd-stub v261 or newer runs before the kernel.

Written with Claude Haiku 5.5 from the sources below · 2026-11-18

Description from the GitHub advisory

## Patches v263 (https://github.com/systemd/systemd/commit/23fd2eb12d5d77987b8ac821fcf7e37ba8b45572 https://github.com/systemd/systemd/commit/2f6ab0ad19e49b18aeff2abc63869a4ed4338073 https://github.com/systemd/systemd/commit/224a37a47b0311734bb2c6fb8487e0ad93829a16) v262.2 (https://github.com/systemd/systemd/commit/d9eb8f29ebf61e4e5d4526a4b190133e571d9ff5 https://github.com/systemd/systemd/commit/83d105968aebc8fe5ac7e712b642b45757c2d651 https://github.com/systemd/systemd/commit/5d504e55cf89eb9ed81d6de01336d63f0891c4ed) ## Original Report ### Summary Since v262 the service manager imports system credentials from SMBIOS Type 11 OEM strings when it runs in an Intel TDX guest (commit 4dd73ad924). The change assumed that the firmware (TDVF) measures the SMBIOS table including these strings into RTMR0, so that a remote verifier would notice host tampering. It does not: edk2's SMBIOS measurement blanks the content of every Type 11 structure before hashing. The only components that measure the OEM strings are systemd-boot and systemd-stub v261 or newer. When neither runs before the kernel, a malicious or compromised host can inject arbitrary credentials, including root credentials and units, into the guest without any trace in the guest's attestation evidence. Up to v261 SMBIOS credentials were rejected in every confidential VM. ### Affected configuration This issue only affects Confidential Computing guests. PID1 runs in an Intel TDX guest and no systemd-boot or systemd-stub v261 or newer ran during boot. This covers direct kernel boot of a non-UKI kernel (QEMU `-kernel`, `systemd-vmspawn --coco=tdx --linux=` with a plain kernel), boot via GRUB or other loaders, and systemd-boot or systemd-stub older than v261. ### Non-affected configurations - systemd up to v261 - SEV-SNP and other confidential VM types (SMBIOS credentials are still rejected there) - non-confidential VMs (the host is trusted by design) - TDX guests booted via systemd-boot or systemd-stub v261 or newer, which measure the OEM strings into RTMR0 as tagged events (`smbios:type11`), so that injection is visible to a verifier. ### Details `import_credentials_smbios()` in `src/core/import-creds.c` reads the Type 11 structures from dmi-sysfs and imports every `io.systemd.credential:NAME=VALUE` string as a trusted system credential. Before v262 this was skipped whenever `detect_confidential_virtualization()` reported a confidential VM. Commit 4dd73ad924 exempted TDX from that check. TDVF measures the SMBIOS table through `MdeModulePkg/Universal/SmbiosMeasurementDxe` (built into `OvmfPkg/IntelTdx/IntelTdxX64.dsc` unconditionally, and into `OvmfPkgX64.dsc` with `TPM2_ENABLE` or `CC_MEASUREMENT_ENABLE`). The driver hashes a filtered copy of the table into PCR 1, which the CC measurement protocol maps to RTMR0. Its filter table `mSmbiosFilterStandardTableBlackList` lists Type 11 (`0x0B`) with a NULL field filter, and `FilterSmbiosEntry()` then zeroes everything after the four-byte structure header (type, length, handle) over the full structure size including the trailing string set. Only systemd-boot and systemd-stub v261 or newer measure the OEM string content (`src/boot/measure-smbios.c`, commit 29c6d1c125), into PCR 1 / RTMR0, and record that in the `LoaderPcrSMBIOS` EFI variable. On a direct kernel boot nothing does, and PID1 262.x imports the strings regardless. ### Proof of concept Requires a TDX-enabled host kernel and QEMU, TDVF, and a guest image with systemd 262.x. 1. Direct kernel boot with an injected credential: ``` SYSTEMD_VMSPAWN_QEMU_EXTRA='-smbios type=11,value=io.systemd.credential:ssh.authorized_keys.root=ssh-ed25519 AAAA... attacker' \ systemd-vmspawn --coco=tdx --image=image.raw --linux=image.vmlinuz --initrd=image.initrd ``` 2. In the guest, `systemd-creds --system list` shows `ssh.authorized_keys.root`, and `ssh root@guest` with the attacker key succeeds. With systemd v261, or with the fix, the credential is absent. 3. Boot twice with credential values of equal length and compare RTMR0 (from the TD quote, or `tpm2_eventlog /sys/firmware/acpi/tables/data/CCEL`): the values are identical. The integration test `test/units/TEST-94-COCO.tdx-direct.sh` added by the fix automates steps 1 and 2 (hostile boot). ### Impact The host assembles the SMBIOS table (QEMU `-smbios type=11,value=io.systemd.credential:NAME=VALUE`). Against an affected guest it can set, among others, `passwd.hashed-password.root`, `ssh.authorized_keys.root`, `systemd.extra-unit.*` and `systemd.unit-dropin.*` (arbitrary code as root at boot), `network.*`, `journal.forward_to_socket` and `vmm.notify_socket`. The attack is invisible to attestation. A Type 11 string set of the same total length yields the same RTMR0 value and the same CCEL event digest, and padding a credential to a target length is trivial. A verifier that releases secrets based on a TD quote cannot distinguish an attacked guest from an intact one. For the affected boot configurations this voids the confidentiality and integrity guarantees of TDX.

Why it matters now

Fix Fixed systemd (systemd): 263 262.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—systemd (systemd)262263 262.2Patch availableGHSA-6rp9-8c2m-246r
  • systemd (systemd) Vendor— Affected 262 Fixed in 263 262.2 Patch available GHSA-6rp9-8c2m-246r

Remediation

Update systemd to version 263 or to version 262.2, which fix the issue. Systemd-boot and systemd-stub v261 or newer measure the OEM strings into RTMR0, so injected credentials become visible to a remote verifier.

Written with Claude Haiku 5.5 from the sources below · 2026-11-18

  • Fix · GHSA-6rp9-8c2m-246r systemd (systemd) Fixed in 263 262.2 Advisory →

Timeline

  1. 2026-11-18 Threatist record created from GHSA-6rp9-8c2m-246r

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences