REDHAT-BUG-2496166: Medium severity GIMP GIMP vulnerability

Published Jul 1, 2026
·
Updated

A double-free vulnerability exists in GIMP's Paint Shop Pro (PSP) file format parser. In readlayerblock() in file-psp.c, the variable name is allocated, used, and freed each loop iteration. On the error path in the 2nd iteration, fread fails before gmalloc for name, so the stale pointer from iteration 1 is freed again via gfree(name).

- Function: readlayerblock() - File: plug-ins/common/file-psp.c:1908-2321 - Fix: https://gitlab.gnome.org/GNOME/gimp/-/commit/b22e147b - Upstream issue: https://gitlab.gnome.org/GNOME/gimp/-/issues/16207 - Acknowledgment: bb1abu

Affected Software

1 affected component
GIMP GIMP

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade GIMP (plug-ins/common/file-psp.c) to a version that resolves this vulnerability.

    Patch b22e147b
  2. Compensating control

    If you cannot immediately apply the upstream fix (commit b22e147b), mitigate by disabling or restricting opening of Paint Shop Pro (PSP) format files until patched.

Event History

Jul 1, 2026
Data Sourced
via Red Hat·08:22 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2496166?

REDHAT-BUG-2496166 has a medium severity rating of 4.

2

How do I fix REDHAT-BUG-2496166?

Fixing REDHAT-BUG-2496166 requires updating to the latest version of GIMP where this vulnerability has been addressed.

3

What does REDHAT-BUG-2496166 impact?

REDHAT-BUG-2496166 impacts the Paint Shop Pro (PSP) file format parser in GIMP.

4

What type of vulnerability is REDHAT-BUG-2496166?

REDHAT-BUG-2496166 is a double-free vulnerability.

5

When was REDHAT-BUG-2496166 published?

REDHAT-BUG-2496166 was published on July 1, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203