Bug 2585456 (CVE-2026-137940) - CVE-2026-137940 pillow: pillow: Denial of Service via integer overflow in ImageMath division
Summary: CVE-2026-137940 pillow: pillow: Denial of Service via integer overflow in Ima...
Keywords:
Status: NEW
Alias: CVE-2026-137940
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-27 13:51 UTC by OSIDB Bzimport
Modified: 2026-11-27 14:03 UTC (History)
56 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-27 13:51:37 UTC
Pillow through 13.1.0 contains an integer overflow in the ImageMath integer divide and modulo operators (DIV_I and MOD_I in src/_imagingmath.c), which guard only against a zero divisor, so dividing INT32_MIN by -1 raises a hardware divide exception. Attackers can supply a crafted TIFF that decodes to a mode I image containing INT32_MIN, crashing applications that run an ImageMath divide or modulo with a -1 operand on it.


Note You need to log in before you can comment on or make changes to this bug.