CVE-2021-47396
Last modified
CVE-2021-47396 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: mac80211-hwsim: fix late beacon hrtimer handling Thomas explained in https://lore.kernel.org/r/87mtoeb4hb.ffs@tglx that our handling of the hrtimer here is wrong: If the timer fires late (e.g. due to vCPU scheduling, as reported by Dmitry/syzbot) then it tries to actually rearm the timer at the next deadline, which might be in the past already: 1 2 3 N N+1 | | | ... EPSS estimates a 0.24% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: mac80211-hwsim: fix late beacon hrtimer handling Thomas explained in https://lore.kernel.org/r/87mtoeb4hb.ffs@tglx that our handling of the hrtimer here is wrong: If the timer fires late (e.g. due to vCPU scheduling, as reported by Dmitry/syzbot) then it tries to actually rearm the timer at the next deadline, which might be in the past already: 1 2 3 N N+1 | | | ... | | ^ intended to fire here (1) ^ next deadline here (2) ^ actually fired here The next time it fires, it's later, but will still try to schedule for the next deadline (now 3), etc. until it catches up with N, but that might take a long time, causing stalls etc. Now, all of this is simulation, so we just have to fix it, but note that the behaviour is wrong even per spec, since there's no value then in sending all those beacons unaligned - they should be aligned to the TBTT (1, 2, 3, ... in the picture), and if we're a bit (or a lot) late, then just resume at that point. Therefore, change the code to use hrtimer_forward_now() which will ensure that the next firing of the timer would be at N+1 (in the picture), i.e. the next interval point after the current time.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 3.9, < 5.4.151 | — |
| Linux | Linux Kernel | >= 5.5, < 5.10.71 | — |
| Linux | Linux Kernel | >= 5.11, < 5.14.10 | — |
| Linux | Linux Kernel | 5.15 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2021-47396?
How severe is CVE-2021-47396?
How do I fix CVE-2021-47396?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-47390In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2021-47391In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47392In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47393In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2021-47394In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2021-47395In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47397In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47398In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47399In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47400In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47401In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2021-47402In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2021-47396?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
