Skip to content

.WAV file reader out-of-bounds read

Low
walbourn published GHSA-856v-h7g8-8v44 Feb 8, 2023

Package

nuget directxtk12_desktop_2019 (NuGet)

Affected versions

<= 2022.12.18.1

Patched versions

2023.2.7.1
nuget directxtk12_uwp (NuGet)
<= 2022.12.18.1
2023.2.7.1
nuget directxtk_desktop_2017 (NuGet)
All Versions
None

Description

Impact

A security researcher reported a bug in the WAVFileReader module where a memory scan is bounded by untrusted data from the input file. This can result in a crash at runtime.

This impacts use of the DirectX Tool Kit for Audio SoundEffect file loading ctor if given untrusted data files, as well as the xwbtool command-line tool if used on untrusted files.

Patches

This bug has been fixed in the February 6, 2023 release. Alternatively, you can just update your copy of the reader as per this commit.

Workarounds

This does not apply if your .wav files are all 'trusted' data that were included with your application. It's primarily an issue only if you are using user-provided or network downloaded wav files.

Severity

Low

CVE ID

No known CVE

Weaknesses

No CWEs