Description (CNA)
A flaw was found in GIMP's PNM file format parser. When parsing a specially crafted PNM file, the pnmscanner_gettoken() function writes a null terminator one byte past the end of a stack-allocated buffer due to an off-by-one error in the loop boundary check. This could lead to memory corruption, potentially resulting in denial of service or arbitrary code execution.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Red Hat / Red Hat Enterprise Linux 8 | unaffected 8100020260824165450.4c9c024f before * |
| Red Hat / Red Hat Enterprise Linux 9 | unaffected 2:3.0.4-4.el9_8.7 before * |
| Red Hat / Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | unaffected 2:2.99.8-4.el9_4.19 before * |
| Red Hat / Red Hat Enterprise Linux 9.6 Extended Update Support | unaffected 2:2.99.8-4.el9_6.20 before * |
| Red Hat / Red Hat Enterprise Linux 6 | unknown |
| Red Hat / Red Hat Enterprise Linux 7 | affected |
CWE
CWE-193
References
- https://access.redhat.com/errata/RHSA-2026:40751
- https://access.redhat.com/errata/RHSA-2026:62507
- https://access.redhat.com/errata/RHSA-2026:73768
- https://access.redhat.com/errata/RHSA-2026:80509
- https://access.redhat.com/security/cve/CVE-2026-58380
- https://bugzilla.redhat.com/show_bug.cgi?id=2496135
- https://gitlab.gnome.org/GNOME/gimp/-/commit/83699817
- https://gitlab.gnome.org/GNOME/gimp/-/issues/16206
ADP enrichment
No English description supplied.
No references supplied.