CVE-2026-99615
l2tp: only return sessions of the given tunnel in l2tp_session_get()
Check your servers for CVE-2026-99615
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99615 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
l2tp: only return sessions of the given tunnel in l2tp_session_get()
Commit 5f77c18ea556 ("l2tp: use IDR for all session lookups") made pppol2tp_connect() and the netlink session commands find sessions with l2tp_session_get(), passing the socket of the tunnel they name.
L2TPv3 session IDs are unique per network namespace, except that sessions carried over UDP are only unique per UDP socket, the socket of their tunnel. However, l2tp_v3_session_get() only checks the socket when another session has the same session ID. Otherwise it returns the session, whichever tunnel it belongs to. As of now, a session command that names the wrong tunnel acts on a session of another tunnel, and a PPPoL2TP socket for a second L2TPv3 tunnel fails with EEXIST, because it finds session 0 of the first tunnel.
The issue can be reproduced with:
ip l2tp add tunnel tunnel_id 3 peer_tunnel_id 3 encap udp \ local 127.0.0.1 remote 127.0.0.1 udp_sport 5003 udp_dport 6003 ip l2tp add tunnel tunnel_id 4 peer_tunnel_id 4 encap udp \ local 127.0.0.1 remote 127.0.0.1 udp_sport 5004 udp_dport 6004 ip l2tp add session tunnel_id 3 session_id 7 peer_session_id 7 ip l2tp del session tunnel_id 4 session_id 7 ip l2tp show session
Before that commit, the delete fails with "No such device", and session 7 of tunnel 3 is still listed. After that commit, the delete succeeds, and session 7 of tunnel 3 is gone.
This patch will make l2tp_session_get() return NULL when the L2TPv3 session it finds does not belong to the given socket. The receive path calls l2tp_v3_session_get() directly and is not changed.
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.44% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 5f77c18ea55601822f9c495135a5b5d4b499d647, before 649d00a0e1ff2f5a4f5b8c194755f9b9bbd98504 affected from 5f77c18ea55601822f9c495135a5b5d4b499d647, before 26cb789c98bdd4dcc2af6e083eeaa23c4d8715c4 affected from 5f77c18ea55601822f9c495135a5b5d4b499d647, before 2dec8c5a6928f27a40e8880df2af3289693abbcd affected from 5f77c18ea55601822f9c495135a5b5d4b499d647, before a75facf4bb3e866103ddca4f47a6f3ca4b090d8b
Other versions: unaffected
|
| Linux |
affected 6.11 unaffected before 6.11 unaffected from 6.12.118 up to and including 6.12.* unaffected from 6.18.64 up to and including 6.18.* unaffected from 7.3.5 up to and including 7.3.* unaffected 7.4-rc2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99615 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99615
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-99615
trivy image --scanners vuln IMAGE | grep CVE-2026-99615
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/649d00a0e1ff2f5a4f5b8c194755f9b9bbd98504 git.kernel.org
- https://git.kernel.org/stable/c/26cb789c98bdd4dcc2af6e083eeaa23c4d8715c4 git.kernel.org
- https://git.kernel.org/stable/c/2dec8c5a6928f27a40e8880df2af3289693abbcd git.kernel.org
- https://git.kernel.org/stable/c/a75facf4bb3e866103ddca4f47a6f3ca4b090d8b git.kernel.org
Source: the record CVE-2026-99615 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse