# CVE-2023-53809: l2tp: Avoid possible recursive deadlock in l2tp\_tunnel\_register()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-12-09T00:01:07.120Z
- **Modified:** 2026-06-17T06:46:06.580Z

## Who should check

- Anyone running Linux \>= 2d77e5c0ad79004b5ef901895437e9cce6dfcc7e, \< 4a413d360959962995e16a899cf2b9ef53e9fcb9; \>= 77e8ed776cdb1a24b2aab8fe7c6f1f154235e1ce, \< f6df58aa15f7d469f69b1dd21b001ff483255244; \>= cef0845b6dcfa2f6c2c832e7f9622551456c741d, \< 4bb736b40475528ac1aa8c98b368563618488a70; \>= 0b2c59720e65885a394a017d0cf9cab118914682, \< 5370647dd745bb3d8f37057006be207ddd8e9314; \>= 0b2c59720e65885a394a017d0cf9cab118914682, \< 9ca5e7ecab064f1f47da07f7c1ddf40e4bc0e5ac; \>= 5.10.166, \< 5.10.173; \>= 5.15.91, \< 5.15.99; \>= 6.1.9, \< 6.1.16
- Anyone running Linux 6.2

## Description

In the Linux kernel, the following vulnerability has been resolved:

l2tp: Avoid possible recursive deadlock in l2tp\_tunnel\_register()

When a file descriptor of pppol2tp socket is passed as file descriptor
of UDP socket, a recursive deadlock occurs in l2tp\_tunnel\_register().
This situation is reproduced by the following program:

int main(void)
{
	int sock;
	struct sockaddr\_pppol2tp addr;

	sock = socket(AF\_PPPOX, SOCK\_DGRAM, PX\_PROTO\_OL2TP);
	if (sock \< 0) {
		perror("socket");
		return 1;
	}

	addr.sa\_family = AF\_PPPOX;
	addr.sa\_protocol = PX\_PROTO\_OL2TP;
	addr.pppol2tp.pid = 0;
	addr.pppol2tp.fd = sock;
	addr.pppol2tp.addr.sin\_family = PF\_INET;
	addr.pppol2tp.addr.sin\_port = htons(0);
	addr.pppol2tp.addr.sin\_addr.s\_addr = inet\_addr("192.168.0.1");
	addr.pppol2tp.s\_tunnel = 1;
	addr.pppol2tp.s\_session = 0;
	addr.pppol2tp.d\_tunnel = 0;
	addr.pppol2tp.d\_session = 0;

	if (connect(sock, (const struct sockaddr \*)&addr, sizeof(addr)) \< 0) {
		perror("connect");
		return 1;
	}

	return 0;
}

This program causes the following lockdep warning:

 ============================================
 WARNING: possible recursive locking detected
 6.2.0-rc5-00205-gc96618275234 \#56 Not tainted
 --------------------------------------------
 repro/8607 is trying to acquire lock:
 ffff8880213c8130 (sk\_lock-AF\_PPPOX){+.+.}-{0:0}, at: l2tp\_tunnel\_register+0x2b7/0x11c0

 but task is already holding lock:
 ffff8880213c8130 (sk\_lock-AF\_PPPOX){+.+.}-{0:0}, at: pppol2tp\_connect+0xa82/0x1a30

 other info that might help us debug this:
  Possible unsafe locking scenario:

        CPU0
        ----
   lock(sk\_lock-AF\_PPPOX);
   lock(sk\_lock-AF\_PPPOX);

  \*\*\* DEADLOCK \*\*\*

  May be due to missing lock nesting notation

 1 lock held by repro/8607:
  \#0: ffff8880213c8130 (sk\_lock-AF\_PPPOX){+.+.}-{0:0}, at: pppol2tp\_connect+0xa82/0x1a30

 stack backtrace:
 CPU: 0 PID: 8607 Comm: repro Not tainted 6.2.0-rc5-00205-gc96618275234 \#56
 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.1-2.fc37 04/01/2014
 Call Trace:
  \<TASK\>
  dump\_stack\_lvl+0x100/0x178
  \_\_lock\_acquire.cold+0x119/0x3b9
  ? lockdep\_hardirqs\_on\_prepare+0x410/0x410
  lock\_acquire+0x1e0/0x610
  ? l2tp\_tunnel\_register+0x2b7/0x11c0
  ? lock\_downgrade+0x710/0x710
  ? \_\_fget\_files+0x283/0x3e0
  lock\_sock\_nested+0x3a/0xf0
  ? l2tp\_tunnel\_register+0x2b7/0x11c0
  l2tp\_tunnel\_register+0x2b7/0x11c0
  ? sprintf+0xc4/0x100
  ? l2tp\_tunnel\_del\_work+0x6b0/0x6b0
  ? debug\_object\_deactivate+0x320/0x320
  ? lockdep\_init\_map\_type+0x16d/0x7a0
  ? lockdep\_init\_map\_type+0x16d/0x7a0
  ? l2tp\_tunnel\_create+0x2bf/0x4b0
  ? l2tp\_tunnel\_create+0x3c6/0x4b0
  pppol2tp\_connect+0x14e1/0x1a30
  ? pppol2tp\_put\_sk+0xd0/0xd0
  ? aa\_sk\_perm+0x2b7/0xa80
  ? aa\_af\_perm+0x260/0x260
  ? bpf\_lsm\_socket\_connect+0x9/0x10
  ? pppol2tp\_put\_sk+0xd0/0xd0
  \_\_sys\_connect\_file+0x14f/0x190
  \_\_sys\_connect+0x133/0x160
  ? \_\_sys\_connect\_file+0x190/0x190
  ? lockdep\_hardirqs\_on+0x7d/0x100
  ? ktime\_get\_coarse\_real\_ts64+0x1b7/0x200
  ? ktime\_get\_coarse\_real\_ts64+0x147/0x200
  ? \_\_audit\_syscall\_entry+0x396/0x500
  \_\_x64\_sys\_connect+0x72/0xb0
  do\_syscall\_64+0x38/0xb0
  entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

This patch fixes the issue by getting/creating the tunnel before
locking the pppol2tp socket.

## Affected and fixed versions

- Linux: \>= 2d77e5c0ad79004b5ef901895437e9cce6dfcc7e, \< 4a413d360959962995e16a899cf2b9ef53e9fcb9; \>= 77e8ed776cdb1a24b2aab8fe7c6f1f154235e1ce, \< f6df58aa15f7d469f69b1dd21b001ff483255244; \>= cef0845b6dcfa2f6c2c832e7f9622551456c741d, \< 4bb736b40475528ac1aa8c98b368563618488a70; \>= 0b2c59720e65885a394a017d0cf9cab118914682, \< 5370647dd745bb3d8f37057006be207ddd8e9314; \>= 0b2c59720e65885a394a017d0cf9cab118914682, \< 9ca5e7ecab064f1f47da07f7c1ddf40e4bc0e5ac; \>= 5.10.166, \< 5.10.173; \>= 5.15.91, \< 5.15.99; \>= 6.1.9, \< 6.1.16 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 6.1.16 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53809. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53809.md
Affected: Linux >= 2d77e5c0ad79004b5ef901895437e9cce6dfcc7e, < 4a413d360959962995e16a899cf2b9ef53e9fcb9; >= 77e8ed776cdb1a24b2aab8fe7c6f1f154235e1ce, < f6df58aa15f7d469f69b1dd21b001ff483255244; >= cef0845b6dcfa2f6c2c832e7f9622551456c741d, < 4bb736b40475528ac1aa8c98b368563618488a70; >= 0b2c59720e65885a394a017…
Fixed in: Linux 4a413d360959962995e16a899cf2b9ef53e9fcb9, Linux 4bb736b40475528ac1aa8c98b368563618488a70, Linux 5370647dd745bb3d8f37057006be207ddd8e9314, Linux 9ca5e7ecab064f1f47da07f7c1ddf40e4bc0e5ac, Linux 5.10.173, Linux 5.15.99, Linux 6.1.16

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53809 being exploited?

There is no confirmed exploitation: CVE-2023-53809 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53809?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-53809?

Linux \>= 2d77e5c0ad79004b5ef901895437e9cce6dfcc7e, \< 4a413d360959962995e16a899cf2b9ef53e9fcb9; \>= 77e8ed776cdb1a24b2aab8fe7c6f1f154235e1ce, \< f6df58aa15f7d469f69b1dd21b001ff483255244; \>= cef0845b6dcfa2f6c2c832e7f9622551456c741d, \< 4bb736b40475528ac1aa8c98b368563618488a70; \>= 0b2c59720e65885a394a017d0cf9cab118914682, \< 5370647dd745bb3d8f37057006be207ddd8e9314; \>= 0b2c59720e65885a394a017d0cf9cab118914682, \< 9ca5e7ecab064f1f47da07f7c1ddf40e4bc0e5ac; \>= 5.10.166, \< 5.10.173; \>= 5.15.91, \< 5.15.99; \>= 6.1.9, \< 6.1.16; Linux 6.2.

### Is there a fix for CVE-2023-53809?

Yes. Fixed in Linux 4a413d360959962995e16a899cf2b9ef53e9fcb9, Linux 4bb736b40475528ac1aa8c98b368563618488a70, Linux 5370647dd745bb3d8f37057006be207ddd8e9314, Linux 9ca5e7ecab064f1f47da07f7c1ddf40e4bc0e5ac, Linux 5.10.173, Linux 5.15.99, Linux 6.1.16. Upgrade Linux to 6.1.16 or later.

### How do I check if I'm affected by CVE-2023-53809?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/4a413d360959962995e16a899cf2b9ef53e9fcb9>
- other: <https://git.kernel.org/stable/c/f6df58aa15f7d469f69b1dd21b001ff483255244>
- other: <https://git.kernel.org/stable/c/4bb736b40475528ac1aa8c98b368563618488a70>
- other: <https://git.kernel.org/stable/c/5370647dd745bb3d8f37057006be207ddd8e9314>
- other: <https://git.kernel.org/stable/c/9ca5e7ecab064f1f47da07f7c1ddf40e4bc0e5ac>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53809>

HTML: <https://flawdb.com/CVE-2023-53809> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53809>
