Microsoft DirectX12: .spritefont multiply overflow only in 32-bit builds
Moderate severity
GitHub Reviewed
Published
May 11, 2026
in
microsoft/DirectXTK12
•
Updated May 18, 2026
Description
Published to the GitHub Advisory Database
May 18, 2026
Reviewed
May 18, 2026
Last updated
May 18, 2026
Impact
The spritefont reader can be induced to perform a 32-bit overflow multiply that could in theory result in a RCE.
This impacts the use of the DirectX Tool Kit SpriteFont class file loading ctor if given untrusted data files.
Patches
This bug has been fixed in the May 7, 2026 release. Alternatively, you can just update your copy of the reader as per this commit.
Workarounds
This does not apply if a project's .spritefont files are all 'trusted' data that were included with an application. It's primarily an issue only if developers are using user-provided or network downloaded spritefont files.
References