Skip to content
OpenAdvisories
Low · 2.1 CVE-2026-40468 EUVD-2026-43493GHSA-c5xj-c73w-hcgm

Heap buffer overflow in gawk

Published Jul 13, 2026 · Updated Jul 13, 2026 · Assigned by CERT-PL

Description

Integer overflow vulnerability has been found in "builtin.c" program file of gawk. This issue may lead to memory exhaustion on the hosting operating system and could be used to overwrite gawk heap metadata and objects with attacker-controlled bytes. It affects gawk in versions 5.4.0 and below.

Affected products

VendorProductAffectedFixed
GNU gawk ≤ 5.4.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 gawk No fix yet —
Debian 13 gawk No fix yet —
Debian 12 gawk No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS gawk 1:5.3.2-1ubuntu1.1 USN-8588-1
Ubuntu 24.04 LTS gawk 1:5.2.1-2ubuntu0.1 USN-8588-1
Ubuntu 22.04 LTS gawk 1:5.1.0-1ubuntu0.2 USN-8588-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS gawk 1:5.0.1+dfsg-1ubuntu0.1+esm1 USN-8588-1
Ubuntu Pro 18.04 LTS gawk 1:4.1.4+dfsg-1ubuntu0.1~esm2 USN-8588-1
Ubuntu Pro 16.04 LTS gawk 1:4.1.3+dfsg-0.1ubuntu0.1~esm2 USN-8588-1
Ubuntu Pro 14.04 LTS gawk 1:4.0.1+dfsg-2.1ubuntu2+esm2 USN-8588-1
ReleasePackageFixed inAdvisory
RHEL 10 gawk +1 5.3.0-6.el10_2.1 RHSA-2026:73429
RHEL 9 gawk +1 5.1.0-6.el9_8.1 RHSA-2026:73512
RHEL 8 gawk 4.2.1-5.el8_10 RHSA-2026:73511
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 gawk +3 5.4.0-3.1.hum1 RHSA-2026:49661, RHSA-2026:40041

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 gawk +1 5.3.0-6.el10_2.1 ALSA-2026:73429
AlmaLinux 9 gawk +1 5.1.0-6.el9_8.1 ALSA-2026:73512
AlmaLinux 8 gawk 4.2.1-5.el8_10 ALSA-2026:73511

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 gawk 5.3.0-6.el10_2.1 RLSA-2026:73429
Rocky Linux 9 gawk 5.1.0-6.el9_8.1 RLSA-2026:73512
Rocky Linux 8 gawk 4.2.1-5.el8_10 RLSA-2026:73511
ReleasePackageFixed inAdvisory
SLES 15 SP7 gawk 4.2.1-150000.3.6.1 SUSE-SU-2026:3455-1
SLES 12 SP5 gawk 4.1.0-5.6.1 SUSE-SU-2026:3211-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 gawk 5.3.2-160000.3.1 SUSE-SU-2026:22831-1
SLES 16.0 gawk 5.3.2-160000.3.1 SUSE-SU-2026:22831-1
SLE Micro 6.2 gawk 5.3.2-160000.3.1 SUSE-SU-2026:22767-1
SLE Micro 6.0 gawk 5.3.0-2.1 SUSE-SU-2026:23042-1
SLE Micro 5.5 gawk 4.2.1-150000.3.6.1 SUSE-SU-2026:3455-1
SLE Micro 5.4 gawk 4.2.1-150000.3.6.1 SUSE-SU-2026:3455-1
SLE Micro 5.3 gawk 4.2.1-150000.3.6.1 SUSE-SU-2026:3455-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 gawk 5.3.2-160000.3.1 openSUSE-SU-2026:21393-1

Advisories 19

References