Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS0zdzl3LTk4MzMtZ2Nwds4AAxJI

Security bug in ConvertToSinglePlane when used with untrusted content from the DDS loader

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 This bug has been fixed in the January 31, 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.

Permalink: https://github.com/advisories/GHSA-3w9w-9833-gcpv
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS0zdzl3LTk4MzMtZ2Nwds4AAxJI
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: almost 2 years ago
Updated: almost 2 years ago


CVSS Score: 6.1
CVSS vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L

Identifiers: GHSA-3w9w-9833-gcpv
References: Repository: https://github.com/microsoft/DirectXTex
Blast Radius: 8.5

Affected Packages

nuget:directxtex_uwp
Dependent packages: 0
Dependent repositories: 5
Downloads: 86,520 total
Affected Version Ranges: < 2023.1.31.1
Fixed in: 2023.1.31.1
All affected versions:
All unaffected versions:
nuget:directxtex_desktop_win10
Dependent packages: 1
Dependent repositories: 25
Downloads: 81,406 total
Affected Version Ranges: < 2023.1.31.1
Fixed in: 2023.1.31.1
All affected versions:
All unaffected versions:
nuget:directxtex_desktop_2019
Dependent packages: 0
Dependent repositories: 5
Downloads: 60,554 total
Affected Version Ranges: < 2023.1.31.1
Fixed in: 2023.1.31.1
All affected versions:
All unaffected versions: