SB2026112242 - Anolis OS update for python-pillow
Published: November 22, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 11 vulnerabilities.
1) Use-after-free (CVE-ID: CVE-2026-112396)
CWE-ID: CWE-416 - Use After Free
CVSSv4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by crashing an application that encodes untrusted images as TIFF in memory.
The vulnerability exists due to a heap use-after-free in Pillow's libtiff encoder when an encoding failure frees the output buffer without closing the TIFF handle, allowing cleanup to write into freed memory. A remote attacker can cause an application to re-encode attacker-influenced images with a rejected tag, such as the floating-point Predictor value 3 on integer sample data, to cause a denial of service.
2) Out-of-bounds write (CVE-ID: CVE-2026-112397)
CWE-ID: CWE-787 - Out-of-bounds write
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service and potentially corrupt memory.
The vulnerability exists due to an out-of-bounds write in Pillow's native _imagingmorph component when performing morphology operations on a zero-width image. A remote attacker can supply a crafted PPM or PGM file declaring a width of 0 that, when processed by ImageMorph.MorphOp.apply(), causes the unchecked assignment outrow[0] = outrow[width - 1] = 0; to write outside the row buffer and crash the process.
3) Infinite loop (CVE-ID: CVE-2026-112406)
CWE-ID: CWE-835 - Loop with Unreachable Exit Condition ('Infinite Loop')
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by hanging a PDF append worker indefinitely.
The vulnerability exists due to missing cycle detection in Pillow's PdfParser.rewrite_pages() when traversing page-tree parent references during a PDF append operation. A remote attacker can supply a specially crafted PDF to an application that appends pages to it to trigger an infinite loop that occupies one CPU core.
4) Improper handling of highly compressed data (CVE-ID: CVE-2026-112892)
CWE-ID: CWE-409 - Improper Handling of Highly Compressed Data (Data Amplification)
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service through memory exhaustion.
The vulnerability exists due to uncontrolled expansion of run-length encoded data in Pillow's MSP RLE decoder when loading image pixels. A remote attacker can supply a small crafted MSP image that expands into an unbounded io.BytesIO buffer without a limit tied to the declared image size to exhaust application memory and cause a denial of service.
5) Inefficient Algorithmic Complexity (CVE-ID: CVE-2026-112894)
CWE-ID: CWE-407 - Inefficient Algorithmic Complexity
CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by consuming excessive CPU time in an image-to-PDF conversion worker.
The vulnerability exists due to quadratic-time object ID allocation in Pillow's PDF writer when saving all frames as a multi-page PDF, because the allocator rebuilds and scans the set of reserved IDs for each new ID. A remote attacker can submit an image for multi-page PDF conversion to trigger excessive processing based on its actual or declared frame count.
6) Out-of-bounds read (CVE-ID: CVE-2026-112896)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to trigger an out-of-bounds heap read that can terminate the process and may expose process memory.
The vulnerability exists due to an out-of-bounds read in Pillow's libtiff-backed TIFF encoder when saving an image with retained ColorMap metadata whose plane size is inconsistent with the sample depth. A remote attacker can supply a crafted 16-bit TIFF containing 768 SHORT ColorMap values that an application loads and saves with the relevant metadata retained to trigger a 131072-byte read from a plane pointer within a 1536-byte allocation, potentially terminating the process or exposing process memory during encoding.
7) Use of uninitialized resource (CVE-ID: CVE-2026-114501)
CWE-ID: CWE-908 - Use of Uninitialized Resource
CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to disclose stale heap contents, potentially including pixels from other users' images.
The vulnerability exists due to use of uninitialized heap memory in Pillow's Arrow export functionality when exporting an image whose aligned memory layout is incorrectly treated as tightly packed pixel data. A remote attacker can submit an image for Arrow export to obtain padding bytes and potentially bytes preceding the first image row, disclosing data left in heap memory.
8) Resource exhaustion (CVE-ID: CVE-2026-96637)
CWE-ID: CWE-400 - Resource exhaustion
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service through excessive memory allocation.
The vulnerability exists due to a missing decompression bomb check in Pillow's SpiderImagePlugin when seeking to another frame in a SPIDER stack file. A remote attacker can supply a crafted file containing oversized frame dimensions that are accepted during seek() and used for memory allocation during load() to exhaust memory and cause a denial of service.
9) Inefficient Algorithmic Complexity (CVE-ID: CVE-2026-96640)
CWE-ID: CWE-407 - Inefficient Algorithmic Complexity
CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service by exhausting CPU resources.
The vulnerability exists due to inefficient algorithmic complexity in Pillow's PDF page-tree traversal, which processes shared page-tree nodes repeatedly when appending an image to an existing PDF. A remote attacker can supply a malformed PDF to an application that uses Pillow to append an image to the file, causing excessive CPU consumption during page-tree traversal and rewriting.
10) Integer overflow (CVE-ID: CVE-2026-96641)
CWE-ID: CWE-190 - Integer overflow
CVSSv4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to potentially cause a denial of service.
The vulnerability exists due to signed integer overflow in Pillow's native text-width calculation in src/_imaging.c when accumulating negative glyph advances without checking the lower integer bound. A remote attacker can induce a user to process a crafted PILfont bitmap font and text containing 65,537 repetitions of a glyph with an advance of -32768 to trigger undefined behavior, produce an incorrect width, and potentially cause a denial of service through subsequent resource consumption.
11) Heap-based buffer overflow (CVE-ID: CVE-2026-96778)
CWE-ID: CWE-122 - Heap-based Buffer Overflow
CVSSv4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service and potentially execute arbitrary code.
The vulnerability exists due to a heap-based buffer overflow in ImagingJpegEncode() in src/libImaging/JpegEncode.c when writing a JPEG comment after image metadata exactly fills the encoder output buffer. A remote attacker can supply a crafted JPEG or PNG containing an ICC profile and a comment to an application that re-encodes the image as JPEG while preserving the profile, causing the unchecked comment write to wrap the remaining-space counter and overwrite heap memory with comment bytes and compressed image data to terminate the process or potentially execute arbitrary code.
The demonstrated code-execution chains required knowledge of library base addresses.
Remediation
Install update from vendor's website.