CVE-2021-46939: tracing: Restructure trace_clock_global() to never block
Noroxi assessment
Priority: Monitor (action score 22/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.24% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: Linux Linux 1fca00920327be96f3318224f502e4d5460f9545, 2a1bd74b8186d7938bf004f5603f25b84785f63e, 6e2418576228eeb12e7ba82edb8f9500623942ff.
- Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to Linux Linux 1fca00920327be96f3318224f502e4d5460f9545, 2a1bd74b8186d7938bf004f5603f25b84785f63e, 6e2418576228eeb12e7ba82edb8f9500623942ff or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
In the Linux kernel, the following vulnerability has been resolved: tracing: Restructure trace_clock_global() to never block It was reported that a fix to the ring buffer recursion detection would cause a hung machine when performing suspend / resume testing. The following backtrace was extracted from debugging that case: Call Trace: trace_clock_global+0x91/0xa0 __rb_reserve_next+0x237/0x460 ring_buffer_lock_reserve+0x12a/0x3f0 trace_buffer_lock_reserve+0x10/0x50 __trace_graph_return+0x1f/0x80 trace_graph_return+0xb7/0xf0 ? trace_clock_global+0x91/0xa0 ftrace_return_to_handler+0x8b/0xf0 ? pv_hash+0xa0/0xa0 return_to_handler+0x15/0x30 ? ftrace_graph_caller+0xa0/0xa0 ? trace_clock_global+0x91/0xa0 ? __rb_reserve_next+0x237/0x460 ? ring_buffer_lock_reserve+0x12a/0x3f0 ? trace_event_buffer_lock_reserve+0x3c/0x120 ? trace_event_buffer_reserve+0x6b/0xc0 ? trace_event_raw_event_device_pm_callback_start+0x125/0x2d0 ? dpm_run_callback+0x3b/0xc0 ? pm_ops_is_empty+0x50/0x50 ? platform_get_irq_byname_optional+0x90/0x90 ? trace_device_pm_callback_start+0x82/0xd0 ? dpm_run_callback+0x49/0xc0 With the following RIP: RIP: 0010:native_queued_spin_lock_slowpath+0x69/0x200 Since the fix to the recursion detection would allow a single recursion to happen while tracing, this lead to the trace_clock_global() taking a spin lock and then trying to take it again: ring_buffer_lock_reserve() { trace_clock_global() { arch_spin_lock() { queued_spin_lock_slowpath() { /* lock taken */ (something else gets traced by function graph tracer) ring_buffer_lock_reserve() { trace_clock_global() { arch_spin_lock() { queued_spin_lock_slowpath() { /* DEAD LOCK! */ Tracing should *never* block, as it can lead to strange lockups like the above. Restructure the trace_clock_global() code to instead of simply taking a lock to update the recorded "prev_time" simply use it, as two events happening on two different CPUs that calls this at the same time, really doesn't matter which one goes first. Use a trylock to grab the lock for updating the prev_time, and if it fails, simply try again the next time. If it failed to be taken, that means something else is already updating it. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=212761
- Published
- Feb 27, 2024
- Updated
- Jun 17, 2026
- EPSS
- 0.2% · 16th percentile
- CWE
- CWE-662
Report tools
Action score
22
Low priority for now.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.
Linux Linux
- 2.6.30affected
- 14131f2f98ac350ee9e73faed916d2238a8b6a0d and later · before 91ca6f6a91f679c8645d7f3307e03ce86ad518c4affected · git
- 14131f2f98ac350ee9e73faed916d2238a8b6a0d and later · before 859b47a43f5a0e5b9a92b621dc6ceaad39fb5c8baffected · git
- 14131f2f98ac350ee9e73faed916d2238a8b6a0d and later · before 1fca00920327be96f3318224f502e4d5460f9545affected · git
- 14131f2f98ac350ee9e73faed916d2238a8b6a0d and later · before d43d56dbf452ccecc1ec735cd4b6840118005d7caffected · git
- 14131f2f98ac350ee9e73faed916d2238a8b6a0d and later · before c64da3294a7d59a4bf6874c664c13be892f15f44affected · git
- 14131f2f98ac350ee9e73faed916d2238a8b6a0d and later · before a33614d52e97fc8077eb0b292189ca7d964cc534affected · git
- 14131f2f98ac350ee9e73faed916d2238a8b6a0d and later · before 6e2418576228eeb12e7ba82edb8f9500623942ffaffected · git
- 14131f2f98ac350ee9e73faed916d2238a8b6a0d and later · before 2a1bd74b8186d7938bf004f5603f25b84785f63eaffected · git
- 14131f2f98ac350ee9e73faed916d2238a8b6a0d and later · before aafe104aa9096827a429bc1358f8260ee565b7ccaffected · git
Affected versions · NVD (8)
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- linux linux kernel2.6.30 and later · before 4.4.269
- linux linux kernel4.5.0 and later · before 4.9.269
- linux linux kernel4.10.0 and later · before 4.14.233
- linux linux kernel4.15.0 and later · before 4.19.191
- linux linux kernel4.20.0 and later · before 5.4.118
- linux linux kernel5.5.0 and later · before 5.10.36
- linux linux kernel5.11.0 and later · before 5.11.20
- linux linux kernel5.12.0 and later · before 5.12.3
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | bpftool | before 4.18.0-553.16.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel | before 4.18.0-553.16.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-abi-stablelists | before 4.18.0-553.16.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-core | before 4.18.0-553.16.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-cross-headers | before 4.18.0-553.16.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-debug | before 4.18.0-553.16.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-debug-core | before 4.18.0-553.16.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-debug-devel | before 4.18.0-553.16.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules | before 4.18.0-553.16.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules-extra | before 4.18.0-553.16.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-devel | before 4.18.0-553.16.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-doc | before 4.18.0-553.16.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-headers | before 4.18.0-553.16.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-modules | before 4.18.0-553.16.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-modules-extra | before 4.18.0-553.16.1.el8_10 | 4.18.0-553.16.1.el8_10 |
| AlmaLinux:8 | kernel-rt | before 4.18.0-553.16.1.rt7.357.el8_10 | 4.18.0-553.16.1.rt7.357.el8_10 |
| AlmaLinux:8 | kernel-rt-core | before 4.18.0-553.16.1.rt7.357.el8_10 | 4.18.0-553.16.1.rt7.357.el8_10 |
| AlmaLinux:8 | kernel-rt-debug | before 4.18.0-553.16.1.rt7.357.el8_10 | 4.18.0-553.16.1.rt7.357.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-core | before 4.18.0-553.16.1.rt7.357.el8_10 | 4.18.0-553.16.1.rt7.357.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-devel | before 4.18.0-553.16.1.rt7.357.el8_10 | 4.18.0-553.16.1.rt7.357.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-kvm | before 4.18.0-553.16.1.rt7.357.el8_10 | 4.18.0-553.16.1.rt7.357.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-modules | before 4.18.0-553.16.1.rt7.357.el8_10 | 4.18.0-553.16.1.rt7.357.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-modules-extra | before 4.18.0-553.16.1.rt7.357.el8_10 | 4.18.0-553.16.1.rt7.357.el8_10 |
| AlmaLinux:8 | kernel-rt-devel | before 4.18.0-553.16.1.rt7.357.el8_10 | 4.18.0-553.16.1.rt7.357.el8_10 |
+89
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV90Now
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe…KEV89Now
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Now
Published before and after this one in the same product
- ← EarlierCVE-2020-36777Feb 27, 2024 · media: dvbdev: Fix memory leak in dvb_media_device_free()22Monitor
- ← EarlierCVE-2021-46938Feb 27, 2024 · dm rq: fix double free of blk_mq_tag_set in dev remove after table load fails31Monitor
- Later →CVE-2021-46940Feb 27, 2024 · tools/power turbostat: Fix offset overflow issue in index converting22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 1fca00920327be96f3318224f502e4d5460f9545 | Vendor (CNA) |
| Linux Linux | 2a1bd74b8186d7938bf004f5603f25b84785f63e | Vendor (CNA) |
| Linux Linux | 6e2418576228eeb12e7ba82edb8f9500623942ff | Vendor (CNA) |
| Linux Linux | 859b47a43f5a0e5b9a92b621dc6ceaad39fb5c8b | Vendor (CNA) |
| Linux Linux | 91ca6f6a91f679c8645d7f3307e03ce86ad518c4 | Vendor (CNA) |
| Linux Linux | a33614d52e97fc8077eb0b292189ca7d964cc534 | Vendor (CNA) |
| Linux Linux | aafe104aa9096827a429bc1358f8260ee565b7cc | Vendor (CNA) |
| Linux Linux | c64da3294a7d59a4bf6874c664c13be892f15f44 | Vendor (CNA) |
| Linux Linux | d43d56dbf452ccecc1ec735cd4b6840118005d7c | Vendor (CNA) |
| almalinux:bpftool | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-abi-stablelists | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-core | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-cross-headers | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-debug | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-debug-core | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-debug-devel | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-debug-modules | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-debug-modules-extra | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-devel | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-doc | 4.18.0-553.16.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| debian:linux | 5.10.38-1 · Debian:12 | Package registry (OSV) |
| red hat:bpftool | 0:4.18.0-553.16.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:bpftool-debuginfo | 0:4.18.0-553.16.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel | 0:4.18.0-553.16.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-abi-stablelists | 0:4.18.0-553.16.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-core | 0:4.18.0-553.16.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-debug | 0:4.18.0-553.16.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-debug-core | 0:4.18.0-553.16.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-debug-debuginfo | 0:4.18.0-553.16.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
+18
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-24-0138 · Feb 28, 2024(Linux Kernel Güncellemesi)
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-662 · Improper SynchronizationCVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (8 more)Show less
- git.kernel.org/stable/c/2a1bd74b8186d7938bf004f5603f25b84785f63e
- git.kernel.org/stable/c/6e2418576228eeb12e7ba82edb8f9500623942ff
- git.kernel.org/stable/c/859b47a43f5a0e5b9a92b621dc6ceaad39fb5c8b
- git.kernel.org/stable/c/91ca6f6a91f679c8645d7f3307e03ce86ad518c4
- git.kernel.org/stable/c/a33614d52e97fc8077eb0b292189ca7d964cc534
- git.kernel.org/stable/c/aafe104aa9096827a429bc1358f8260ee565b7cc
- git.kernel.org/stable/c/c64da3294a7d59a4bf6874c664c13be892f15f44
- git.kernel.org/stable/c/d43d56dbf452ccecc1ec735cd4b6840118005d7c
Vendor advisories and official records. Exploit/PoC links are deliberately left out.