CVE-2026-32882: libheif: Heap Buffer OOB Read in overlay compositing due to wrong alpha stride

Published May 19, 2026
·
Updated

Last updated 19 June 2026

Other sources

libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and prior contain a heap buffer over-read in HeifPixelImage::overlay() in libheif/pixelimage.cc. When compositing an overlay image (iovl) whose child image has a different bit depth for the alpha channel than for the color channels, the function indexes into the alpha plane using the color channel stride (instride) instead of the previously retrieved alphastride, causing reads past the end of the alpha buffer (up to 3,123 bytes for a 100×50 image with 10-bit color and 8-bit alpha). A crafted HEIF file can exploit this to cause a denial of service (crash) or potentially disclose adjacent heap memory through leaked bytes embedded in the decoded output pixels. This issue has been fixed in versionThis issue has been fixed in version 1.22.0.

— Launchpad

libheif: Heap Buffer OOB Read in overlay compositing due to wrong alpha stride

— Microsoft

Affected Software

11 affected componentsFixes available
libheif libheif<=1.21.2
ubuntu/libheif<1.1.0-2ubuntu0.1~esm3
1.1.0-2ubuntu0.1~esm3
ubuntu/libheif<1.6.1-1ubuntu0.1~esm3
1.6.1-1ubuntu0.1~esm3
ubuntu/libheif<1.12.0-2ubuntu0.1~esm3
1.12.0-2ubuntu0.1~esm3
ubuntu/libheif<1.17.6-1ubuntu4.4
1.17.6-1ubuntu4.4
ubuntu/libheif<1.20.2-1ubuntu0.4
1.20.2-1ubuntu0.4
ubuntu/libheif<1.21.2-3ubuntu0.1
1.21.2-3ubuntu0.1
debian/libheif<1.15.1-1+deb12u2
1.15.1-1+deb12u2
debian/libheif<1.19.8-1+deb13u1
1.19.8-1+deb13u1
debian/libheif<1.23.1-1
1.23.1-1
debian/libheif<=1.15.1-1+deb12u1
1.15.1-1+deb12u21.19.8-1+deb13u11.23.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/libheif to a version that resolves this vulnerability.

    Fixed in 1.1.0-2ubuntu0.1~esm3
  2. Upgrade

    Upgrade ubuntu/libheif to a version that resolves this vulnerability.

    Fixed in 1.6.1-1ubuntu0.1~esm3
  3. Upgrade

    Upgrade ubuntu/libheif to a version that resolves this vulnerability.

    Fixed in 1.12.0-2ubuntu0.1~esm3
  4. Upgrade

    Upgrade ubuntu/libheif to a version that resolves this vulnerability.

    Fixed in 1.17.6-1ubuntu4.4
  5. Upgrade

    Upgrade ubuntu/libheif to a version that resolves this vulnerability.

    Fixed in 1.20.2-1ubuntu0.4
  6. Upgrade

    Upgrade ubuntu/libheif to a version that resolves this vulnerability.

    Fixed in 1.21.2-3ubuntu0.1
  7. Upgrade

    Upgrade debian/libheif to a version that resolves this vulnerability.

    Fixed in 1.15.1-1+deb12u2
  8. Upgrade

    Upgrade debian/libheif to a version that resolves this vulnerability.

    Fixed in 1.19.8-1+deb13u1
  9. Upgrade

    Upgrade debian/libheif to a version that resolves this vulnerability.

    Fixed in 1.23.1-1
  10. Upgrade

    Upgrade debian/libheif to a version that resolves this vulnerability.

    Fixed in 1.15.1-1+deb12u2Fixed in 1.19.8-1+deb13u1Fixed in 1.23.1-1
  11. Upgrade

    Upgrade libheif to a version that resolves this vulnerability.

    Fixed in 1.22.0

Event History

May 19, 2026
CVE Published
via MITRE·08:07 PM
Data Sourced
via MITRE·08:07 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·09:01 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·09:16 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·09:16 PM
DescriptionSeverityWeakness
Jun 30, 2026
Updated
via NVD·03:18 AM
SeverityWeakness
Sep 19, 2026
News Published
via The Hacker News·06:36 PM
Sep 21, 2026
News Published
via The Hacker News·02:24 PM
Nov 17, 2026
Data Sourced
via Microsoft·06:54 AM
DescriptionSeverityWeakness

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the risk level of CVE-2026-32882?

CVE-2026-32882 has a risk level of 47, indicating a significant potential impact.

2

What is the severity rating of CVE-2026-32882?

CVE-2026-32882 has a high severity rating of 7.1 on the CVSS scale.

3

How do I fix CVE-2026-32882?

To mitigate CVE-2026-32882, upgrade to libheif version 1.22.0 or later.

4

What type of vulnerability is CVE-2026-32882?

CVE-2026-32882 is classified as a heap buffer out-of-bounds read vulnerability.

5

What can be affected by CVE-2026-32882?

CVE-2026-32882 affects versions of libheif prior to 1.22.0, specifically during overlay compositing functions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203