CVE-2026-40467: Use-after-free denial of service in GNU gawk do_getline_redir()
- Vendor
- Fossies
CVE-2026-40467 is a use-after-free vulnerability in the do_getline_redir() routine of GNU gawk, affecting versions 5.4.0 and earlier. The flaw occurs in redirected getline processing and may cause the gawk process to crash, resulting in denial of service.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation may terminate the affected gawk process and interrupt text-processing operations or workflows that depend on it. Arbitrary code execution, privilege escalation, and confidentiality or integrity impacts have not been established for this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Until fixed packages are deployed, limit untrusted users' ability to execute gawk locally and restrict processing of untrusted awk programs or inputs in automated workflows where feasible.
Remediation
Patch, then assume compromise.
Install vendor-patched gawk packages for the affected operating system. Available fixes include Red Hat Enterprise Linux 8 updates under RHSA-2026:73511, Alibaba Cloud Linux 3 updates under ALINUX3-SA-2026:0322, and applicable EulerOS, Unity Linux, and MiracleLinux security updates. Distribution fixes may be backported to older upstream versions, so verify the installed package against the applicable vendor advisory rather than relying solely on the upstream version number. A specific fixed upstream release is not identified.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-40467 exploited in the wild?
- As of Nov 7, 2026, Mallory has no reports of CVE-2026-40467 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-40467?
- As of Nov 7, 2026, Mallory has found no public exploit for CVE-2026-40467.
- Is there a patch for CVE-2026-40467?
- Install vendor-patched gawk packages for the affected operating system. Available fixes include Red Hat Enterprise Linux 8 updates under RHSA-2026:73511, Alibaba Cloud Linux 3 updates under ALINUX3-SA-2026:0322, and applicable EulerOS, Unity Linux, and MiracleLinux security updates.
- What products are affected by CVE-2026-40467?
- Fossies Gawk.
- How severe is CVE-2026-40467?
- CVE-2026-40467 has a CVSS v4 score of 5.1 (Medium) and an EPSS score of 0.21% (12th percentile) as of Nov 7, 2026.
Recent activity
61 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.