Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. directxtex_uwp
  4. ›
  5. GMS-2023-174

GMS-2023-174: Security bug in ConvertToSinglePlane when used with untrusted content from the DDS loader

January 26, 2023 (updated February 1, 2023)

Impact

A memory overwrite bug was reported by a security researcher in the ConvertToSinglePlane method via the texconv command-line tool when given an invalid height for planar video textures such as NV12. This can be a potential security bug for any clients of the library who follow the same pattern.

This issue does not impact use of the DDS texture loader itself, only when combined with ConvertToSinglePlane for converting multi-planar video formats. All other functions in the library fail immediately if given images in planar formats.

Patches

The fix to the specific area as well as general hardening can be found in this PR and will be included in the January 2023 or later release of DirectXTex.

Workarounds

If your code makes use of ConvertToSinglePlane, you can validate that the width & height alignment requirements are met for the input image before calling the function.

References

  • github.com/advisories/GHSA-3w9w-9833-gcpv
  • github.com/microsoft/DirectXTex/pull/307
  • github.com/microsoft/DirectXTex/security/advisories/GHSA-3w9w-9833-gcpv

Code Behaviors & Features

Detect and mitigate GMS-2023-174 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2023.1.31.1

Fixed versions

  • 2023.1.31.1

Solution

Upgrade to version 2023.1.31.1 or above.

Source file

nuget/directxtex_uwp/GMS-2023-174.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:11 +0000.