linearize_page_tree
src/PIL/PdfParser.py
Last patched
Overview
linearize_page_tree in src/PIL/PdfParser.py (python-pillow/Pillow) was changed by 2 published CVE fixes in 2026, in 3 distinct patches that added or removed 38 lines in total.
python-pillow/Pillow has 110 CVEs with a located fix in total, so 2% of them touched this function.
CVEs that patched it
Every published CVE whose fix changed linearize_page_tree, newest first, with the lines each fix touched.
CVE-2026-96640 · lines 1086–1110 · +15 −3
High · CVSS 8.2EPSS 0.6%2026-10-21CVE-2026-112895 · lines 1088–1122 · +15 −5 in 3 hunks
High · CVSS 8.7EPSS 0.6%2026-10-19
Get an alert when the next CVE fix lands in python-pillow/Pillow, with the patched functions.
Monitor these CVEsOther functions in these files
Functions in the same file that CVE fixes also changed.
- 1next_object_idsrc/PIL/PdfParser.py2 patches · 2 CVEs2021 to 2026
- 2read_pdf_infosrc/PIL/PdfParser.py2 patches · 1 CVE2026
- 3read_prev_trailersrc/PIL/PdfParser.py2 patches · 1 CVE2026
- 4decodesrc/PIL/PdfParser.py2 patches · 1 CVE2026
- 5rewrite_pagessrc/PIL/PdfParser.py1 patch · 1 CVE2026
- 6get_valuesrc/PIL/PdfParser.py1 patch · 1 CVE2026
- 7__init__src/PIL/PdfParser.py1 patch · 1 CVE2026
- 8read_indirectsrc/PIL/PdfParser.py1 patch · 1 CVE2026
Other hotspots in the repository
Functions in python-pillow/Pillow changed by the most distinct patches.
Frequently asked questions
Common questions about CVE fixes to linearize_page_tree.
- How many CVEs have patched linearize_page_tree?
- 2 published CVEs changed linearize_page_tree in python-pillow/Pillow, in 3 distinct patches totalling 38 changed lines, between 2026 and 2026.
- What is the latest CVE that changed linearize_page_tree?
- CVE-2026-96640 (Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion), published 2026-10-21, changed lines 1086 to 1110 of src/PIL/PdfParser.py.
- How does linearize_page_tree compare to the rest of python-pillow/Pillow?
- python-pillow/Pillow has 110 CVEs with a located fix in total; 2 of them changed linearize_page_tree.
- What do the line numbers refer to?
- Line numbers are in the fixed version of the file, as the upstream patch left it. A CVE whose fix was backported to several branches is listed once, with the lines from the upstream commit.
References
- src/PIL/PdfParser.py on GitHub (opens in a new tab)
- All patched functions in python-pillow/Pillow
- Patched functions directory
Fix locations are computed by RadicalNotion.AI from the upstream patch diff of each CVE. CVE data is sourced from the CVE Program.
Track python-pillow/Pillow CVEs
Get an alert when a new CVE lands in this repository, with the patched functions and AI-written remediation guidance.