ALSA: line6: Fix racy access to midibuf
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 705ececd1c60d0f5d6ef2a719008847883516970 · < 535df7f896a568a8a1564114eaea49d002cb1747| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: line6: Fix racy access to midibuf
There can be concurrent accesses to line6 midibuf from both the URB completion callback and the rawmidi API access. This could be a cause of KMSAN warning triggered by syzkaller below (so put as reported-by here).
This patch protects the midibuf call of the former code path with a spinlock for avoiding the possible races.
From the CVE record · Linux
The Linux kernel's ALSA line6 midibuf can be accessed concurrently by a USB request completion callback and the rawmidi API. This race can trigger a KMSAN warning; the input does not establish an attacker outcome or specify authentication or user-interaction requirements.
Engineers running Linux kernels with the ALSA line6 driver should check their versions; affected versions are not specified.