{"id":"GHSA-3w9w-9833-gcpv","aliases":["GHSA-3w9w-9833-gcpv"],"related":[],"kind":"vulnerability","state":"published","title":"Security bug in ConvertToSinglePlane when used with untrusted content from the DDS loader","summary":"### Impact\nA 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.\n\nThis 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.\n\n### Patches\nThe fix to the specific area as well as general hardening can be found in [this PR](https://github.com/microsoft/DirectXTex/pull/307) and will be included in the This bug has been fixed in the January 31, 2023 or later release of DirectXTex.\n\n### Workarounds\nIf 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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\nA 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.\n\nThis 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.\n\n### Patches\nThe fix to the specific area as well as general hardening can be found in [this PR](https://github.com/microsoft/DirectXTex/pull/307) and will be included in the This bug has been fixed in the January 31, 2023 or later release of DirectXTex.\n\n### Workarounds\nIf 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.","format":"markdown","source":"ghsa"}],"published":"2023-01-26T19:52:50.000Z","modified":"2024-12-04T05:41:30.914Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L","score":6.1,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2023.1.31.1"}],"ecosystem":"NuGet","package":"directxtex_desktop_2019","purl":"pkg:nuget/directxtex_desktop_2019","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2023.1.31.1"}],"ecosystem":"NuGet","package":"directxtex_desktop_win10","purl":"pkg:nuget/directxtex_desktop_win10","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2023.1.31.1"}],"ecosystem":"NuGet","package":"directxtex_uwp","purl":"pkg:nuget/directxtex_uwp","source":"ghsa"}],"references":[{"url":"https://github.com/microsoft/DirectXTex/security/advisories/GHSA-3w9w-9833-gcpv","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/microsoft/DirectXTex/pull/307","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/microsoft/DirectXTex","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3w9w-9833-gcpv","url":"https://github.com/advisories/GHSA-3w9w-9833-gcpv","licence":"CC-BY-4.0","modified":"2024-12-04T05:41:30.914Z"}],"updatedAt":"2026-11-25T22:56:29.425Z"}