USN-9301-1: OpenEXR vulnerabilities
It was discovered that OpenEXR incorrectly handled subsampled channels when compositing deep scan line images, leading to a heap-based buffer overflow. An attacker could possibly use this issue to cause OpenEXR to crash, resulting in a denial of service, or execute arbitrary code. This issue only affected Ubuntu 22.04 LTS. (CVE-2021-45942) It was discovered that OpenEXR did not properly validate the number of samples in deep scan line image files, leading to a heap-based buffer overflow. An attacker could possibly use this issue to cause OpenEXR to crash, resulting in a denial of service, or execute arbitrary code. This issue only affected Ubuntu 24.04 LTS. (CVE-2023-5841) It was discovered that OpenEXR incorrectly handled certain uncompressed tiled image files, leading to a heap-based buffer overflow. An attacker could possibly use this issue to cause OpenEXR to crash, resulting in a denial of service, or execute arbitrary code. This issue only affected Ubuntu 24.04 LTS and Ubuntu 26.04 LTS. (CVE-2025-12495) It was discovered that OpenEXR incorrectly calculated chunk sizes for scan line image files that had a tiles attribute, leading to a heap-based buffer overflow. An attacker could possibly use this issue to cause OpenEXR to crash, resulting in a denial of service, or execute arbitrary code. This issue only affected Ubuntu 24.04 LTS and Ubuntu 26.04 LTS. (CVE-2025-12839) It was discovered that OpenEXR had an integer overflow when resizing image channels, leading to a heap-based buffer overflow. An attacker could possibly use this issue to cause OpenEXR to crash, resulting in a denial of service, or execute arbitrary code. (CVE-2026-41142) It was discovered that OpenEXR incorrectly parsed certain ID manifest attributes. An attacker could possibly use these issues to cause a denial of service. These issues only affected Ubuntu 24.04 LTS and Ubuntu 26.04 LTS. (CVE-2026-42216, CVE-2026-42217) It was discovered that OpenEXR incorrectly calculated row coordinates when setting sample counts in deep images, leading to a heap-based buffer overflow. An attacker could possibly use this issue to cause OpenEXR to crash, resulting in a denial of service, or execute arbitrary code. (CVE-2026-55059) It was discovered that OpenEXR incorrectly handled very large sample counts in deep images. An attacker could possibly use this issue to cause OpenEXR to enter an infinite loop, resulting in a denial of service. (CVE-2026-55373) It was discovered that OpenEXR had an integer overflow when decoding certain deep tiled image files. An attacker could possibly use this issue to cause OpenEXR to crash, resulting in a denial of service. This issue only affected Ubuntu 24.04 LTS and Ubuntu 26.04 LTS. (CVE-2026-59183) It was discovered that OpenEXR incorrectly handled row access for flat images with a non-zero data window origin, leading to an out-of-bounds write. An attacker could possibly use this issue to cause OpenEXR to crash, resulting in a denial of service, or execute arbitrary code. (CVE-2026-59184) It was discovered that OpenEXR incorrectly calculated buffer sizes when reading certain tiled image files on 32-bit platforms, leading to a heap-based buffer overflow. An attacker could possibly use this issue to cause OpenEXR to crash, resulting in a denial of service, or execute arbitrary code. (CVE-2026-59186) It was discovered that OpenEXR incorrectly handled row access for deep images with a non-zero data window origin, leading to an out-of-bounds read. An attacker could possibly use these issues to cause OpenEXR to crash, resulting in a denial of service, or obtain sensitive information. (CVE-2026-59189, CVE-2026-59981, CVE-2026-59982) It was discovered that OpenEXR incorrectly calculated the size of the sample count table when decoding certain deep tiled image files on 32-bit platforms, leading to an out-of-bounds read. An attacker could possibly use this issue to cause OpenEXR to crash, resulting in a denial of service. This issue only affected Ubuntu 24.04 LTS and Ubuntu 26.04 LTS. (CVE-2026-59983) It was discovered that OpenEXR incorrectly calculated buffer sizes when decoding certain B44-compressed image files on 32-bit platforms, leading to a heap-based buffer overflow. An attacker could possibly use this issue to cause OpenEXR to crash, resulting in a denial of service, or execute arbitrary code. This issue only affected Ubuntu 24.04 LTS and Ubuntu 26.04 LTS. (CVE-2026-59984) It was discovered that OpenEXR incorrectly calculated buffer sizes when decoding certain RLE-compressed image files on 32-bit platforms, leading to an out-of-bounds read. An attacker could possibly use this issue to cause OpenEXR to crash, resulting in a denial of service. This issue only affected Ubuntu 24.04 LTS and Ubuntu 26.04 LTS. (CVE-2026-59985) It was discovered that OpenEXR incorrectly handled multi-part image files with an empty multiView attribute, leading to an out-of-bounds read. An attacker could possibly use this issue to cause OpenEXR to crash, resulting in a denial of service. (CVE-2026-61555) It was discovered that the exrmultiview tool in OpenEXR incorrectly handled certain input files with subsampled channels, leading to a heap-based buffer overflow. An attacker could possibly use this issue to cause exrmultiview to crash, resulting in a denial of service, or execute arbitrary code. (CVE-2026-68515)
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/libopenexr-3-1-30to a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/openexrto a version that resolves this vulnerability.Fixed in Ubuntu Pro - Upgrade
Upgrade
ubuntu/libopenexr25to a version that resolves this vulnerability.Fixed in Ubuntu Pro
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which Ubuntu releases are affected by the vulnerabilities described?
CVE-2021-45942 affects Ubuntu 22.04 LTS only. CVE-2023-5841 affects Ubuntu 24.04 LTS only, while CVE-2025-12495 affects Ubuntu 24.04 LTS and Ubuntu 26.04 LTS.
What kind of attacker-controlled input is required for exploitation?
An attacker would need to cause OpenEXR to process a specially crafted image file. The affected inputs include deep scan line images with subsampled channels, deep scan line files with invalid sample counts, and certain uncompressed tiled image files.
What is the practical impact if a vulnerable OpenEXR installation processes a malicious file?
The described flaws can cause a heap-based buffer overflow. This may allow a denial of service through a crash or potentially arbitrary code execution.