REDHAT-BUG-2565263: Buffer Overflow
Netpbm before 10.86.51, 11.x before 11.02.30, and 11.03 before 11.15.08 contains a stack-based buffer overflow in the picttoppm paintPoly() function due to an unbounded polygon point count. Attackers can supply a crafted PICT file with a polygon exceeding 100 points to overwrite the fixed pts array, causing crashes or potentially code execution.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 10.86.51 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 11.02.30 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 11.15.08
Event History
Frequently Asked Questions
What level of access would an attacker need to exploit this issue?
An attacker needs a way to cause the picttoppm utility to process a crafted PICT file containing a polygon with more than 100 points.
What is the likely impact if exploitation succeeds?
The overflow can cause picttoppm to crash and may allow code execution by overwriting the fixed stack-based pts array.
Which Netpbm release ranges are affected?
Affected versions are Netpbm before 10.86.51, 11.x before 11.02.30, and 11.03 before 11.15.08.