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