Ubuntu fixes Pillow denial-of-service flaws in USN-9064-1
Two disclosed issues can hang Pillow while parsing MIC images or nested PDF objects on several Ubuntu releases.
Infinite loop in Pillow MIC frame counting before 13.0.0
Pillow 7.2.0 through versions before 13.0.0 can loop forever while counting frames in a MIC image. MicImageFile reuses TIFF frame traversal, but tell() reports the OLE stream index and seek() resets TIFF state, so an embedded TIFF with at least three IFDs never advances. An unauthenticated attacker who gets an app that has olefile installed to read n_frames or save all frames of a crafted MIC file can pin a worker at full CPU. No confidentiality or integrity impact is described.
What to do: Upgrade Pillow to 13.0.0.
| Product | Affected | Fixed in |
|---|---|---|
| python pillow | 7.2.0 until 13.0.0 | 13.0.0 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Pillow is a Python imaging library. From 7.2.0 until 13.0.0, Pillow can enter an infinite loop while determining the frame count of a MIC image. MicImageFile inherits TIFF frame traversal, but MicImageFile.tell reports the OLE stream index and its seek() resets TIFF frame state, so an embedded TIFF with at least three IFDs never advances. When an application with olefile installed reads n_frames or saves all frames from a crafted MIC file, the non-advancing traversal can hold a worker at full CPU indefinitely. This issue is fixed in version 13.0.0.
Two disclosed issues can hang Pillow while parsing MIC images or nested PDF objects on several Ubuntu releases.
Resizing with the NEAREST filter, and any mode 1 or P image, failed after the earlier Pillow security fix.
Today 858 readers · 939 views · 92 reads · all time 215K views