# tracing: Correct the length check which causes memory corruption

CVE record · `CVE-2021-47274`

- **Identifiers:** `CVE-2021-47274`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Weakness (CWE):** [CWE-125](https://cwe.mitre.org/data/definitions/125.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 21 May 2024
- **Updated:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 21 May 2024, 14:20 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `2e584b1a02eeb860e286d39bc408b25ebc5ec844 to before edcce01e0e50840a9aa6a70baed21477bdd2c9f9` (git)
  - affected: `e46d433754420b4d6513ca389403de88a0910279 to before 2d598902799886d67947406f26ee8e5fd2ca097f` (git)
  - affected: `0572fc6a510add9029b113239eaabf4b5bce8ec9 to before 31ceae385556c37e4d286cb6378696448f566883` (git)
  - affected: `a0997a86f5c0085e183ddee5fb72091d584d3d16 to before d63f00ec908b3be635ead5d6029cc94246e1f38d` (git)
  - affected: `7c93d8cff582c459350d6f8906eea6e4cd60d959 to before 43c32c22254b9328d7abb1c2b0f689dc67838e60` (git)
  - affected: `b220c049d5196dd94d992dd2dc8cba1a5e6123bf to before b16a249eca2230c2cd66fa1d4b94743bd9b6ef92` (git)
  - affected: `b220c049d5196dd94d992dd2dc8cba1a5e6123bf to before 3e08a9f9760f4a70d633c328a76408e62d6f80a3` (git)
  - affected: `4.9.258 to before 4.9.273` (semver)
  - affected: `4.14.222 to before 4.14.237` (semver)
  - affected: `4.19.177 to before 4.19.195` (semver)
  - affected: `5.4.99 to before 5.4.126` (semver)
  - affected: `5.10.17 to before 5.10.44` (semver)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.11`
  - unaffected: `before 5.11` (semver)
  - unaffected: `4.9.273 to 4.9.*, inclusive` (semver)
  - unaffected: `4.14.237 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.195 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.126 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.44 to 5.10.*, inclusive` (semver)
  - unaffected: `5.12.11 to 5.12.*, inclusive` (semver)
  - unaffected: `5.13 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (Linux) (used for this record)
- 9.8 Critical, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0075, the 55th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 21 May 2024. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2021-47274](https://www.cve.org/CVERecord?id=CVE-2021-47274)
- [NVD: CVE-2021-47274](https://nvd.nist.gov/vuln/detail/CVE-2021-47274)

### References from the CNA

- <https://git.kernel.org/stable/c/edcce01e0e50840a9aa6a70baed21477bdd2c9f9>
- <https://git.kernel.org/stable/c/2d598902799886d67947406f26ee8e5fd2ca097f>
- <https://git.kernel.org/stable/c/31ceae385556c37e4d286cb6378696448f566883>
- <https://git.kernel.org/stable/c/d63f00ec908b3be635ead5d6029cc94246e1f38d>
- <https://git.kernel.org/stable/c/43c32c22254b9328d7abb1c2b0f689dc67838e60>
- <https://git.kernel.org/stable/c/b16a249eca2230c2cd66fa1d4b94743bd9b6ef92>
- <https://git.kernel.org/stable/c/3e08a9f9760f4a70d633c328a76408e62d6f80a3>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2021-47274>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2021-47274/>. Everything for agents: <https://agentprime.io/llms.txt>.
