CVE-2021-47281·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.12.11
- Published
- 2024-05-21
Affected versions
From: 5.11
Until: 5.12.11
Fixed in: 5.12.11
How to fix this CVE
Update your Linux kernel to version 5.12.11 or later to resolve a race condition in the ALSA sequencer timer initialization that could lead to use-after-free conditions. Systems running kernel versions 5.11 through 5.12.10 should prioritize this update, as the vulnerability allows concurrent timer operations to corrupt internal state when multiple processes access the sequencer simultaneously.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r | awk -F. '{print $1"."$2"."$3}' and verify it is 5.12.11 or newer
- Verify ALSA sequencer module is loaded: lsmod | grep snd_seq to determine if the vulnerable component is active
- Search kernel logs for ALSA sequencer warnings: sudo dmesg | grep -i 'seq.*timer' or journalctl -u kernel --no-pager | grep -i 'seq.*timer'
- After patching, reboot and confirm new kernel version: uname -r should show 5.12.11 or later
FAQ
What is CVE-2021-47281?
CVE-2021-47281 is a race condition in the Linux kernel's ALSA sequencer timer subsystem where inadequate locking allows concurrent calls to override the timer instance, potentially causing memory corruption and denial of service through use-after-free conditions.
Is CVE-2021-47281 being actively exploited?
No, CVE-2021-47281 is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available, though the vulnerability was discovered through fuzzing (syzkaller).
What versions of Kernel are affected by CVE-2021-47281?
Linux kernel versions from 5.11 through 5.12.10 are vulnerable; version 5.12.11 and later contain the fix.
How do I check if my server is vulnerable to CVE-2021-47281?
Run 'uname -r' to display your kernel version. If it shows 5.11.x through 5.12.10, your system is vulnerable. If it shows 5.12.11 or later, or a version outside this range (e.g., 5.10.x or 5.13.x), you are not affected.
Does Defensia detect CVE-2021-47281?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2021-47281 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- 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
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47281. Free for 1 server.
Get started free