Menu

Star on GitHub · 3.2k

CVE-2021-47346

7.1 · HIGH

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 inserti…

Published May 21, 2024CWE-125EPSS 0.25%

Overview

CVE-2021-47346 is a high-severity vulnerability. It was published on May 21, 2024 and has a CVSS 3.1 base score of 7.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.1, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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/0x

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2021-47346?

CVE-2021-47346 is a high-severity vulnerability. It was published on May 21, 2024 and has a CVSS 3.1 base score of 7.1 (HIGH).

How severe is CVE-2021-47346?

This vulnerability has a CVSS 3.1 base score of 7.1, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-47346?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-47346?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2021-47346 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2021

View all