Skip to content

[arm64/riscv64 + EFI] systemd-boot loads unverified device tree blobs when secure boot is enabled in type #1 BLS setups

Low
bluca published GHSA-6m6p-rjcq-334c Sep 20, 2023

Package

systemd

Affected versions

>= 250

Patched versions

255 254.4 253.11 252.17 251.19 250.13

Description

Impact

On arm64 and riscv64, systemd-boot allows a local user to specify a device tree blob and loads it, even when secure boot mode is enabled when using type #1 BLS setups. DTBs are loaded and parsed by the kernel before ExitBootServices(), and the kernel itself disallows loading DTBs via the dtb= kernel command line option when secure boot is enabled.

This feature was introduced in v250 by: 6e86342bb82

As far as we are aware, there are no Shim-trusted arm64/riscv64 systemd-boot binaries published anywhere, so the severity and impact are low, as it affects only local self-signed secure boot deployments of systemd-boot on arm64/riscv64.

Patches

Fixed in main and 254.4 253.11 252.17 251.19 250.13

#29228
systemd/systemd-stable#324
systemd/systemd-stable#325
systemd/systemd-stable#326
systemd/systemd-stable#327
systemd/systemd-stable#328

Workarounds

Use type #2 BLS setups

References

#29228

Severity

Low
1.7
/ 10

CVSS base metrics

Attack vector
Physical
Attack complexity
Low
Privileges required
High
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:P/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N

CVE ID

No known CVE

Weaknesses

No CWEs

Credits