Description
VLC media player computes the size of a picture buffer with 32-bit arithmetic and allocates from the wrapped result. In AllocatePicture in src/misc/picture.c the running total is accumulated as i_bytes += p->i_pitch * p->i_lines, and both plane_t fields are declared int in include/vlc_picture.h, so the multiplication is evaluated at 32 bits and wraps before it is widened to the size_t accumulator. The overflow check that precedes it divides in 64-bit arithmetic and therefore does not constrain the product, and the subsequent comparison against PICTURE_SW_SIZE_MAX examines the already wrapped value, so both guards pass. aligned_alloc then reserves the small wrapped size while the decoder writes scanlines sized from the original dimensions. A crafted PNG whose IHDR declares large width and height reaches this path through the image demuxer, whose only size guard is on the input file's byte count rather than the declared dimensions, and the decoder in modules/codec/png.c writes past the end of the allocation with attacker-influenced length and content. Opening the file directly or through a playlist entry is sufficient, with no non-default settings.
Published: 2026-09-09
Score: 8.6 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw arises from an integer overflow during picture buffer allocation in VLC media player. Size is calculated using 32‑bit arithmetic on a product of pitch and lines, wrapped before promotion to the 64‑bit accumulator. The guard that should prevent overflow operates on the widened value and does not constrain the wrapped product. Consequently, the allocator reserves a too‑small buffer, and subsequent decoder writes overwrite memory beyond the allocation. This heap out‑of‑bounds write can corrupt program state and potentially allow arbitrary code execution when a crafted image is processed.

Affected Systems

All versions of VideoLAN VLC media player from 3.0.0 up to and including 3.0.23 are affected. No sub‑version specific patches are listed; the vulnerability resides in the core picture allocation routines shared across these releases.

Risk and Exploitability

The CVSS score of 8.6 indicates a high severity. EPSS data is not available, and the flaw is not listed in the CISA KEV catalog. The attack vector is straightforward: a malicious PNG file with a large declared width and height can be provided as a file or playlist entry and processed by VLC with default settings. If the user opens such a file, the decoder writes beyond the buffer, creating an exploitable memory condition.

Generated by OpenCVE AI on September 9, 2026 at 15:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update VLC media player to version 3.0.24 or later, which fixes the integer overflow in picture allocation.
  • Until the update can be applied, avoid opening unknown PNG files or playlists that may contain large dimensions.
  • Configure your environment or VLC policy settings to reject or quarantine PNG files with dimensions exceeding safe thresholds.

Generated by OpenCVE AI on September 9, 2026 at 15:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 09 Sep 2026 13:45:00 +0000

Type Values Removed Values Added
Description VLC media player computes the size of a picture buffer with 32-bit arithmetic and allocates from the wrapped result. In AllocatePicture in src/misc/picture.c the running total is accumulated as i_bytes += p->i_pitch * p->i_lines, and both plane_t fields are declared int in include/vlc_picture.h, so the multiplication is evaluated at 32 bits and wraps before it is widened to the size_t accumulator. The overflow check that precedes it divides in 64-bit arithmetic and therefore does not constrain the product, and the subsequent comparison against PICTURE_SW_SIZE_MAX examines the already wrapped value, so both guards pass. aligned_alloc then reserves the small wrapped size while the decoder writes scanlines sized from the original dimensions. A crafted PNG whose IHDR declares large width and height reaches this path through the image demuxer, whose only size guard is on the input file's byte count rather than the declared dimensions, and the decoder in modules/codec/png.c writes past the end of the allocation with attacker-influenced length and content. Opening the file directly or through a playlist entry is sufficient, with no non-default settings.
Title VLC media player 3.0.0 through 3.0.23 Heap Out-of-Bounds Write via Integer Overflow in Picture Allocation
First Time appeared Videolan
Videolan vlc Media Player
Weaknesses CWE-190
CWE-787
CPEs cpe:2.3:a:videolan:vlc_media_player:*:*:*:*:*:*:*:*
Vendors & Products Videolan
Videolan vlc Media Player
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Videolan Vlc Media Player
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-09T13:31:58.330Z

Reserved: 2026-06-22T18:48:27.060Z

Link: CVE-2026-56711

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-09T14:17:12.717

Modified: 2026-09-09T14:17:12.717

Link: CVE-2026-56711

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-09T15:15:04Z

Weaknesses