REDHAT-BUG-2584327: Medium severity bootc bootc vulnerability
A flaw was found in bootc. On a sealed composefs boot, the initramfs in bootc 1.16.0 through 1.17.4 opens the repository with openupgrade and mounts the image named by the strict composefs= kernel argument with Repository::mount. The repository mode is taken from unsigned meta.json, and openimage returns an image at images/refs/<digest> without comparing its fs-verity digest to that name. An attacker who can write the root filesystem while the system is off, and who cannot write the EFI system partition or the signing keys, can boot a different root under the original signed UKI. The fix is bootc 1.17.5, which sets an explicit integrity policy from the kernel command line and mounts with mountdigest. This is GHSA-g77m-w5pv-gphg.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.17.5
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using a sealed composefs boot with bootc versions 1.16.0 through 1.17.4 are affected. The issue applies when booting through a signed UKI with a strict composefs= kernel argument.
What access does an attacker need to exploit it?
The attacker must be able to write to the root filesystem while the system is powered off. They do not need write access to the EFI system partition or to signing keys.
What is the impact of successful exploitation?
An attacker can cause the system to boot a different root filesystem under the original signed UKI. This bypasses the intended integrity verification of the image selected by its digest.
What version fixes the issue?
bootc 1.17.5 fixes the flaw. The fix applies an explicit integrity policy from the kernel command line and mounts the image using mount_digest.