# l2tp: prevent possible tunnel refcount underflow

CVE record · `CVE-2024-49940`

- **Identifiers:** `CVE-2024-49940`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 21 Oct 2024
- **Updated:** 30 Oct 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 21 Oct 2024, 18:01 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: `3953ae7b218df4d1e544b98a393666f9ae58a78c to before aa7132362e79abc4f2add4d8657dd1679341edc5` (git)
  - affected: `3953ae7b218df4d1e544b98a393666f9ae58a78c to before 98691b2e28a6c3dac0680914493d54c77f215755` (git)
  - affected: `3953ae7b218df4d1e544b98a393666f9ae58a78c to before f7415e60c25a6108cd7955a20b2e66b6251ffe02` (git)
  - affected: `3953ae7b218df4d1e544b98a393666f9ae58a78c to before 24256415d18695b46da06c93135f5b51c548b950` (git)
  - affected: `b102bfc2a90d14f342580285782a9a51c74f7369` (git)
  - affected: `10c15ddabbcf888922adbdd44ca3fecf6eab19d9` (git)
  - affected: `8d1c650d452c53fcb3f02a7b1d772741639f89a4` (git)
  - affected: `12b5fb58ac993c24210cf8cbc72d407d3a4e6490` (git)
  - affected: `aef37401b467a0b1a9517c69924a1d66937e0789` (git)
  - affected: `3.2.99 to before 3.3` (semver)
  - affected: `3.16.54 to before 3.17` (semver)
  - affected: `4.4.225 to before 4.5` (semver)
  - and 2 more
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.15`
  - unaffected: `before 4.15` (semver)
  - unaffected: `6.1.191 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.160 to 6.6.*, inclusive` (semver)
  - unaffected: `6.11.3 to 6.11.*, inclusive` (semver)
  - unaffected: `6.12 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel's L2TP subsystem has a tunnel reference count underflow issue, where a session could briefly point to a tunnel before the tunnel's refcount was incremented. The source describes the window as small and does not state an attacker requirement, impact, or triggering condition beyond colliding L2TPv3 session IDs. The listed affected ranges begin at 4.15 and are fixed in the stable branches 6.1.191, 6.6.160, 6.11.3 and 6.12. Upgrade to a kernel version containing the fix for your branch.

Written 13 Nov 2026.

## 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.0032, the 26th 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 Oct 2024. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/aa7132362e79abc4f2add4d8657dd1679341edc5>
- <https://git.kernel.org/stable/c/98691b2e28a6c3dac0680914493d54c77f215755>
- <https://git.kernel.org/stable/c/f7415e60c25a6108cd7955a20b2e66b6251ffe02>
- <https://git.kernel.org/stable/c/24256415d18695b46da06c93135f5b51c548b950>

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

---

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