CVE-2026-16445
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 8 | 0:049-244.git20260529.el8_10 < * | unaffected |
Weaknesses
- CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Workarounds
Escape DHCP-derived values (root-path, next-server, dhcp-bootfile) with shell-safe quoting (for example printf '%q') before writing them to the generated dhcpopts file in modules.d/35network-manager/nm-run.sh. This approach is already used in dracut-057 and later, and is already present in the RHEL 8.10.z dracut-049-244.git20260529.el8_10 build.
References
- https://access.redhat.com/errata/RHSA-2026:26534
- https://access.redhat.com/security/cve/CVE-2026-16445
- https://bugzilla.redhat.com/show_bug.cgi?id=2459963
- https://bugzilla.redhat.com/show_bug.cgi?id=2503147
- https://github.com/dracutdevs/dracut/commit/e509c638e6
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.