# Ubuntu releases Pillow update to fix regression and multiple security vulnerabilities

> **Key takeaway:** Ubuntu has issued a corrective update for the Pillow Python Imaging Library to resolve a functional regression and a wide array of security vulnerabilities including heap overflows and denial of service flaws.

**Published:** 2026-11-16T18:07:22+00:00 
**Source:** Ubuntu Security &amp; Release Notices 
**Category:** distro-news 
**Canonical URL:** https://fosswire.org/news/ubuntu-releases-pillow-update-to-fix-regression-and-multiple.html 

## Summary
Ubuntu has released USN-9064-2 to address a functional regression introduced in a previous security patch for the Pillow Python Imaging Library. The previous fix for CVE-2026-112402 inadvertently broke image resizing operations when using the NEAREST filter or when processing images in "1" or "P" modes.

This update restores proper functionality while maintaining protections against a significant list of vulnerabilities. These security flaws include heap buffer overflows, use-after-free errors, and infinite loops across various file formats such as TIFF, JPEG, GIF, and PDF. The update affects multiple Ubuntu releases, including Ubuntu 26.10, 26.04 LTS, 24.04 LTS, and 22.04 LTS.

## Technical breakdown of Pillow vulnerabilities and fixes
- **Regression Fix:** Resolves a failure in the resizing logic specifically affecting the NEAREST filter and "1" (1-bit pixels) or "P" (palette) mode images.
- **Memory Safety Issues:** Addresses several critical flaws including a heap buffer overflow in _tiffWriteProc, a heap use-after-free during TIFF encoding, and a FlashPix JPEG-tile decoder vulnerability that could allow arbitrary code execution.
- **Denial of Service (DoS) Mitigations:** Fixes multiple DoS vectors, such as infinite loops in MIC frame counting and PDF page rewriting, as well as memory exhaustion risks in APNG and GIF processing.
- **Buffer Overread/Overflows:** Patches vulnerabilities in P;2L and P;4L raw decoders, tiled-TIFF decoders, and JPEG decoders that allowed reading or writing beyond allocated memory buffers.

## Why it matters
Because Pillow is a fundamental library for image processing in Python, these vulnerabilities pose risks to any Linux-based web server or desktop application handling untrusted media. System administrators and developers using Ubuntu 22.04 through 26.10 should apply this update immediately to ensure both security and functional stability for image-dependent workflows.