Skip to content
Heist/ feed
Back to feed
UnratedFix available

gawk: Fix of 3 CVEs

Type: advisorySources: OSV

- CVE-2026-40467: fix use-after-free in do_getline_redir() in io.c (redir_exp dereferenced after being freed) - CVE-2026-40553: fix stack buffer overflow in ftype() in the readdir extension (unbounded path concatenation before stat()) - CVE-2026-40469: fix integer overflow in do_sub() in builtin.c (64-bit overflow check on the result-buffer size prevents heap corruption in sub/gsub/gensub replacement expansion on 32-bit builds)

Products
gawk, gawk-all-langpacks, gawk-devel, gawk-doc
Affected versions
Not specified
Fixed versions
5.1.0-6.el9.tuxcare.els2
CVEs
CVE-2026-40467, CVE-2026-40469, CVE-2026-40553
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 11:50 UTC · Revision 1

Source evidence

gawk: Fix of 3 CVEs

core-osv · Original source

Published 16 Jul 2026, 15:53 UTC

- CVE-2026-40467: fix use-after-free in do_getline_redir() in io.c (redir_exp dereferenced after being freed) - CVE-2026-40553: fix stack buffer overflow in ftype() in the readdir extension (unbounded path concatenation before stat()) - CVE-2026-40469: fix integer overflow in do_sub() in builtin.c (64-bit overflow check on the result-buffer size prevents heap corruption in sub/gsub/gensub replacement expansion on 32-bit builds)

osv:CLSA-2026-1784217178

gawk

Fixed versions: 5.1.0-6.el9.tuxcare.els2

gawk-all-langpacks

Fixed versions: 5.1.0-6.el9.tuxcare.els2

gawk-devel

Fixed versions: 5.1.0-6.el9.tuxcare.els2

gawk-doc

Fixed versions: 5.1.0-6.el9.tuxcare.els2

Complete source record
{
  "id": "918fba4f3b5b2fbafd745371a62faeaf8f56907823b1970ec138cb75fe1c71d2",
  "url": "https://osv.dev/vulnerability/CLSA-2026-1784217178",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "gawk: Fix of 3 CVEs",
    "summary": "- CVE-2026-40467: fix use-after-free in do_getline_redir() in io.c (redir_exp dereferenced after being freed) - CVE-2026-40553: fix stack buffer overflow in ftype() in the readdir extension (unbounded path concatenation before stat()) - CVE-2026-40469: fix integer overflow in do_sub() in builtin.c (64-bit overflow check on the result-buffer size prevents heap corruption in sub/gsub/gensub replacement expansion on 32-bit builds)",
    "evidence": "osv:CLSA-2026-1784217178",
    "products": [
      {
        "name": {
          "value": "gawk",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.1.0-6.el9.tuxcare.els2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gawk-all-langpacks",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.1.0-6.el9.tuxcare.els2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gawk-devel",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.1.0-6.el9.tuxcare.els2",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "gawk-doc",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.1.0-6.el9.tuxcare.els2",
            "evidence": "/affected/3/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CLSA-2026-1784217178",
      "aliases": [
        "CLSA-2026-1784217178"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.1.0-6.el9.tuxcare.els2"
                }
              ]
            }
          ],
          "package": {
            "name": "gawk",
            "purl": "pkg:rpm/tuxcare/gawk?distro=almalinux-9.6",
            "ecosystem": "TuxCare:AlmaLinux:9.6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.6esu/CLSA-2026-1784217178.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.1.0-6.el9.tuxcare.els2"
                }
              ]
            }
          ],
          "package": {
            "name": "gawk-all-langpacks",
            "purl": "pkg:rpm/tuxcare/gawk-all-langpacks?distro=almalinux-9.6",
            "ecosystem": "TuxCare:AlmaLinux:9.6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.6esu/CLSA-2026-1784217178.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.1.0-6.el9.tuxcare.els2"
                }
              ]
            }
          ],
          "package": {
            "name": "gawk-devel",
            "purl": "pkg:rpm/tuxcare/gawk-devel?distro=almalinux-9.6",
            "ecosystem": "TuxCare:AlmaLinux:9.6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.6esu/CLSA-2026-1784217178.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.1.0-6.el9.tuxcare.els2"
                }
              ]
            }
          ],
          "package": {
            "name": "gawk-doc",
            "purl": "pkg:rpm/tuxcare/gawk-doc?distro=almalinux-9.6",
            "ecosystem": "TuxCare:AlmaLinux:9.6"
          },
          "database_specific": {
            "source": "https://github.com/cloudlinux/tuxcare-osv/tree/main/data/els_os/almalinux9.6esu/CLSA-2026-1784217178.json"
          }
        }
      ],
      "modified": "2026-10-26T09:43:34.326945210Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-40467",
        "CVE-2026-40469",
        "CVE-2026-40553"
      ],
      "references": [
        "https://errata.tuxcare.com/els_os/tuxcare9.6esu/CLSA-2026-1784217178.html",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-40467",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-40469",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-40553"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-40467",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2026-40469",
        "evidence": "/upstream"
      },
      {
        "value": "CVE-2026-40553",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 449995,
  "published_at": "2026-07-16T15:53:25+00:00"
}