CVE-2024-40897 Memory corruption in ORC

High 7.0 Published Updated

A stack-based buffer overflow in the ORC compiler allows arbitrary code execution when processing crafted files, compromising developer and CI environments.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-40897?

CVE-2024-40897 is a high-severity memory corruption vulnerability in GStreamer ORC, published on 26 Jul 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Stack-based buffer overflow vulnerability exists in orcparse.c of ORC versions prior to 0.4.39. If a developer is tricked to process a specially crafted file with the affected ORC compiler, an arbitrary code may be executed on the developer's build environment. This may lead to compromise of developer machines or CI build environments.

Weakness: CWE-787, CWE-121

Which versions are affected by CVE-2024-40897?

It affects 1 product.

Linux distribution packages (40)
orc AlmaLinux:8All versions0.4.28-4.el8_10
orc-compiler AlmaLinux:8All versions0.4.28-4.el8_10
orc-devel AlmaLinux:8All versions0.4.28-4.el8_10
orc AlmaLinux:9All versions0.4.31-7.el9_4
orc-compiler AlmaLinux:9All versions0.4.31-7.el9_4
orc-devel AlmaLinux:9All versions0.4.31-7.el9_4
orc Red Hat:enterprise_linux:8::appstreamAll versions0:0.4.28-4.el8_10
orc-compiler Red Hat:enterprise_linux:8::appstreamAll versions0:0.4.28-4.el8_10
orc-compiler-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:0.4.28-4.el8_10
orc-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:0.4.28-4.el8_10
orc-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:0.4.28-4.el8_10
orc-devel Red Hat:enterprise_linux:8::appstreamAll versions0:0.4.28-4.el8_10
orc Red Hat:enterprise_linux:9::appstreamAll versions0:0.4.31-7.el9_4
orc-compiler Red Hat:enterprise_linux:9::appstreamAll versions0:0.4.31-7.el9_4
orc-compiler-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:0.4.31-7.el9_4
orc-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:0.4.31-7.el9_4
orc-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:0.4.31-7.el9_4
orc-devel Red Hat:enterprise_linux:9::appstreamAll versions0:0.4.31-7.el9_4
orc Red Hat:rhel_aus:8.2::appstreamAll versions0:0.4.28-4.el8_2
orc-compiler Red Hat:rhel_aus:8.2::appstreamAll versions0:0.4.28-4.el8_2
orc-compiler-debuginfo Red Hat:rhel_aus:8.2::appstreamAll versions0:0.4.28-4.el8_2
orc-debuginfo Red Hat:rhel_aus:8.2::appstreamAll versions0:0.4.28-4.el8_2
orc-debugsource Red Hat:rhel_aus:8.2::appstreamAll versions0:0.4.28-4.el8_2
orc-devel Red Hat:rhel_aus:8.2::appstreamAll versions0:0.4.28-4.el8_2
orc Red Hat:rhel_aus:8.4::appstreamAll versions0:0.4.28-4.el8_4
orc-compiler Red Hat:rhel_aus:8.4::appstreamAll versions0:0.4.28-4.el8_4
orc-compiler-debuginfo Red Hat:rhel_aus:8.4::appstreamAll versions0:0.4.28-4.el8_4
orc-debuginfo Red Hat:rhel_aus:8.4::appstreamAll versions0:0.4.28-4.el8_4
orc-debugsource Red Hat:rhel_aus:8.4::appstreamAll versions0:0.4.28-4.el8_4
orc-devel Red Hat:rhel_aus:8.4::appstreamAll versions0:0.4.28-4.el8_4
orc Red Hat:rhel_e4s:8.4::appstreamAll versions0:0.4.28-4.el8_4
orc-compiler Red Hat:rhel_e4s:8.4::appstreamAll versions0:0.4.28-4.el8_4
orc-compiler-debuginfo Red Hat:rhel_e4s:8.4::appstreamAll versions0:0.4.28-4.el8_4
orc-debuginfo Red Hat:rhel_e4s:8.4::appstreamAll versions0:0.4.28-4.el8_4
orc-debugsource Red Hat:rhel_e4s:8.4::appstreamAll versions0:0.4.28-4.el8_4
orc-devel Red Hat:rhel_e4s:8.4::appstreamAll versions0:0.4.28-4.el8_4
orc Red Hat:rhel_e4s:9.0::appstreamAll versions0:0.4.31-7.el9_0
orc-compiler Red Hat:rhel_e4s:9.0::appstreamAll versions0:0.4.31-7.el9_0
orc-compiler-debuginfo Red Hat:rhel_e4s:9.0::appstreamAll versions0:0.4.31-7.el9_0
orc-debuginfo Red Hat:rhel_e4s:9.0::appstreamAll versions0:0.4.31-7.el9_0

Products include Gstreamer Orc.

How do I fix CVE-2024-40897?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-40897 being exploited?

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

Sources

Also known as ALPINE-CVE-2024-40897, ALSA-2024:5306, ALSA-2024:6184, AZL-47050, AZL-47122, CLSA-2024-1725650489 and 24 more.

Is CVE-2024-40897 in your software?

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

Check your SBOMs for free