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

# CVE-2026-40492

SAIL is a cross-platform library for loading and saving images with support for animation, metadata, and ICC profiles. Prior to commit 36aa5c7ec8a2bb35f6fb867a1177a6f141156b02, the XWD codec resolves pixel format based on \`pixmap_depth\` but the byte-swap code uses \`bits_per_pixel\` independently. When \`pixmap_depth=8\` (BPP8_INDEXED, 1 byte/pixel buffer) but \`bits_per_pixel=32\`, the byte-swap loop accesses memory as \`uint32_t*\`, reading/writing 4x the allocated buffer size. This is a different vulnerability from the previously reported GHSA-3g38-x2pj-mv55 (CVE-2026-27168), which addressed \`bytes…

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