ALSA: pcm: oss: Fix negative period/buffer sizes
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 02b2b691b77cd7b951fa7b6c9d44d4e472cdc823| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: pcm: oss: Fix negative period/buffer sizes
The period size calculation in OSS layer may receive a negative value as an error, but the code there assumes only the positive values and handle them with size_t. Due to that, a too big value may be passed to the lower layers.
This patch changes the code to handle with ssize_t and adds the proper error checks appropriately.
From the CVE record · Linux
The Linux kernel's ALSA PCM OSS layer can mishandle a negative period-size error as a large unsigned value, passing an oversized value to lower layers. The input does not specify an attacker action, access requirements, or whether user interaction is needed.
Engineers running the Linux kernel should check their versions; affected versions are not specified.