Bug 2585456 (CVE-2026-137940)

Summary: CVE-2026-137940 pillow: pillow: Denial of Service via integer overflow in ImageMath division
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: alinfoot, anpicker, aprice, aruklets, bbrownin, bcaton, cmyers, dfreiber, dnakabaa, doconnor, drow, dtrifiro, ebourniv, ehelms, hasun, ilpinto, jburrell, jfula, jlanda, jmitchel, jowilson, jpasqual, jsamir, juwatts, kaycoth, kshier, lblicha, lcouzens, ltomasbo, mhayden, mhulan, mwoodson, nyancey, oezr, ogajduse, ometelka, osousa, ptisnovs, rbobbitt, rchan, rhel-process-autobot, sbunciak, sdoran, shudeshp, simaishi, smallamp, stcannon, syedriko, tguha, vkumar, watson-tool-maintainers, weaton, xdharmai, yguenane, ykashtan, zhunting
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in Pillow. This vulnerability allows an attacker to cause a Denial of Service (DoS) by providing a specially crafted image file, such as a TIFF image. When an application evaluates the image using ImageMath integer division or modulo operations, dividing the minimum signed 32-bit integer by negative one triggers an arithmetic overflow and hardware divide exception, crashing the application.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.