CVE-2023-53020 Details
Description
In the Linux kernel, the following vulnerability has been resolved: l2tp: close all race conditions in l2tp_tunnel_register() The code in l2tp_tunnel_register() is racy in several ways: 1. It modifies the tunnel socket _after_ publishing it. 2. It calls setup_udp_tunnel_sock() on an existing socket without locking. 3. It changes sock lock class on fly, which triggers many syzbot reports. This patch amends all of them by moving socket initialization code before publishing and under sock lock. As suggested by Jakub, the l2tp lockdep class is not necessary as we can just switch to bh_lock_sock_nested().
A vulnerability in the Linux kernel's L2TP (Layer 2 Tunneling Protocol) implementation has been addressed. The issue was related to race conditions in the 'l2tp_tunnel_register()' function. The vulnerability arose because the function modified the tunnel socket after it had been published, called 'setup_udp_tunnel_sock()' on an existing socket without proper locking, and changed the socket lock class on the fly, leading to multiple reports from syzbot. The patch resolves these issues by moving the socket initialization before publication and under the socket lock, as recommended by Jakub. It also eliminates the unnecessary L2TP lock dependency class by switching to 'bh_lock_sock_nested()'.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/0b2c59720e65885a394a017d0cf9cab118914682 | kernel.org | Patch |
| https://git.kernel.org/stable/c/2d77e5c0ad79004b5ef901895437e9cce6dfcc7e | kernel.org | Patch |
| https://git.kernel.org/stable/c/77e8ed776cdb1a24b2aab8fe7c6f1f154235e1ce | kernel.org | Patch |
| https://git.kernel.org/stable/c/cef0845b6dcfa2f6c2c832e7f9622551456c741d | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 3.6, < 5.10.166 >= 5.11, < 5.15.91 >= 5.16, < 6.1.9 6.2 rc1 6.2 rc2 6.2 rc3 6.2 rc4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Apr 15, 2025 | Initial Analysis | [email protected] |
| Mar 27, 2025 | New CVE Received | kernel.org |