CVE-2023-53020l2tp: close all race conditions in l2tp_tunnel_register()
- 4.7MediumCVSS base score
- 0.14%Exploitation in 30 daysEPSS · top 96% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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().
Timeline
ID reserved
By Linux
Published
- 14 months later
· 14 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | Medium4.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Modified | 3.1 | Medium4.7 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.14% · top 96% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.7.
Affected products
- affected 37159ef2c1ae1e696b24b260b241209a19f92c60 – < 2d77e5c0ad79004b5ef901895437e9cce6dfcc7e
- affected 37159ef2c1ae1e696b24b260b241209a19f92c60 – < 77e8ed776cdb1a24b2aab8fe7c6f1f154235e1ce
- affected 37159ef2c1ae1e696b24b260b241209a19f92c60 – < cef0845b6dcfa2f6c2c832e7f9622551456c741d
- affected 37159ef2c1ae1e696b24b260b241209a19f92c60 – < 0b2c59720e65885a394a017d0cf9cab118914682
- affected 3.6
- unaffected < 3.6
- unaffected 5.10.166 – ≤ 5.10.*
- unaffected 5.15.91 – ≤ 5.15.*
- unaffected 6.1.9 – ≤ 6.1.*
- unaffected 6.2 – ≤ *
References
References4
- https://git.kernel.org/stable/c/2d77e5c0ad79004b5ef901895437e9cce6dfcc7e (opens in a new tab)
- https://git.kernel.org/stable/c/77e8ed776cdb1a24b2aab8fe7c6f1f154235e1ce (opens in a new tab)
- https://git.kernel.org/stable/c/cef0845b6dcfa2f6c2c832e7f9622551456c741d (opens in a new tab)
- https://git.kernel.org/stable/c/0b2c59720e65885a394a017d0cf9cab118914682 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2023-59700 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2023-53020)Record last updated .