Skip to content

.WAV file reader out-of-bounds read

Low
walbourn published GHSA-6hp8-73vq-27vp Feb 8, 2023

Package

nuget directxtk_desktop_2017 (NuGet)

Affected versions

All versions

Patched versions

None
nuget directxtk_desktop_2019 (NuGet)
<= 2022.12.16.1
2023.2.7.1
nuget directxtk_desktop_win10 (NuGet)
<= 2022.12.16.1
2023.2.7.1
nuget directxtk_uwp (NuGet)
<= 2022.12.16.1
2023.2.7.1

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