GHSA-3w9w-9833-gcpv

Suggest an improvement
Source
https://github.com/advisories/GHSA-3w9w-9833-gcpv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/01/GHSA-3w9w-9833-gcpv/GHSA-3w9w-9833-gcpv.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-3w9w-9833-gcpv
Published
2023-01-26T19:52:50Z
Modified
2024-12-04T05:34:51.478949Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L CVSS Calculator
Summary
Security bug in ConvertToSinglePlane when used with untrusted content from the DDS loader
Details

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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-01-26T19:52:50Z"
}
References

Affected packages

NuGet / directxtex_desktop_2019

Package

Name
directxtex_desktop_2019
View open source insights on deps.dev
Purl
pkg:nuget/directxtex_desktop_2019

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2023.1.31.1

Affected versions

2022.*

2022.5.10.1
2022.7.30.1
2022.10.18.1
2022.12.18.1

NuGet / directxtex_desktop_win10

Package

Name
directxtex_desktop_win10
View open source insights on deps.dev
Purl
pkg:nuget/directxtex_desktop_win10

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2023.1.31.1

Affected versions

2018.*

2018.11.20.1

2019.*

2019.2.7.1
2019.4.26.1
2019.5.31.1
2019.8.23.1
2019.10.17.1
2019.12.17.1

2020.*

2020.2.15.1
2020.5.11.1
2020.6.2.1
2020.6.15.1
2020.7.2.1
2020.8.15.1
2020.9.30.1
2020.11.12.1

2021.*

2021.1.10.2
2021.4.7.2
2021.6.10.1
2021.8.2.1
2021.11.8.1

2022.*

2022.3.1.1
2022.3.24.1
2022.5.10.1
2022.7.30.1
2022.10.18.1
2022.12.18.1

NuGet / directxtex_uwp

Package

Name
directxtex_uwp
View open source insights on deps.dev
Purl
pkg:nuget/directxtex_uwp

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2023.1.31.1

Affected versions

2017.*

2017.11.1.1
2017.12.13.1

2018.*

2018.2.9.1
2018.4.23.1
2018.5.11.1
2018.6.1.2
2018.7.4.1
2018.8.5.1
2018.8.18.2
2018.10.26.1
2018.11.20.1

2019.*

2019.2.7.1
2019.4.26.1
2019.5.31.1
2019.8.23.1
2019.10.17.1
2019.12.17.1

2020.*

2020.2.15.1
2020.5.11.1
2020.6.2.1
2020.6.15.1
2020.7.2.1
2020.8.15.1
2020.9.30.1
2020.11.12.1

2021.*

2021.1.10.2
2021.4.7.2
2021.6.10.1
2021.8.2.1
2021.11.8.1

2022.*

2022.3.1.1
2022.3.24.1
2022.5.10.1
2022.7.30.1
2022.10.18.1
2022.12.18.1