Dracut: dracut: root code execution via dhcp options command injection in networkmanager initrd module
Impact
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.
Source excerpt · redhatWhat to do
Avoid using the root=dhcp/netroot=dhcp/root=dhcp6/netroot=dhcp6 kernel command-line options — these cause dracut to trust the DHCP server's root-path option to determine the boot target. Configuring the netroot target explicitly on the kernel/PXE command line instead (e.g. netroot=nfs:<server>:<path> or netroot=iscsi:... with a literal value).
Affected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
Red Hat · Red Hat Enterprise Linux 8
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:049-244.git20260529.el8_10 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:049-138.git20220131.el8_4.1 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:049-138.git20220131.el8_4.1 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:049-203.git20220511.el8_6.1 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:049-203.git20220511.el8_6.1 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 8.8 Telecommunications Update Service
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:049-223.git20230119.el8_8.1 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:049-223.git20230119.el8_8.1 to before * | unaffected |
Red Hat · Red Hat OpenShift Container Platform 4.12
Other versions: affected
| Version / range | Source status |
|---|---|
| 412.86.202610250235-0 to before * | unaffected |
Red Hat · Red Hat Hardened Images
Other versions: affected
| Version / range | Source status |
|---|---|
| 109-7.hum1 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 10
Other versions: unaffected
| Version / range | Source status |
|---|
Red Hat · Red Hat Enterprise Linux 6
Other versions: unaffected
| Version / range | Source status |
|---|
Red Hat · Red Hat Enterprise Linux 7
Other versions: unaffected
| Version / range | Source status |
|---|
Red Hat · Red Hat Enterprise Linux 9
Other versions: unaffected
| Version / range | Source status |
|---|
Original source description
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.
References
- Source reference access.redhat.com/errata/RHSA-2026:26534
- Source reference access.redhat.com/errata/RHSA-2026:40700
- Source reference access.redhat.com/errata/RHSA-2026:61252
- Source reference access.redhat.com/errata/RHSA-2026:69118
- Source reference access.redhat.com/errata/RHSA-2026:69119
- Source reference access.redhat.com/errata/RHSA-2026:90272
- Security advisory access.redhat.com/security/cve/CVE-2026-16445
- Source reference bugzilla.redhat.com/show_bug.cgi
- Source reference bugzilla.redhat.com/show_bug.cgi
- Patch github.com/dracutdevs/dracut/commit/e509c638e6