Use-after-free in Pillow - #VU158901
Published: November 3, 2026
Vulnerability details
The vulnerability allows a local user to cause writes to freed memory, which may result in a denial of service.
The vulnerability exists due to use-after-free in Pillow's libtiff encoder error handling when an in-memory TIFF encoding operation fails and subsequent cleanup flushes the TIFF after its output buffer has been freed. A local user can trigger an affected encoding failure to leave a live TIFF handle referencing freed output memory, allowing later cleanup to write into that memory and potentially crash the process.