Skip to content
Heist/ feed
UnratedFix available

DEBIAN-CVE-2026-40493

Type: advisorySource: OSV1 source record

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 c930284445ea3ff94451ccd7a57c999eca3bc979 contains a patch.

Announced Source revision 1
Original source ↗

DEBIAN-CVE-2026-40493

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:DEBIAN-CVE-2026-40493

sail

Source reference: /affected/0/package/name

Affected versions
0.9.10-1

Source reference: /affected/0/versions

0.9.10-2

Source reference: /affected/0/versions

0.9.10-3

Source reference: /affected/0/versions

0.9.8-1

Source reference: /affected/0/versions

0.9.8-1+deb13u1

Source reference: /affected/0/versions

0.9.9-1

Source reference: /affected/0/versions

1.2.0-1

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

sail

Source reference: /affected/1/package/name

Affected versions
0.9.10-1

Source reference: /affected/1/versions

0.9.8-1

Source reference: /affected/1/versions

0.9.9-1

Source reference: /affected/1/versions

Fixed versions
0.9.10-2

Source reference: /affected/1/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "sail",
      "purl": "pkg:deb/debian/sail?arch=source&distro=trixie",
      "ecosystem": "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"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40493.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "0.9.10-2"
          }
        ]
      }
    ],
    "package": {
      "name": "sail",
      "purl": "pkg:deb/debian/sail?arch=source&distro=forky",
      "ecosystem": "Debian:14"
    },
    "versions": [
      "0.9.10-1",
      "0.9.8-1",
      "0.9.9-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40493.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#56439 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement