On this page (7 sections)

Ubuntu has published USN-8846-2 on 24 November 2026, a follow-up to USN-8846-1, with libheif fixes for Ubuntu 22.04 LTS and 24.04 LTS. libheif is a library that decodes and encodes HEIF and AVIF images. Ubuntu summarizes the impact as libheif being able to "consume resources or crash" when it receives specially crafted input.

If your server or application processes image uploads, generates thumbnails, or links against libheif in any other way, this update is relevant to you. The weaknesses described are denial-of-service problems, not code execution.

What was fixed

USN-8846-1 fixed a group of libheif vulnerabilities. USN-8846-2 provides the matching fix for CVE-2026-84447 on Ubuntu 22.04 LTS and 24.04 LTS. The original advisory text credits Yuqi Qiu and Xiang Li with discovering the first three issues below, and Ubuntu says a remote attacker could possibly use them to cause a denial of service.

libheif issues named in USN-8846-2 and the CVE records
CVEWeakness (CWE)What goes wrongUbuntu releases affected, per notice
CVE-2026-84447CWE-770Crafted grid, iovl and iden reference graphs make the same base image decode repeatedlyUbuntu 26.04 LTS (notice text); this update covers 22.04 and 24.04
CVE-2026-84384CWE-409Crafted compressed metadata can make decompression output grow without an effective limit24.04 LTS and 26.04 LTS
CVE-2026-84446CWE-835Crafted sequence timing data causes non-terminating decode loops26.04 LTS only

The notice also lists CVE-2026-84448 (region masks, described by Ubuntu as possibly leading to information disclosure or denial of service for a local attacker) and CVE-2026-84449 (certain images, remote denial of service). The research contains no CVE records for these two, so details beyond Ubuntu's one-line descriptions are not confirmed here.

The notice text is not fully consistent. It says this update provides the fix for CVE-2026-84447 on 22.04 and 24.04, yet also says that issue only affected 26.04. Check the notice and your own package version rather than relying on the summary line.

Technical background in plain terms

All three CVE records describe resource exhaustion from small, malformed files. The upstream advisories explain the mechanics.

  • CVE-2026-84447: the decoder tracks which images it has already processed per branch rather than globally, and has no shared work budget. A file whose references fan out can force the same base image to be decoded again and again.
  • CVE-2026-84384: for libheif 1.19.0 until 1.23.2, the brotli and zlib decompression paths have no effective output limit or memory accounting, and overlapping units can decompress the same payload repeatedly. A small file can consume unbounded memory and terminate the process.
  • CVE-2026-84446: timing and edit-list data in a sequence can produce an output sample count that overflows a 32-bit counter, so a loop never ends. It also bypasses the max_sequence_frames limit and allocates memory outside accounting, causing heavy CPU and memory use.

The common theme is missing limits on how much work or memory a single file may demand. The practical result is a crashed or stalled process, for example an image worker or a web application that opens the file.

Who is realistically exposed

Exposure depends on whether untrusted HEIF or AVIF files reach libheif. Typical cases include:

  • Websites and apps that accept image uploads and convert or thumbnail them on the server.
  • Desktop-style components such as heif-thumbnailer and the heif-gdk-pixbuf loader, which are part of the affected package set.
  • Image processing services or media libraries that link against libheif indirectly.
  • Shared hosting or multi-tenant servers where one user's upload could stall a shared worker.

A server that never opens HEIF or AVIF content has little practical exposure, though updating is still sensible.

How to check your version

On Ubuntu, list the installed libheif packages and their versions. Compare the result with the fixed versions in the table below.

List installed libheif packages and versions (Ubuntu)Shell
dpkg -l | grep -i heif
Fixed package versions from USN-8846-2
Ubuntu releasePackage versionsNotes
24.04 LTS (noble)1.17.6-1ubuntu4.10 for libheif1, libheif-dev, heif-thumbnailer, heif-gdk-pixbuf and the libheif-plugin-* packagesStandard update
22.04 LTS (jammy)1.12.0-2ubuntu0.1~esm6 for libheif1, libheif-dev, heif-thumbnailer, heif-gdk-pixbufFix available via Ubuntu Pro (ESM Apps)

If you build libheif from source or bundle it in a container image or application, the system package manager will not update it. Check for upstream version 1.23.2 or later instead.

What to do now

Ubuntu says a standard system update makes the necessary changes. This command refreshes package lists and upgrades only the libheif library package; expect it to report libheif1 moving to the fixed version.

Update the libheif library (Ubuntu 22.04 and 24.04)Shell
sudo apt update && sudo apt install --only-upgrade libheif1
Caution. Processes that already loaded the old library keep using it until they restart. Restarting PHP-FPM, image workers or other services causes a brief interruption, so schedule it for a quiet period.

After upgrading, confirm the installed version again with the dpkg command above.

  1. Run the dpkg check on every Ubuntu host and container that handles images.
  2. Upgrade libheif1 and any installed heif-thumbnailer, heif-gdk-pixbuf, libheif-dev or libheif-plugin-* packages to the fixed version.
  3. On Ubuntu 22.04 LTS, enable Ubuntu Pro (free for up to five machines, per Ubuntu) to receive the ESM Apps fix, or plan an upgrade to 24.04 LTS.
  4. Restart services that load libheif, such as image workers and PHP-FPM, then re-check the version.
  5. Rebuild container images and application bundles that ship their own libheif, targeting upstream 1.23.2 or later.
  6. Set CPU, memory and time limits on image conversion jobs so one bad file cannot stall a whole server.

Detection and monitoring

No exploitation has been reported in the research, so there are no known indicators to hunt for. Denial-of-service attempts of this kind tend to look like operational trouble, so watch for:

  • Image conversion workers that crash, hang or sit at full CPU after processing an upload.
  • Sudden memory growth followed by out-of-memory kills in system logs.
  • Repeated uploads of small HEIF or AVIF files from a single source.

Uptime monitoring helps you notice when a stalled worker takes a site down; see uptime monitoring explained and Webforta Monitor. For a wider view of patching habits, the small business website security guide is a useful reference.

Timeline

  • 2026-09-18: CVE-2026-84447, CVE-2026-84384 and CVE-2026-84446 published; upstream libheif 1.23.2 contains the fixes.
  • Date of USN-8846-1 not stated in the research.
  • 2026-11-24: Ubuntu publishes USN-8846-2 for 22.04 LTS and 24.04 LTS.

Related Ubuntu patching walkthroughs: USN-9197-1 Speex and USN-9196-1 Expat.

Sources

This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.

  1. USN-8846-2: libheif vulnerabilities | Ubuntu security notices | Ubuntuubuntu.com ·
  • Ubuntu
  • libheif
  • denial of service
  • HEIF
  • patching