CVE-2024-40897
NixOS vulnerability analysis and mitigation

Overview

CVE-2024-40897 is a stack-based buffer overflow vulnerability discovered in the orcparse.c component of ORC (Optimized Inner Loop Runtime Compiler) versions prior to 0.4.39. The vulnerability was disclosed on July 26, 2024, affecting the GStreamer ORC compiler, which is used for compiling and executing SIMD assembly language-like programs that operate on arrays of data (JVN Advisory, NVD).

Technical details

The vulnerability is classified as a stack-based buffer overflow (CWE-121) with a CVSS v3.1 base score of 6.7 (Medium). The attack vector is Local, requiring high attack complexity, low privileges, and user interaction. The vulnerability affects the error message formatting functionality in the Orc compiler when processing certain input files (Ubuntu Security, JVN Advisory).

Impact

The vulnerability only affects developers and CI environments using the orcc compiler, not users of liborc. If successfully exploited, an attacker could execute arbitrary code with the same privileges as the ORC compiler when a developer is tricked into processing a specially crafted file. This could potentially lead to compromise of developer machines or CI build environments (GStreamer Advisory, JVN Advisory).

Mitigation and workarounds

The vulnerability has been fixed in ORC version 0.4.39. Users are advised to update to this version or apply the patches provided. The fix involves using vasprintf() for error messages when available, and otherwise falling back to vsnprintf(). The patch is available through the official merge request (GStreamer Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-65799MEDIUM4.3
  • NixOSNixOS
  • memos
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management