CVE-2023-29659 libheif vulnerable to segmentation fault via floating point exception

Medium 6.5 Published Updated

Attackers can cause a denial of service in applications using libheif by providing crafted HEIF images that trigger a floating point exception.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-29659?

CVE-2023-29659 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 5 May 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A Segmentation fault caused by a floating point exception exists in libheif 1.15.1 using crafted heif images via the heif::Fraction::round() function in box.cc, which causes a denial of service.

Weakness: CWE-369

Which versions are affected by CVE-2023-29659?

2 open source packages ship an affected version, including github.com/strukturag/libheif. It affects 2 products.

PackageAffectedFixed in
github.com/strukturag/libheif GoAll versions1.15.2
github.com/strukturag/libheif GoAll versions1.15.2
Linux distribution packages (5)
libheif SUSE:Linux Enterprise Module for Desktop Applications 15 SP4All versions1.12.0-150400.3.11.1
libheif SUSE:Linux Enterprise Module for Desktop Applications 15 SP5All versions1.12.0-150400.3.11.1
libheif SUSE:Linux Enterprise Module for Package Hub 15 SP5All versions1.12.0-150400.3.11.1
libheif openSUSE:Leap 15.4All versions1.12.0-150400.3.11.1
libheif openSUSE:Leap 15.5All versions1.12.0-150400.3.11.1

Products include Fedoraproject Fedora, Struktur Libheif.

How do I fix CVE-2023-29659?

Upgrade github.com/strukturag/libheif to 1.15.2 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-29659 being exploited?

There is no known exploitation of CVE-2023-29659 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2023-29659, GHSA-22fx-6r9m-r8h9, ROOT-OS-UBUNTU-2204-CVE-2023-29659, SUSE-SU-2023:2223-1, SUSE-SU-2023:2223-2, UBUNTU-CVE-2023-29659.

Is CVE-2023-29659 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free