CVE-2026-6893

Summary

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.

Affected Software

VendorProductVersion RangeStatus
Red HatRed Hat Enterprise Linux 100:107-7.el10_2 < *unaffected
Red HatRed Hat Enterprise Linux 80:049-244.git20260529.el8_10 < *unaffected
Red HatRed Hat Enterprise Linux 90:057-115.git20260527.el9_8 < *unaffected
Red HatRed Hat Enterprise Linux 90:057-115.git20260527.el9_8 < *unaffected
Red HatRed Hat Hardened Images109-6.hum1 < *unaffected

Weaknesses

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Workarounds

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.

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: total

dracut: dracut: Root code execution via DHCP options command injection

Additional References

References