Review reviewHigh

CVE-2021-47346

Linux Linux, linux kernel

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_u...

CVSS
7.1
EPSS
0.25%
16.2% percentile
CISA KEV
Not listed
Published
2024.05.22
PRIORITY ASSESSMENT

Review review

The CVSS severity warrants an early asset and exposure review.

Known exploitationNot established by KEV
Exploit probability0.25%
Technical severityCVSS 7.1

Vulnerability overview

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_u...

Affected product and versions

Product
Linux Linux, linux kernel
Affected versions
>= 0c3fc4d5fa26092853278145aca9b21fa52a3e93 < 04bd77ef4f4d9fc6102023b85f4590fc2130aac5, >= 0c3fc4d5fa26092853278145aca9b21fa52a3e93 < ef0a06acc6b16388640ad367eedfa2a17f1945db, >= 0c3fc4d5fa26092853278145aca9b21fa52a3e93 < 35c1c4bd2d59ad734129d4e232af9d1098023918, >= 0c3fc4d5fa26092853278145aca9b21fa52a3e93 < 733d4d95c0101d5f277b8e4910411d016e49a9dc, >= 0c3fc4d5fa26092853278145aca9b21fa52a3e93 < 0115687be7b13993066aef602253a53d55f5b11f, >= 0c3fc4d5fa26092853278145aca9b21fa52a3e93 < 5fae8a946ac2df879caf3f79a193d4766d00239b, >= 4.14, >= 4.14 < 4.19.198, >= 4.20 < 5.4.133, >= 5.5 < 5.10.51, >= 5.11 < 5.12.18, >= 5.13 < 5.13.3
Fixed versions
4.19.198, 5.4.133, 5.10.51, 5.12.18, 5.13.3

Recommended response sequence

Confirm exposure before applying a vendor-supported change.

Full remediation guide
  1. 1
    Identify

    Confirm that Linux Linux, linux kernel and an affected version are present.

  2. 2
    Prioritize

    Combine exploitation signals with asset exposure and business criticality.

  3. 3
    Remediate

    Follow the vendor advisory or supported update path and preserve rollback options.

  4. 4
    Verify

    Recheck the version, service health, access paths, and relevant logs.

Technical data

CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
CWE
CWE-125