CVE-2026-100015

l2tp: snapshot sequencing state when building transmit headers

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

l2tp: snapshot sequencing state when building transmit headers

Updates to send_seq from netlink, PPP setsockopt and receive-side
negotiation race with packet transmission. The header length is updated
separately, while transmit reads both fields repeatedly without
synchronization.

For example, transmit can push a ten-byte L2TPv2 header, then a concurrent
writer clears send_seq before the header builder reads it. The builder
writes only six bytes, leaving four bytes of uninitialized skb headroom
in the outgoing packet. The reverse mismatch overwrites the beginning of
the payload. A later hdr_len read can also make the UDP length disagree
with the skb length.

KCSAN reported:

BUG: KCSAN: data-race in l2tp_session_set_header_len / l2tp_xmit_skb

write to 0xffff888100d0944a of 2 bytes by task 116 on cpu 1:
l2tp_session_set_header_len+0x81/0xc0
l2tp_nl_cmd_session_modify+0x122/0x2c0
genl_family_rcv_msg_doit+0x170/0x1d0

read to 0xffff888100d0944a of 2 bytes by task 115 on cpu 0:
l2tp_xmit_skb+0x9c/0xc80
pppol2tp_sendmsg+0x21c/0x2a0
__sys_sendto+0x28c/0x2a0

The bug can lead to leak kernel base address for KASLR bypass, the
corresponding reproducer can be provided per request.

Initialize hdr_len to the maximum header size and leave it unchanged
when sequencing is toggled. Snapshot send_seq once per packet and use
that snapshot for the actual header length and header construction,
including the sequence flag. Use the same length for headroom, the header
push and the UDP length. PPP callers can safely reserve the maximum size;
L2TPv3 header sizes do not depend on sequencing.

Make send_seq a separate bool so READ_ONCE() and WRITE_ONCE() can be used
without sharing a bitfield storage unit with other configuration flags.
Preserve the netlink attribute's existing low-bit truncation.

Analysis

AI-generated

Technical impact

A race condition in the Linux kernel L2TP implementation allows concurrent modifications of the send sequence flag and header length during packet transmission. The unsynchronised reads and writes can create packets with incomplete L2TP headers, leaving uninitialized bytes in the packet payload. The resulting mismatch can be exploited to leak the kernel base address, providing an attacker with a critical jump point for bypassing KASLR and facilitating further kernel exploitation.

Affected Systems

All Linux kernel implementations that include the vulnerable L2TP packet construction code prior to the applied patch are affected. No specific kernel versions are listed, so the impact applies broadly to any kernel build containing the L2TP code path described.

Risk and Exploitability

The flaw is a classic concurrency bug (CWE‑362) that can lead to an information disclosure (CWE‑788). While no CVSS score or EPSS value is available, the EPSS placeholder indicates no data, and the vulnerability is not yet listed in the CISA KEV catalog. The likely attack vector requires an attacker to trigger concurrent L2TP traffic on a target system – e.g., by sending crafted L2TP packets or manipulating PPP session settings – so local or remote network-based exploitation is possible if the victim system runs the vulnerable L2TP service. Immediate patching is advisable because the kernel address leak can be leveraged to mount a full privilege‑escalation attack.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that incorporates the L2TP header race condition fix
  • If an immediate kernel update is not feasible, restrict or disable L2TP services that use header sequencing until a patch is applied
  • Monitor kernel logs for KCSAN data‑race messages and audit L2TP traffic for abnormal packet patterns to detect potential exploitation attempts

Generated by OpenCVE AI on November 30, 2026 at 15:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-788
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: l2tp: snapshot sequencing state when building transmit headers Updates to send_seq from netlink, PPP setsockopt and receive-side negotiation race with packet transmission. The header length is updated separately, while transmit reads both fields repeatedly without synchronization. For example, transmit can push a ten-byte L2TPv2 header, then a concurrent writer clears send_seq before the header builder reads it. The builder writes only six bytes, leaving four bytes of uninitialized skb headroom in the outgoing packet. The reverse mismatch overwrites the beginning of the payload. A later hdr_len read can also make the UDP length disagree with the skb length. KCSAN reported: BUG: KCSAN: data-race in l2tp_session_set_header_len / l2tp_xmit_skb write to 0xffff888100d0944a of 2 bytes by task 116 on cpu 1: l2tp_session_set_header_len+0x81/0xc0 l2tp_nl_cmd_session_modify+0x122/0x2c0 genl_family_rcv_msg_doit+0x170/0x1d0 read to 0xffff888100d0944a of 2 bytes by task 115 on cpu 0: l2tp_xmit_skb+0x9c/0xc80 pppol2tp_sendmsg+0x21c/0x2a0 __sys_sendto+0x28c/0x2a0 The bug can lead to leak kernel base address for KASLR bypass, the corresponding reproducer can be provided per request. Initialize hdr_len to the maximum header size and leave it unchanged when sequencing is toggled. Snapshot send_seq once per packet and use that snapshot for the actual header length and header construction, including the sequence flag. Use the same length for headroom, the header push and the UDP length. PPP callers can safely reserve the maximum size; L2TPv3 header sizes do not depend on sequencing. Make send_seq a separate bool so READ_ONCE() and WRITE_ONCE() can be used without sharing a bitfield storage unit with other configuration flags. Preserve the netlink attribute's existing low-bit truncation.
Title l2tp: snapshot sequencing state when building transmit headers
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-788

    Access of Memory Location After End of Buffer

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:23 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM