Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-47346

published high CVSS 3.1 · 7.1

coresight: tmc-etf: Fix global-out-of-bounds in tmc_update_etf_buffer()

Published
21 May 2024, 14:35:52 UTC
Updated
05 Aug 2026, 08:47:21 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux0c3fc4d5fa26092853278145aca9b21fa52a3e93 to < 04bd77ef4f4d9fc6102023b85f4590fc2130aac5 · 0c3fc4d5fa26092853278145aca9b21fa52a3e93 to < ef0a06acc6b16388640ad367eedfa2a17f1945db · 0c3fc4d5fa26092853278145aca9b21fa52a3e93 to < 35c1c4bd2d59ad734129d4e232af9d1098023918 · 0c3fc4d5fa26092853278145aca9b21fa52a3e93 to < 733d4d95c0101d5f277b8e4910411d016e49a9dc · 0c3fc4d5fa26092853278145aca9b21fa52a3e93 to < 0115687be7b13993066aef602253a53d55f5b11f · 0c3fc4d5fa26092853278145aca9b21fa52a3e93 to < 5fae8a946ac2df879caf3f79a193d4766d00239b · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.14 (affected) · 0 to < 4.14 (unaffected · semver) · 4.19.198 through 4.19.* (unaffected · semver) · 5.4.133 through 5.4.* (unaffected · semver) · 5.10.51 through 5.10.* (unaffected · semver) · 5.12.18 through 5.12.* (unaffected · semver) · 5.13.3 through 5.13.* (unaffected · semver) · 5.14 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: coresight: tmc-etf: Fix global-out-of-bounds in tmc_update_etf_buffer() commit 6f755e85c332 ("coresight: Add helper for inserting synchronization packets") removed trailing '\0' from barrier_pkt array and updated the call sites like etb_update_buffer() to have proper checks for barrier_pkt size before read but missed updating tmc_update_etf_buffer() which still reads barrier_pkt past the array size resulting in KASAN out-of-bounds bug. Fix this by adding a check for barrier_pkt size before accessing like it is done in etb_update_buffer(). BUG: KASAN: global-out-of-bounds in tmc_update_etf_buffer+0x4b8/0x698 Read of size 4 at addr ffffffd05b7d1030 by task perf/2629 Call trace: dump_backtrace+0x0/0x27c show_stack+0x20/0x2c dump_stack+0x11c/0x188 print_address_description+0x3c/0x4a4 __kasan_report+0x140/0x164 kasan_report+0x10/0x18 __asan_report_load4_noabort+0x1c/0x24 tmc_update_etf_buffer+0x4b8/0x698 etm_event_stop+0x248/0x2d8 etm_event_del+0x20/0x2c event_sched_out+0x214/0x6f0 group_sched_out+0xd0/0x270 ctx_sched_out+0x2ec/0x518 __perf_event_task_sched_out+0x4fc/0xe6c __schedule+0x1094/0x16a0 preempt_schedule_irq+0x88/0x170 arm64_preempt_schedule_irq+0xf0/0x18c el1_irq+0xe8/0x180 perf_event_exec+0x4d8/0x56c setup_new_exec+0x204/0x400 load_elf_binary+0x72c/0x18c0 search_binary_handler+0x13c/0x420 load_script+0x500/0x6c4 search_binary_handler+0x13c/0x420 exec_binprm+0x118/0x654 __do_execve_file+0x77c/0xba4 __arm64_compat_sys_execve+0x98/0xac el0_svc_common+0x1f8/0x5e0 el0_svc_compat_handler+0x84/0xb0 el0_svc_compat+0x10/0x50 The buggy address belongs to the variable: barrier_pkt+0x10/0x40 Memory state around the buggy address: ffffffd05b7d0f00: fa fa fa fa 04 fa fa fa fa fa fa fa 00 00 00 00 ffffffd05b7d0f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffd05b7d1000: 00 00 00 00 00 00 fa fa fa fa fa fa 00 00 00 03 ^ ffffffd05b7d1080: fa fa fa fa 00 02 fa fa fa fa fa fa 03 fa fa fa ffffffd05b7d1100: fa fa fa fa 00 00 00 00 05 fa fa fa fa fa fa fa ==================================================================

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.1 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Scenarios
en: AV:L - The bug is reached only through the CoreSight ETM perf PMU path (perf_event_open → etm_event_stop → tmc_update_etf_buffer), which requires local syscall access on a system with CoreSight ETF hardware. AC:L - An attacker who can open a cs_etm session can reliably force lost=true by using a small AUX buffer so to_read exceeds handle->size, which engages the broken barrier_pkt walk without depending on races or uncontrolled state. PR:L - Under the default perf_event_paranoid=2, an unprivileged user can open a per-task cs_etm event with exclude_kernel set; etm_event_init imposes no CAP_PERFMON/CAP_SYS_ADMIN check, so real root is not required. UI:N - The attacker configures and drives the perf session themselves; no separate victim action is required to reach tmc_update_etf_buffer. S:U - Impact stays within the host kernel authority (kernel memory disclosure / potential oops); there is no VM, IOMMU, or sandbox boundary crossing. C:H - When lost is set, the vulnerable loop keeps reading past coresight_barrier_pkt and writes those OOB kernel words into the attacker-readable perf AUX buffer, yielding an unbounded-until-zero out-of-bounds kernel read to userspace. I:N - The only stores are into the attacker’s own AUX data_pages; there is no out-of-bounds or attacker-controlled write to other kernel memory or integrity-sensitive state. A:H - The global out-of-bounds read is a memory-safety violation that can fault if the walk proceeds into unmapped memory, and per scoring policy the higher availability impact is selected when a crash cannot be ruled out.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 0c3fc4d5fa26092853278145aca9b21fa52a3e93 to < 04bd77ef4f4d9fc6102023b85f4590fc2130aac5 (affected · git)0c3fc4d5fa26092853278145aca9b21fa52a3e93 to < ef0a06acc6b16388640ad367eedfa2a17f1945db (affected · git)0c3fc4d5fa26092853278145aca9b21fa52a3e93 to < 35c1c4bd2d59ad734129d4e232af9d1098023918 (affected · git)0c3fc4d5fa26092853278145aca9b21fa52a3e93 to < 733d4d95c0101d5f277b8e4910411d016e49a9dc (affected · git)0c3fc4d5fa26092853278145aca9b21fa52a3e93 to < 0115687be7b13993066aef602253a53d55f5b11f (affected · git)0c3fc4d5fa26092853278145aca9b21fa52a3e93 to < 5fae8a946ac2df879caf3f79a193d4766d00239b (affected · git)Default: unaffected Linux · cna
Linux Linux 4.14 (affected)0 to < 4.14 (unaffected · semver)4.19.198 through 4.19.* (unaffected · semver)5.4.133 through 5.4.* (unaffected · semver)5.10.51 through 5.10.* (unaffected · semver)5.12.18 through 5.12.* (unaffected · semver)5.13.3 through 5.13.* (unaffected · semver)5.14 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

3

Linux · cna

coresight: tmc-etf: Fix global-out-of-bounds in tmc_update_etf_buffer()

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
a5f3f769c78aac201d8061d23c0677d21cc95b245080a8069a065fd48df4e65a
Ingested
23 Sep 2026, 07:57:11 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected