ALSA: pcm: oss: Fix data race at accessing runtime.oss.trigger
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 901ac0ff15edf9503162e2cf6579bd11a30f1ed4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: pcm: oss: Fix data race at accessing runtime.oss.trigger
Currently the runtime.oss.trigger field may be accessed concurrently without protection, which may lead to the data race. And, in this case, it may lead to more severe problem because it's a bit field; as writing the data, it may overwrite other bit fields as well, which confuses the operation completely, as spotted by fuzzing.
Fix it by covering runtime.oss.trigger bit fled also with the existing params_lock mutex in both snd_pcm_oss_get_trigger() and snd_pcm_oss_poll().
From the CVE record · Linux
A data race in ALSA PCM OSS can cause a write to runtime.oss.trigger to overwrite other bit fields and disrupt operation. An attacker may be able to trigger this behavior, but the input does not specify whether access is local or network-based, whether authentication is needed, or whether user interaction is required.
Engineers running Linux kernels with ALSA PCM OSS should check their versions; affected versions are not specified.