CVE-2026-40492
Linux Debian vulnerability analysis and mitigation

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_per_line validation. Commit 36aa5c7ec8a2bb35f6fb867a1177a6f141156b02 contains a patch.


SourceNVD

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-40494CRITICAL9.8
  • Linux DebianLinux Debian
  • sail
NoNoApr 18, 2026
CVE-2026-40493CRITICAL9.8
  • Linux DebianLinux Debian
  • sail
NoNoApr 18, 2026
CVE-2026-40492CRITICAL9.8
  • Linux DebianLinux Debian
  • sail
NoNoApr 18, 2026
CVE-2026-40491MEDIUM6.5
  • PythonPython
  • gdown
NoYesApr 18, 2026
CVE-2026-41254MEDIUM4
  • Linux DebianLinux Debian
  • lcms2
NoNoApr 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management