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&amp;#39;s<br /> checking the already existing timer instance at the beginning, but<br /> it&amp;#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-&gt;timeri again, and return -EBUSY if it&amp;#39;s been already registered.

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:*:*:*:*:*:*