REDHAT-BUG-2520309: Buffer Overflow

Published Aug 20, 2026
·
Updated

FFmpeg contains a heap buffer overflow in libavcodec/tdsc.c, function tdscloadcursor(), when processing CURFMTMONO cursors. The mono path advances dst by 4 FFALIGN(cursorw, 32) in the inner loops, then incorrectly applies an additional row-end adjustment (dst += ctx->cursorstride - ctx->cursorw 4) copied from the BGRA/RGBA branches. For cursor widths not divisible by 32, this drifts past the allocation backing ctx->cursor. Present since the decoder's initial commit (2015-03); fixed upstream in commit 242ff799c75f (2026-05-01), cherry-picked to all active release branches. CWE-787.

Affected Software

1 affected component
FFmpeg FFmpeg>=undefined

Event History

Aug 20, 2026
Data Sourced
via Red Hat·01:27 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which inputs trigger the vulnerable code path?

The issue occurs when FFmpeg processes CUR_FMT_MONO cursors whose widths are not divisible by 32. Those dimensions cause the cursor destination pointer to drift beyond the allocation.

2

How can I determine whether my FFmpeg build is affected?

Check whether the build includes upstream commit 242ff799c75f, dated 2026-05-01. The flaw was present from the decoder's initial commit in 2015-03 and was cherry-picked to all active release branches.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203