CVE-2026-137079 in libvorbisinfo

Summary

by MITRE • 11/25/2026

libvorbis through 1.3.7 contains a stack buffer overflow vulnerability in _ov_getlap() in lib/vorbisfile.c that passes a negative sample count from vorbis_synthesis_lapout() to memcpy(). Attackers can supply a short, valid Ogg Vorbis file with suitable block sizes to overwrite stack frames and crash applications performing two consecutive lapped seeks.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 11/25/2026

The vulnerability identified in libvorbis versions through 1.3.7 represents a critical memory safety flaw located within the _ov_getlap() function found in the lib/vorbisfile.c source file. This specific component is responsible for handling audio data retrieval and processing during playback operations, particularly when dealing with lapped seeks which are necessary for seamless audio transitions between different segments of an Ogg Vorbis stream. The core technical flaw stems from a failure to properly validate input parameters before performing memory copy operations. Specifically, the function receives a sample count value derived from vorbis_synthesis_lapout(), which can be manipulated by maliciously crafted input files to become negative. When this negative integer is passed directly to memcpy() without adequate bounds checking or type conversion safeguards, it triggers undefined behavior within the C runtime environment. In most standard implementations of memcpy, passing a negative size argument results in the function interpreting the value as an extremely large unsigned integer due to two's complement representation rules. This causes the memory copy operation to attempt writing far beyond the allocated stack buffer boundaries, leading directly to a stack-based buffer overflow condition that corrupts adjacent memory regions including return addresses and saved frame pointers.

The operational impact of this vulnerability is significant for any application relying on libvorbis for audio decoding capabilities. An attacker can exploit this flaw by constructing a specially crafted Ogg Vorbis file with specific block sizes designed to trigger the negative sample count scenario during playback or seeking operations. When an application processes such a malicious file and performs two consecutive lapped seeks, the overflow condition is activated. The immediate consequence of this exploitation vector is typically a denial of service manifested as a crash or segmentation fault within the host application due to memory corruption. However, given that stack buffer overflows allow for arbitrary write operations in many execution environments, there exists a high potential for remote code execution if an attacker can precisely control the data written into the overflowed region. This could enable the injection and execution of shellcode, leading to full system compromise depending on the privileges under which the vulnerable application is running. The requirement for two consecutive lapped seeks suggests that while exploitation may require specific user interactions or playback sequences, it remains feasible within normal usage patterns involving seeking through audio tracks.

From a classification perspective, this vulnerability aligns with CWE-120 Buffer Copy without Checking Size of Input Classic Buffer Overflow and CWE-682 Incorrect Calculation which relates to the improper handling of integer values leading to memory corruption. In terms of attack vectors, it falls under ATT&CK technique T1203 Exploitation for Client Execution if leveraged through social engineering or file delivery mechanisms targeting end-users playing audio files. Mitigation strategies primarily involve updating libvorbis to version 1.3.8 or later where the issue has been addressed by implementing rigorous input validation and ensuring that sample counts are properly clamped or converted to unsigned types before being used in memory operations. Developers integrating this library should also consider applying defensive programming practices such as using safer string handling functions, enabling stack canaries during compilation, and deploying address space layout randomization to mitigate the impact of potential exploitation attempts until patches are fully deployed across all affected systems.

Responsible

VulnCheck

Reservation

11/25/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00625

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!