# tun: avoid double free in tun_free_netdev

CVE record · `CVE-2021-47082`

- **Identifiers:** `CVE-2021-47082`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 4 Mar 2024
- **Updated:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 4 Mar 2024, 18:06 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: `662ca437e714caaab855b12415d6ffd815985bc0 to before 8eb43d635950e27c29f1e9e49a23b31637f37757` (git)
  - affected: `662ca437e714caaab855b12415d6ffd815985bc0 to before 0c0e566f0387490d16f166808c72e9c772027681` (git)
  - affected: `662ca437e714caaab855b12415d6ffd815985bc0 to before a01a4e9f5dc93335c716fa4023b1901956e8c904` (git)
  - affected: `662ca437e714caaab855b12415d6ffd815985bc0 to before 3cb5ae77799e8ed6ec3fec0b6b4cd07f01650cc5` (git)
  - affected: `662ca437e714caaab855b12415d6ffd815985bc0 to before 158b515f703e75e7d68289bf4d98c664e1d632df` (git)
  - affected: `a81a02460bdf054ca0c60c5aed29941f7134092d` (git)
  - affected: `6fc265f7a86d81e052508d03da555188f5882c3e` (git)
  - affected: `3.10.16 to before 3.11` (semver)
  - affected: `3.11.5 to before 3.12` (semver)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `3.12`
  - unaffected: `before 3.12` (semver)
  - unaffected: `4.19.280 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.240 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.136 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.12 to 5.15.*, inclusive` (semver)
  - unaffected: `5.16 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)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0025, the 16th 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 4 Mar 2024. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/8eb43d635950e27c29f1e9e49a23b31637f37757>
- <https://git.kernel.org/stable/c/0c0e566f0387490d16f166808c72e9c772027681>
- <https://git.kernel.org/stable/c/a01a4e9f5dc93335c716fa4023b1901956e8c904>
- <https://git.kernel.org/stable/c/3cb5ae77799e8ed6ec3fec0b6b4cd07f01650cc5>
- <https://git.kernel.org/stable/c/158b515f703e75e7d68289bf4d98c664e1d632df>

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-47082>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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