CVE-2026-40469 Heap buffer overflow in gawk
MediumCVSS 5.1
EPSS 0.21%
- Published
- Updated
- Exploit status
- No public exploit known
Description
Integer overflow vulnerability has been found in "builtin.c" program file of gawk (do_sub() routine). This issue could be used to overwrite gawk heap metadata and objects causing the program to crash. It affects 32-bit builds of gawk in versions 5.4.0 and below.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| GNU gawk | <= 5.4.0 | No fix listed |
| redhat/gawk-main(Red Hat:hummingbird:1) | < 5.4.0-3.1.hum1 | 5.4.0-3.1.hum1 |
| redhat/gawk-main(Red Hat:hummingbird:1) | < 5.4.1-1.hum1 | 5.4.1-1.hum1 |
| redhat/gawk(Red Hat:rhel_els:6) | All versions | No fix listed |
| debian/gawk(Debian:12) | All versions | No fix listed |
| debian/gawk(Debian:12) | = 1:5.2.1-2 | No fix listed |
| debian/gawk(Debian:12) | = 1:5.3.2-1 | No fix listed |
| debian/gawk(Debian:13) | All versions | No fix listed |
| debian/gawk(Debian:13) | = 1:5.2.1-2 | No fix listed |
| debian/gawk(Debian:13) | = 1:5.3.2-1 | No fix listed |
| debian/gawk(Debian:14) | All versions | No fix listed |
| debian/gawk(Debian:14) | = 1:5.2.1-2 | No fix listed |
| debian/gawk(Debian:14) | = 1:5.3.2-1 | No fix listed |
| ubuntu/gawk(Ubuntu:22.04) | < 1:5.1.0-1ubuntu0.2 | 1:5.1.0-1ubuntu0.2 |
| ubuntu/gawk(Ubuntu:24.04) | < 1:5.2.1-2ubuntu0.1 | 1:5.2.1-2ubuntu0.1 |
| ubuntu/gawk(Ubuntu:26.04) | < 1:5.3.2-1ubuntu1.1 | 1:5.3.2-1ubuntu1.1 |
| fossies gawk | <= 5.4.0 | No fix listed |
References
- cgit.git.savannah.gnu.org patch
- cert.pl third-party-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:40041 patch vendor-advisory
- RHSA-2026:49661 patch vendor-advisory
- Red Hat Bugzilla 2499656 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-40469 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8588-1 vendor-advisory
- bugs.debian.org issue-tracking