Проблема была обнаружена в кодеке libsndfile 1.2.2 IMA ADPCM. Путь кода AIFF (строка 241) был исправлен с помощью приведения (sf_count_t), а путь кода WAV (строка 235) и путь закрытия (строка 167) — нет. Когда sampleperblock (int) *blocks (int) превышает INT_MAX, 32-битное умножение переполняется перед присвоением sf.frames (sf_count_t/int64).
При значениях Sampleperblock=50000 и Blocks=50000 произведение 2500000000 переполняется до -1794967296. Это приводит к неправильному подсчету кадров, что приводит к переполнению буфера кучи или отказу в обслуживании. Оба значения берутся из заголовка файла WAV и контролируются злоумышленником.
Эта проблема была обнаружена после неполного исправления CVE-2022-33065.
Показать оригинальное описание (EN)
An issue was discovered in libsndfile 1.2.2 IMA ADPCM codec. The AIFF code path (line 241) was fixed with (sf_count_t) cast, but the WAV code path (line 235) and close path (line 167) were not. When samplesperblock (int) * blocks (int) exceeds INT_MAX, the 32-bit multiplication overflows before being assigned to sf.frames (sf_count_t/int64). With samplesperblock=50000 and blocks=50000, the product 2500000000 overflows to -1794967296. This causes incorrect frame count leading to heap buffer overflow or denial of service. Both values come from the WAV file header and are attacker-controlled. This issue was discovered after an incomplete fix for CVE-2022-33065.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Libsndfile_Project Libsndfile
cpe:2.3:a:libsndfile_project:libsndfile:1.2.2:*:*:*:*:*:*:*
|
— | — |