CVE-2026-16445: Dracut: dracut: root code execution via dhcp options command injection in networkmanager initrd module
A flaw was found in dracut. A remote attacker on the adjacent network can exploit this vulnerability by providing specially crafted DHCP options, such as a malicious root-path, next-server, or bootfile name, to a system using dracut's NetworkManager-based initrd network module. These options are improperly handled and written into a temporary shell script without proper escaping, leading to command injection. This allows the attacker to achieve root code execution within the initramfs during system boot.
Other sources
A flaw was found in dracut. The NetworkManager-based initrd network module (modules.d/35network-manager/nm-run.sh) reads DHCP lease values (root-path, next-server, dhcp-bootfile) from a NetworkManager device state file and writes them into a temporary file (/tmp/dhclient.<ifname>.dhcpopts) without escaping shell metacharacters. This file is later sourced as shell code during network-root boot handling (for example, NFS-root configurations). A DHCP server reachable on the same network segment as a booting host can supply a root-path, next-server, or dhcp-bootfile option value containing shell metacharacters, which are copied verbatim into the sourced file and executed as root in the initramfs when the file is sourced. Exploitation requires an initramfs built with dracut's network-manager module, configured to boot with a DHCP-derived netroot. This is a distinct code path from CVE-2026-6893, which affects dracut's network-legacy module (dhclient-script.sh). The fix escapes DHCP-derived values using shell-safe quoting before writing them to the generated file, consistent with the approach already used in later dracut versions.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/dracutto a version that resolves this vulnerability.Fixed in 112-1 - Upgrade
Upgrade
debian/dracutto a version that resolves this vulnerability.Fixed in 112-7
Event History
Frequently Asked Questions
What is the severity of CVE-2026-16445?
CVE-2026-16445 has a severity rating of high with a score of 7.5.
How can I fix CVE-2026-16445?
To mitigate CVE-2026-16445, update dracut to the latest version provided by your Linux distribution.
What impact does CVE-2026-16445 have?
CVE-2026-16445 allows remote attackers on an adjacent network to execute arbitrary code on the affected system.
Which software is affected by CVE-2026-16445?
The vulnerability affects the dracut software, specifically the NetworkManager-based initrd network module.
Can CVE-2026-16445 be exploited remotely?
Yes, CVE-2026-16445 can be exploited by an attacker on an adjacent network through specially crafted DHCP options.