ALSA: firewire-lib: Avoid division by zero in apply_constraint_to_size()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 826b5de90c0bca4e9de6231da9e1730480621588 · < 3452d39c4704aa12504e4190298c721fb01083c3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: firewire-lib: Avoid division by zero in apply_constraint_to_size()
The step variable is initialized to zero. It is changed in the loop, but if it's not changed it will remain zero. Add a variable check before the division.
The observed behavior was introduced by commit 826b5de90c0b ("ALSA: firewire-lib: fix insufficient PCM rule for period/buffer size"), and it is difficult to show that any of the interval parameters will satisfy the snd_interval_test() condition with data from the amdtp_rate_table[] table.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
From the CVE record · Linux
A zero-valued step can cause a division by zero in the ALSA firewire-lib function apply_constraint_to_size(). The input does not establish how an attacker could trigger it or whether access or user interaction is required.
Engineers running Linux kernels that include the affected ALSA firewire-lib code should check their versions; no affected version range is provided.