CVE-2021-47281
Severity CVSS v4.0:
Pending analysis
Type:
CWE-416
Use After Free
Publication date:
21/05/2024
Last modified:
24/12/2024
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
ALSA: seq: Fix race of snd_seq_timer_open()<br />
<br />
The timer instance per queue is exclusive, and snd_seq_timer_open()<br />
should have managed the concurrent accesses. It looks as if it&#39;s<br />
checking the already existing timer instance at the beginning, but<br />
it&#39;s not right, because there is no protection, hence any later<br />
concurrent call of snd_seq_timer_open() may override the timer<br />
instance easily. This may result in UAF, as the leftover timer<br />
instance can keep running while the queue itself gets closed, as<br />
spotted by syzkaller recently.<br />
<br />
For avoiding the race, add a proper check at the assignment of<br />
tmr->timeri again, and return -EBUSY if it&#39;s been already registered.
Impact
Base Score 3.x
7.00
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.10.44 (excluding) | |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.11 (including) | 5.12.11 (excluding) |
| cpe:2.3:o:linux:linux_kernel:5.13:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.13:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.13:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.13:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.13:rc5:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/536a7646c00a0f14fee49e5e313109e5da2f6031
- https://git.kernel.org/stable/c/83e197a8414c0ba545e7e3916ce05f836f349273
- https://git.kernel.org/stable/c/bd7d88b0874f82f7b29d1a53e574cedaf23166ba
- https://git.kernel.org/stable/c/536a7646c00a0f14fee49e5e313109e5da2f6031
- https://git.kernel.org/stable/c/83e197a8414c0ba545e7e3916ce05f836f349273
- https://git.kernel.org/stable/c/bd7d88b0874f82f7b29d1a53e574cedaf23166ba



