CVE-2026-40494 SAIL has heap buffer overflow in TGA RLE decoder — raw packet path missing bounds check
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
- Technology
- UbuntuDebian
Description
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.
Upgrade path
6 packages: 1 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/sail(Debian 13) | = 0.9.8-1; = 0.9.8-1+deb13u1; = 0.9.9-1; = 0.9.10-1 +4 more | No fix listed | No fix yet |
| ubuntu/sail(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/sail(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/sail(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/sail(Debian 14) | < 0.9.10-2; = 0.9.8-1; = 0.9.9-1; = 0.9.10-1 | 0.9.10-2 | Fixed |
| HappySeaFox sail | = < 45d48d1f2e8e0d73e80bc1fd5310cb57f4547302 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| HappySeaFox sail | = < 45d48d1f2e8e0d73e80bc1fd5310cb57f4547302 | No fix listed |
| debian/sail(Debian:13) | All versions | No fix listed |
| debian/sail(Debian:13) | = 0.9.10-1 | No fix listed |
| debian/sail(Debian:13) | = 0.9.10-2 | No fix listed |
| debian/sail(Debian:13) | = 0.9.10-3 | No fix listed |
| debian/sail(Debian:13) | = 0.9.8-1 | No fix listed |
| debian/sail(Debian:13) | = 0.9.8-1+deb13u1 | No fix listed |
| debian/sail(Debian:13) | = 0.9.9-1 | No fix listed |
| debian/sail(Debian:13) | = 1.2.0-1 | No fix listed |
| debian/sail(Debian:14) | < 0.9.10-2 | 0.9.10-2 |
| debian/sail(Debian:14) | = 0.9.10-1 | No fix listed |
| debian/sail(Debian:14) | = 0.9.8-1 | No fix listed |
| debian/sail(Debian:14) | = 0.9.9-1 | No fix listed |
| ubuntu/sail(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/sail(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/sail(Ubuntu:26.10) | All versions | No fix listed |