CVE-2026-38349
massInteger Overflow DoS in FFmpeg libswscale Image Scaling (hScale16To19_c)
CVE-2026-38349 is an integer overflow (CWE-190) in the hScale16To19_c() function of FFmpeg's libswscale image-scaling library (libswscale/output.c), identified in the development build N-122528-gdd2976b9e1. It is triggered when the library processes a specially crafted image file whose pixel or dimension values push the 16-to-19-bit horizontal scaling routine beyond its representable numeric range. An attacker who can make an application or service decode such an image gains a denial of service (crash or hang) with no confidentiality or integrity impact, consistent with the CVSS 3.1 score of 7.5 (network vector, high availability impact only). Anyone embedding or running the affected FFmpeg code and decoding untrusted images — e.g., media servers, thumbnail generators, upload validators, and transcoding pipelines — is potentially affected, though the available data identifies only the N-122528-gdd2976b9e1 git-master snapshot and does not specify which released versions carry the flaw. Exploitation is not currently observed: there is no public proof of concept, no CISA KEV listing, and EPSS is low at roughly 0.3% (25th percentile) for the next 30 days.
What to do: Track the upstream FFmpeg fix and rebuild or upgrade to a build newer than commit N-122528-gdd2976b9e1 (or apply the upstream patch) as soon as patched packages are available, and check which FFmpeg revision your distributions, containers, and bundled/embedded copies actually ship. In the meantime, harden media-processing services: sandbox or isolate image-decode workers, cap resource limits so crashes cannot take down the whole service, and restrict processing of untrusted image files from unauthenticated sources.
| FFmpeg Project FFmpeg (libswscale, libswscale/output.c) | — |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
An integer overflow in the hScale16To19_c() function (libswscale/output.c) of FFmpeg N-122528-gdd2976b9e1 allows attackers to cause a Denial of Service (DoS) via supplying a crafted image file.
- Weakness
- CWE-190
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
In the news0 stories
No ingested article mentions this CVE yet.