# GHSA-5r97-79vw-qvm4: Microsoft DirectX12: .spritefont multiply overflow only in 32-bit builds

- Severity: Medium (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-18T15:38:59.000Z
- Modified: 2026-05-18T15:49:42.342Z
- Weaknesses: CWE-190

## Description

### 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.

> Note this only applies to x86/ARM builds of the library. ARM64 and x64 native is not subject to this issue.

### 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](https://github.com/microsoft/DirectXTK12/commit/c037a024a7ed3b2162fa2bbbe209b84ba2904494).

### 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.

(As written by GitHub Advisory Database.)

## Affected

- directxtk12_desktop_win10 (NuGet): before 2026.5.8.1
- directxtk12_uwp (NuGet): before 2026.5.8.1

## References

- <https://github.com/microsoft/DirectXTK12/security/advisories/GHSA-5r97-79vw-qvm4> (web)
- <https://github.com/microsoft/DirectXTK12/commit/c037a024a7ed3b2162fa2bbbe209b84ba2904494> (web)
- <https://github.com/microsoft/DirectXTK12> (package)
- <https://github.com/microsoft/DirectXTK12/releases/tag/may2026> (web)

## Sources

- GitHub Advisory Database: [GHSA-5r97-79vw-qvm4](https://github.com/advisories/GHSA-5r97-79vw-qvm4), CC-BY-4.0, modified 2026-05-18

---

Page: https://cve.day/GHSA-5r97-79vw-qvm4 · Whole record: https://cve.day/GHSA-5r97-79vw-qvm4.json · Rebuilt by cve.day 2026-11-25T22:56:29.482Z
