CVE-2026-40494
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 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.


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