# CVE-2026-40467: Use after free in gawk

- Priority: **Routine**
- Reason: Not severe (CVSS 5.1, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-13 · Modified: 2026-07-13
- Aliases: UBUNTU-CVE-2026-40467, DEBIAN-CVE-2026-40467
- Record: https://cvemate.com/vulnerability/CVE-2026-40467 · JSON: https://cvemate.com/vulnerability/CVE-2026-40467/json

## Description

```text
Use After Free vulnerability has been found in "io.c" program file of gawk (do_getline_redir() routine). This issue may lead to a crash. It affects gawk in versions 5.4.0 and below.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.213%, percentile 12.354%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian gawk (Debian): All versions (No fix recorded)
- ubuntu gawk (Ubuntu): \< 1:4.0.1+dfsg-2.1ubuntu2+esm2 \| \< 1:4.1.3+dfsg-0.1ubuntu0.1~esm2 \| \< 1:4.1.4+dfsg-1ubuntu0.1~esm2 \| \< 1:5.0.1+dfsg-1ubuntu0.1+esm1 \| \< 1:5.1.0-1ubuntu0.2 \| \< 1:5.2.1-2ubuntu0.1 \| \< 1:5.3.2-1ubuntu1.1
- fossies gawk: ≤ 5.4.0
- gnu gawk: ≤ 5.4.0

## References

- <https://cgit.git.savannah.gnu.org/cgit/gawk.git/commit/?id=a2d18c74109e41bec29a23098eba2e00057286d8>
- <https://cert.pl/en/posts/2026/07/CVE-2026-40467>
- <https://ubuntu.com/security/CVE-2026-40467>
- <https://www.cve.org/CVERecord?id=CVE-2026-40467>
- <https://ubuntu.com/security/notices/USN-8588-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-40467>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40467>

---

Data as of 2026-12-05T03:12:50.225Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
