In the Linux kernel, the following vulnerability has been resolved: l2tp: prevent possible tunnel refcount underflow When a session is created, it sets a backpointer to its tunnel.
- CVSS
- 5.5Medium
- Chance of exploitation (EPSS)
- —
- Published
- Oct 21, 2024
- In the news
- 9 stories
What to do
A moderate security flaw in Linux kernel that needs access to the machine itself. No attacks are reported yet; it can go in your normal patch cycle.
Action: Apply the vendor's update or follow its advisory.
Fixed in: 3.3, 3.17, 4.5, 4.10, 4.15
Affected versions
- Linux
- 3.16.54 to before 3.17; 3.2.99 to before 3.3; 4.14.182 to before 4.15; 4.15; 4.4.225 to before 4.5; 4.9.225 to before 4.10
Description
In the Linux kernel, the following vulnerability has been resolved:
l2tp: prevent possible tunnel refcount underflow
When a session is created, it sets a backpointer to its tunnel. When
the session refcount drops to 0, l2tp_session_free drops the tunnel
refcount if session->tunnel is non-NULL. However, session->tunnel is
set in l2tp_session_create, before the tunnel refcount is incremented
by l2tp_session_register, which leaves a small window where
session->tunnel is non-NULL when the tunnel refcount hasn't been
bumped.
Moving the assignment to l2tp_session_register is trivial but
l2tp_session_create calls l2tp_session_set_header_len which uses
session->tunnel to get the tunnel's encap. Add an encap arg to
l2tp_session_set_header_len to avoid using session->tunnel.
If l2tpv3 sessions have colliding IDs, it is possible for
l2tp_v3_session_get to race with l2tp_session_register and fetch a
session which doesn't yet have session->tunnel set. Add a check for
this case.
Affected products
Get alerts for these →Timeline 12
Latest change: USN-9192-1: Linux kernel (NVIDIA) vulnerabilities (Nov 24, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Tue, Nov 24, 2026
- AdvisoryUSN-9192-1: Linux kernel (NVIDIA) vulnerabilitiesUbuntu · 08:42 UTC
- AdvisoryUSN-9191-1: Linux kernel (Azure) vulnerabilitiesUbuntu · 08:42 UTC
- AdvisoryUSN-9173-3: Linux kernel (NVIDIA) vulnerabilitiesUbuntu · 08:41 UTC
- AdvisoryUSN-9174-2: Linux kernel (Low Latency NVIDIA) vulnerabilitiesUbuntu · 08:40 UTC
Fri, Nov 20, 2026
- AdvisoryUSN-9183-1: Linux kernel (FIPS) vulnerabilitiesUbuntu · 15:34 UTC
- AdvisoryUSN-9173-2: Linux kernel vulnerabilitiesUbuntu · 15:33 UTC
Thu, Nov 19, 2026
- AdvisoryUSN-9175-1: Linux kernel (Oracle) vulnerabilitiesUbuntu · 15:43 UTC
- AdvisoryUSN-9173-1: Linux kernel vulnerabilitiesUbuntu · 15:13 UTC
- AdvisoryUSN-9174-1: Linux kernel (GCP FIPS) vulnerabilitiesUbuntu · 15:12 UTC
Sun, Nov 15, 2026
Mon, Oct 21, 2024
- CVECVE-2024-49940 published (CVSS 5.5)CVE Program · 18:15 UTC
References 4
- git.kernel.org Patch /stable/c/24256415d18695b46da06c93135f5b51c548b950
- git.kernel.org Patch /stable/c/f7415e60c25a6108cd7955a20b2e66b6251ffe02
- git.kernel.org /stable/c/98691b2e28a6c3dac0680914493d54c77f215755
- git.kernel.org /stable/c/aa7132362e79abc4f2add4d8657dd1679341edc5