Skip to content
OpenAdvisories
Medium · 5.1 CVE-2026-40467 EUVD-2026-43492GHSA-wj49-xjpv-3f4m

Use after free in gawk

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

Description

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.

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
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

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 gawk +3 5.1.0-3.amzn2023.0.4 ALAS2023-2026-2035

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 gawk 5.2.2-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 gawk +1 5.3.0-6.el10_2.1 ELSA-2026-73429
Oracle Linux 9 gawk +1 5.1.0-6.el9_8.1 ELSA-2026-73512
Oracle Linux 8 gawk 4.2.1-5.el8_10 ELSA-2026-73511

Advisories 22

References