CVE-2026-40494
CVE-2026-40494 · SAIL has heap buffer overflow in TGA RLE decoder — raw packet path missing bounds check
This page contains facts from public vulnerability sources. Check the original advisory before updating.
SAIL is a cross-platform library for loading and saving images with support for animation, metadata, and ICC profiles. Prior to commit 45d48d1f2e8e0d73e80bc1fd5310cb57f4547302, the TGA codec's RLE decoder in `tga.c` has an asymmetric bounds check vulnerability. The run-packet path (line 297) correctly clamps the repeat count to the remaining buffer space, but the raw-packet path (line 305-311) has no equivalent bounds check. This allows writing up to 496 bytes of attacker-controlled data past the end of a heap buffer. Commit 45d48d1f2e8e0d73e80bc1fd5310cb57f4547302 patches the issue.
CVSS 9.8 · Critical · EPSS 0.3% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
sail
- Versions
- < 45d48d1f2e8e0d73e80bc1fd5310cb57f4547302: Affected
No fix published
sail Debian:13
- Versions
- 0.9.10-1
- 0.9.10-2
- 0.9.10-3
- 0.9.8-1
- 0.9.8-1+deb13u1
- 0.9.9-1
- 1.2.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
sail Debian:14
- Versions
- 0.9.10-1
- 0.9.8-1
- 0.9.9-1
- Affected ranges
- ECOSYSTEM: < 0.9.10-2
Update to 0.9.10-2
sail Ubuntu:24.04:LTS
- Versions
- 0.9.0+repack-1
- 0.9.0+repack-2
- 0.9.0+repack-2.1
- 0.9.0+repack-2.1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
sail Ubuntu:25.10
- Versions
- 0.9.7-1build1
- 0.9.8-1
- 0.9.9-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
sail Ubuntu:26.10
- Versions
- 0.9.10-1
- 0.9.10-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
sail Ubuntu:26.04:LTS
- Versions
- 0.9.9-1
- 0.9.10-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published