---
title: "CVE-2026-40494"
canonical_url: "https://pkgseek.com/security/CVE-2026-40494"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "critical"
---

# CVE-2026-40494

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.

CVE-2026-40494 严重级别为 CRITICAL (9.8)，共索引 9 条受影响软件包构建记录，涉及 1 个发行版。

- **级别 / 评分**: CRITICAL (9.8)
- **受影响构建数**: 9
- **涉及发行版**: 1
- **已标明修复版本发行版**: 暂无已标明修复记录

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | libsail0t64 | 0.9.8-1+deb13u1 | — |
| Debian | trixie | libsail-c++0t64 | 0.9.8-1+deb13u1 | — |
| Debian | trixie | libsail-c++-dev | 0.9.8-1+deb13u1 | — |
| Debian | trixie | libsail-common0t64 | 0.9.8-1+deb13u1 | — |
| Debian | trixie | libsail-common-dev | 0.9.8-1+deb13u1 | — |
| Debian | trixie | libsail-dev | 0.9.8-1+deb13u1 | — |
| Debian | trixie | libsail-manip0t64 | 0.9.8-1+deb13u1 | — |
| Debian | trixie | libsail-manip-dev | 0.9.8-1+deb13u1 | — |
| Debian | trixie | sail-codecs | 0.9.8-1+deb13u1 | — |
