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

# CVE-2026-40493

SAIL is a cross-platform library for loading and saving images with support for animation, metadata, and ICC profiles. Prior to commit c930284445ea3ff94451ccd7a57c999eca3bc979, the PSD codec computes bytes-per-pixel (\`bpp\`) from raw header fields \`channels * depth\`, but the pixel buffer is allocated based on the resolved pixel format. For LAB mode with \`channels=3, depth=16\`, \`bpp = (3*16+7)/8 = 6\`, but the format \`BPP40_CIE_LAB\` allocates only 5 bytes per pixel. Every pixel write overshoots, causing a deterministic heap buffer overflow on every row. Commit c930284445ea3ff94451ccd7a57c999eca3b…

CVE-2026-40493 严重级别为 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 | — |
