CVE-2021-47281CWE-416

CVE-2021-47281

High · published May 21, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
14.1
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

ALSA: seq: Fix race of snd_seq_timer_open()

The timer instance per queue is exclusive, and snd_seq_timer_open()

should have managed the concurrent accesses. It looks as if it's

checking the already existing timer instance at the beginning, but

it's not right, because there is no protection, hence any later

concurrent call of snd_seq_timer_open() may override the timer

instance easily. This may result in UAF, as the leftover timer

instance can keep running while the queue itself gets closed, as

spotted by syzkaller recently.

For avoiding the race, add a proper check at the assignment of

tmr->timeri again, and return -EBUSY if it's been already registered.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00239 · 14.1th percentile
Weakness
CWE-416 · Use After Free
Published
2024-05-21T19:15Z
Affected products (7)
ProductVersionsFixed in
linux/linux_kernel< 5.10.445.10.44
linux/linux_kernel≥ 5.11, < 5.12.115.12.11
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (6)
EPSS history
Timeline
  • 21 MAY 14:20Z
    ALSA: seq: Fix race of snd_seq_timer_open()
    cvelistv5