Dracut: dracut: root code execution via dhcp options command injection
Impact
A flaw was found in dracut. A remote attacker on the adjacent network can exploit this vulnerability by providing specially crafted DHCP (Dynamic Host Configuration Protocol) options, such as a malicious hostname, to a system using dracut's legacy DHCP path. These options are improperly handled and written into temporary shell scripts without proper escaping, leading to command injection. This allows the attacker to achieve root code execution within the initramfs, potentially compromising the system's boot and network behavior.
Source excerpt · redhatWhat to do
To mitigate this issue, ensure that systems configured to obtain network settings via DHCP in the initramfs are only booted on trusted networks. This vulnerability requires an attacker to control a DHCP server on the adjacent network segment. If network configuration via DHCP is not strictly necessary during the initramfs phase, consider using static network configuration.
Affected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
Red Hat · Red Hat Enterprise Linux 10
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:107-7.el10_2 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 10.0 Extended Update Support
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:105-4.el10_0.1 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:004-413.el6_10 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 6 Extended Lifecycle Support - EXTENSION
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:004-414.el6_10 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 7 Extended Lifecycle Support
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:033-577.el7_9 to before * | unaffected |
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 Enterprise Linux 9
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:057-115.git20260527.el9_8 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 9
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:057-115.git20260527.el9_8 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:057-25.git20250717.el9_2.2 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:057-54.git20250423.el9_4.3 to before * | unaffected |
Red Hat · Red Hat Enterprise Linux 9.6 Extended Update Support
Other versions: affected
| Version / range | Source status |
|---|---|
| 0:057-89.git20250311.el9_6.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 OpenShift Container Platform 4.13
Other versions: affected
| Version / range | Source status |
|---|---|
| 413.92.202609080414-0 to before * | unaffected |
Red Hat · Red Hat OpenShift Container Platform 4.14
Other versions: affected
| Version / range | Source status |
|---|---|
| 414.92.202609011250-0 to before * | unaffected |
Red Hat · Red Hat OpenShift Container Platform 4.15
Other versions: affected
| Version / range | Source status |
|---|---|
| 415.92.202609140326-0 to before * | unaffected |
Red Hat · Red Hat OpenShift Container Platform 4.16
Other versions: affected
| Version / range | Source status |
|---|---|
| 416.94.202609011112-0 to before * | unaffected |
Red Hat · Red Hat OpenShift Container Platform 4.17
Other versions: affected
| Version / range | Source status |
|---|---|
| 417.94.202609191027-0 to before * | unaffected |
Red Hat · Red Hat OpenShift Container Platform 4.18
Other versions: affected
| Version / range | Source status |
|---|---|
| 418.94.202609031320-0 to before * | unaffected |
Red Hat · Red Hat OpenShift Container Platform 4.18
Other versions: affected
| Version / range | Source status |
|---|---|
| 418.94.202609171815-0 to before * | unaffected |
Red Hat · Red Hat OpenShift Container Platform 4.19
Other versions: affected
| Version / range | Source status |
|---|---|
| 4.19.9.6.202609021231-0 to before * | unaffected |
Red Hat · Red Hat Hardened Images
Other versions: affected
| Version / range | Source status |
|---|---|
| 109-6.hum1 to before * | unaffected |
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 (Dynamic Host Configuration Protocol) options, such as a malicious hostname, to a system using dracut's legacy DHCP path. These options are improperly handled and written into temporary shell scripts without proper escaping, leading to command injection. This allows the attacker to achieve root code execution within the initramfs, potentially compromising the system's boot and network behavior.
References
- Source reference access.redhat.com/errata/RHSA-2026:26532
- Source reference access.redhat.com/errata/RHSA-2026:26533
- Source reference access.redhat.com/errata/RHSA-2026:26534
- Source reference access.redhat.com/errata/RHSA-2026:26713
- Source reference access.redhat.com/errata/RHSA-2026:57580
- Source reference access.redhat.com/errata/RHSA-2026:57772
- Source reference access.redhat.com/errata/RHSA-2026:57775
- Source reference access.redhat.com/errata/RHSA-2026:57785
- Source reference access.redhat.com/errata/RHSA-2026:61252
- Source reference access.redhat.com/errata/RHSA-2026:62269
- Source reference access.redhat.com/errata/RHSA-2026:62409
- Source reference access.redhat.com/errata/RHSA-2026:62549
- Source reference access.redhat.com/errata/RHSA-2026:63044
- Source reference access.redhat.com/errata/RHSA-2026:65839
- Source reference access.redhat.com/errata/RHSA-2026:65851
- Source reference access.redhat.com/errata/RHSA-2026:67857
- 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:70586
- Source reference access.redhat.com/errata/RHSA-2026:70615
- Source reference access.redhat.com/errata/RHSA-2026:74499
- Source reference access.redhat.com/errata/RHSA-2026:79114
- Source reference access.redhat.com/errata/RHSA-2026:90272
- Security advisory access.redhat.com/security/cve/CVE-2026-6893
- Source reference bugzilla.redhat.com/show_bug.cgi