ALSA: wavefront: Fix integer overflow in sample size validation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < bca11de0a277b8baeb7d006f93b543c907b6e782| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: wavefront: Fix integer overflow in sample size validation
The wavefront_send_sample() function has an integer overflow issue when validating sample size. The header->size field is u32 but gets cast to int for comparison with dev->freemem
Fix by using unsigned comparison to avoid integer overflow.
From the CVE record · Linux
The Linux kernel’s ALSA wavefront driver has an integer overflow in sample-size validation: a 32-bit unsigned size is cast to a signed integer before comparison with available memory. This can cause incorrect validation; the input does not specify how an attacker could trigger it or whether access or user interaction is required.
Engineers running Linux kernels with the ALSA wavefront driver should check their exposure; affected versions are not specified.