ALSA: pcm: oss: Limit the period size to 16MB
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < ad45babf7886e7a212ee1d5eda9ef49f696db43c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: pcm: oss: Limit the period size to 16MB
Set the practical limit to the period size (the fragment shift in OSS) instead of a full 31bit; a too large value could lead to the exhaust of memory as we allocate temporary buffers of the period size, too.
As of this patch, we set to 16MB limit, which should cover all use cases.
From the CVE record · Linux
The Linux kernel’s ALSA PCM OSS code allowed an excessively large period size, causing temporary buffer allocations that could exhaust memory. An attacker able to set an oversized OSS fragment shift could trigger this; the input does not specify authentication requirements.
Engineers running Linux kernels with the affected ALSA PCM OSS code should check their kernel version; affected versions are not specified.