mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Kimon (Kimon Zagkouris)" <kimon.zagkouris@e-technostar.com>
To: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Cc: "jchapman@katalix.com" <jchapman@katalix.com>,
	"tparkin@katalix.com" <tparkin@katalix.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [RESEND] l2tp: panic in l2tp_tunnel_get_session via xfrm_trans_reinject (Ubuntu 6.8.0-149)
Date: Wed, 2 Dec 2026 12:21:17 +0000	[thread overview]
Message-ID: <TYUPR04MB6962273762EAD6DC85742F6AD74C2@TYUPR04MB6962.apcprd04.prod.outlook.com> (raw)

Hello,
I hit a kernel panic in the L2TP receive path on an Ubuntu 22.04 HWE
kernel (6.8.0-149-generic, package 6.8.0-149.149~22.04.1). This is a
distribution kernel, not mainline. I have not tested a mainline kernel.
I am reporting it in case it matches a known or already fixed problem in
l2tp_core, so that Ubuntu can pick up the fix.
Setup
-----
Two NetworkManager L2TP/IPsec VPN connections (network-manager-l2tp
1.20.0, xl2tpd 1.3.16, strongswan 5.9.5). ppp0 was up at crash time.
AMD CPU, amdgpu GPU, x86_64.
Crash seen after several hours of uptime with the VPN passing traffic.
Not deterministic.
Hangs also seen on boots of 6.8.0-149 on 2026-11-30 and 2026-12-01.
After reverting to 6.8.0-138 I have not yet seen a hang. That window is
short, so I cannot say 138 is unaffected.
Panic (efi_pstore dump, uptime 12740 s)
---------------------------------------
RIP: 0010:l2tp_tunnel_get_session+0x38/0xd0 [l2tp_core]
RSP: 0018:ffffd4afc03efc08 EFLAGS: 00010286
RAX: 0000000000000009 RBX: 845edfffffffff78 RCX: ffff8f3fe235887a
RDX: 0000000000000012 RSI: 000000000000a966 RDI: ffff8f3bc1507e00
Call Trace:
<TASK>
l2tp_udp_recv_core+0xb4/0x350 [l2tp_core]
? __pfx_l2tp_udp_encap_recv+0x10/0x10 [l2tp_core]
l2tp_udp_encap_recv+0x2c/0x54 [l2tp_core]
udp_queue_rcv_one_skb+0x278/0x550
udp_queue_rcv_skb+0x4f/0x80
udp_unicast_rcv_skb+0x7a/0xa0
__udp4_lib_rcv+0x616/0x6d0
udp_rcv+0x25/0x40
ip_protocol_deliver_rcu+0xd8/0x210
ip_local_deliver_finish+0x77/0xa0
ip_local_deliver+0x6e/0x120
xfrm4_rcv_encap_finish2+0x3c/0x60
xfrm_trans_reinject+0xed/0x190
process_one_work+0x181/0x3a0
worker_thread+0x18b/0x330
kthread+0xef/0x120
ret_from_fork+0x44/0x70
ret_from_fork_asm+0x1b/0x30
</TASK>
Kernel panic - not syncing: Fatal exception in interrupt
RBX is not a valid kernel pointer. It looks like the session hash-list
walk in l2tp_tunnel_get_session followed a corrupted or freed entry.
Modules loaded include l2tp_ppp, l2tp_netlink, l2tp_core, esp4,
xfrm_user, xfrm_algo, udp_tunnel, ip6_udp_tunnel.
What I found
------------
I did not find a report with this exact trace. Possibly related:
CVE-2024-49940 (session registered before tunnel refcount is raised) and
a 2024 netdev thread about a NULL dereference reached from
l2tp_udp_recv_core. I could not tell whether the Ubuntu 6.8.0-149 tree
contains or lacks those fixes.
Questions
---------
Does this look like a known issue, or one fixed upstream?
If so, which commit should Ubuntu backport to 6.8 stable?
If not, what extra data helps? I can provide the full pstore dump,
lsmod, and config.
Thanks,
Kimon

             reply	other threads:[~2026-12-02 12:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 12:21 Kimon (Kimon Zagkouris) [this message]
2026-12-02 15:50 ` Paolo Abeni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=TYUPR04MB6962273762EAD6DC85742F6AD74C2@TYUPR04MB6962.apcprd04.prod.outlook.com \
    --to=kimon.zagkouris@e-technostar.com \
    --cc=jchapman@katalix.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=tparkin@katalix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®