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

l2tp: fix tunnel and session refcount leak on seq_file release

In pppol2tp_proc_open() and l2tp_dfs_seq_open(), iteration state
(pd->tunnel and pd->session) is kept in seq_file private data to allow
iteration across multiple read() system calls.

However, if userspace closes /proc/net/pppol2tp or /sys/kernel/debug/l2tp/tunnels
before reading to end-of-file (EOF), any tunnel or session reference stored in
pd->tunnel / pd->session is left un-dropped when seq_file private data is freed.

Fix this by dropping any remaining pd->tunnel and pd->session references in
pppol2tp_proc_release() and l2tp_dfs_seq_release() when closing the file.
Published: 2026-08-26
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel flaw in pppol2tp_proc_open and l2tp_dfs_seq_open left tunnel and session reference counts unreleased when a userspace process closed /proc/net/pppol2tp or /sys/kernel/debug/l2tp/tunnels before finishing the read. The faulty code omitted a defensive drop of any remaining pd->tunnel and pd->session references during seq_file release, causing a reference count leak. This vulnerability permits an attacker to cause persistent memory usage or resource exhaustion by repeatedly opening and prematurely closing the proc or debug entries, potentially leading to degraded system performance or instability.

Affected Systems

All Linux kernel builds affected by the identified commit history, which lacks explicit compatible versions in the advisory. The fix resides in the tip of the kernel tree and is intended for all mainstream kernel releases that compile the pppol2tp and l2tp debugfs interfaces.

Risk and Exploitability

The vulnerability allows an attacker with local access to read and close /proc/net/pppol2tp or /sys/kernel/debug/l2tp/tunnels before reaching end‑of‑file, causing a reference count leak that can lead to memory or resource exhaustion over time. The EPSS score is not available, and the CVE is not listed in the CISA KEV catalog, so the likelihood of exploitation cannot be precisely quantified. However, the nature of the flaw suggests that repeated or automated use could degrade system stability.

Generated by OpenCVE AI on August 26, 2026 at 16:18 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the kernel patch that drops lingering tunnel and session references (see the commits 9006c116dd111d457bf5d074990210f70a4ad2c8 and ebe2774e956482dd3c70b8991f6f7654356339e6).
  • Prevent or restrict unauthenticated users from accessing /proc/net/pppol2tp and /sys/kernel/debug/l2tp/tunnels by adjusting file permissions or disabling debugfs for L2TP.
  • If L2TP is not required, unload the l2tp kernel module or stop L2TP services to eliminate the vulnerable vectors.
  • Continuously monitor kernel memory consumption and the count of open tunnel or session objects as a sentinel for potential leakage.

Generated by OpenCVE AI on August 26, 2026 at 16:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 26 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-753

Wed, 26 Aug 2026 14:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: l2tp: fix tunnel and session refcount leak on seq_file release In pppol2tp_proc_open() and l2tp_dfs_seq_open(), iteration state (pd->tunnel and pd->session) is kept in seq_file private data to allow iteration across multiple read() system calls. However, if userspace closes /proc/net/pppol2tp or /sys/kernel/debug/l2tp/tunnels before reading to end-of-file (EOF), any tunnel or session reference stored in pd->tunnel / pd->session is left un-dropped when seq_file private data is freed. Fix this by dropping any remaining pd->tunnel and pd->session references in pppol2tp_proc_release() and l2tp_dfs_seq_release() when closing the file.
Title l2tp: fix tunnel and session refcount leak on seq_file release
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-26T14:36:49.352Z

Reserved: 2026-08-15T05:44:03.930Z

Link: CVE-2026-74735

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-26T15:16:52.057

Modified: 2026-08-26T15:16:52.057

Link: CVE-2026-74735

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-26T16:30:09Z

Weaknesses