Public bug reported:
Ubuntu 22.04.5 LTS, linux-image-generic-hwe-22.04 6.8.0-149.149~22.04.1
(installed 2026-11-12).
VPN: NetworkManager L2TP/IPsec (network-manager-l2tp
1.20.20-1~ubuntu22.04.1~ppa1, xl2tpd 1.3.16-1ubuntu0.1 with kernel L2TP
support, strongswan 5.9.5-2ubuntu2.8, ppp 2.4.9-1+1ubuntu3).
What happens:
1. As soon as the L2TP/IPsec VPN connects, the kernel logs three warnings from
the same kworker (Workqueue: events xfrm_trans_reinject):
refcount_t: addition on 0; use-after-free (lib/refcount.c:25)
refcount_t: underflow; use-after-free (lib/refcount.c:28)
refcount_t: saturated; leaking memory (lib/refcount.c:22)
Call trace: l2tp_tunnel_get_session <- l2tp_udp_recv_core <-
l2tp_udp_encap_recv <- udp_queue_rcv_one_skb <- ... <- xfrm4_rcv_encap_finish2
<- xfrm_trans_reinject
2. The VPN keeps working. 17 minutes later, Docker attaches a container veth to
a user-defined bridge:
WARNING at mm/slub.c:4427 free_large_kmalloc (Workqueue: events
switchdev_deferred_process_work, switchdev_deferred_process -> kfree)
then 143 x "WARNING ... at net/l2tp/l2tp_ppp.c:166 pppol2tp_xmit+0x1e1/0x220
[l2tp_ppp]" within 40 s,
then an Oops in __kmalloc and a full system freeze (hard power-off needed).
3. Second occurrence the same day (journal lost by the forced power-off, pstore
only): refcount_warn_saturate in a kworker, "Oops: 0000 [#1] PREEMPT SMP PTI"
in kmalloc_trace (gnome-shell), Oops #2 in __ww_mutex_lock (Xorg),
pppol2tp_xmit warnings.
Notes:
- Possibly related upstream: CVE-2026-63918 "l2tp: use refcount_inc_not_zero in
l2tp_session_get_by_ifname".
- The changelog between 6.8.0-138 and 6.8.0-149 contains l2tp and bridge
changes ("l2tp: Don't assign net->gen->ptr[] for pppol2tp_net_ops", "net:
bridge: remove stale rcu_barrier() in br_multicast_dev_del()", "net: bridge:
mst: move switchdev call outside rcu").
- Not yet tested on 6.8.0-138.
Attached: kernel-logs-l2tp-6.8.0-149.txt (kernel log of the first crash:
VPN connect, then Docker bridge and freeze). pstore-both-
crashes-6.8.0-149.txt: pstore dmesg of both crashes.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-6.8.0-149-generic 6.8.0-149.149~22.04.1
ProcVersionSignature: Ubuntu 6.8.0-149.149~22.04.1-generic 6.8.12
Uname: Linux 6.8.0-149-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.10
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC0: lolod 3561 F.... pulseaudio
/dev/snd/controlC1: lolod 3561 F.... pulseaudio
CRDA: N/A
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sat Nov 14 13:20:29 2026
InstallationDate: Installed on 2023-01-01 (1413 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64
(20220809.1)
Lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 8087:0a2b Intel Corp. Bluetooth wireless interface
Bus 001 Device 003: ID 0b0e:0301 GN Netcom Jabra EVOLVE 20
Bus 001 Device 002: ID 0000:3825 USB OPTICAL MOUSE
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Dell Inc. Latitude 7480
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=fr_FR.UTF-8
SHELL=/bin/bash
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.8.0-149-generic
root=UUID=4632f442-8f59-4903-accc-070fdf5e5038 ro quiet splash vt.handoff=7
RelatedPackageVersions:
linux-restricted-modules-6.8.0-149-generic N/A
linux-backports-modules-6.8.0-149-generic N/A
linux-firmware 20220329.git681281e4-0ubuntu3.42
SourcePackage: linux-hwe-6.8
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/05/2024
dmi.bios.release: 1.40
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.40.0
dmi.board.name: 00F6D3
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.asset.tag: LT092465
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias:
dmi:bvnDellInc.:bvr1.40.0:bd11/05/2024:br1.40:svnDellInc.:pnLatitude7480:pvr:rvnDellInc.:rn00F6D3:rvrA00:cvnDellInc.:ct10:cvr:sku07A0:
dmi.product.family: Latitude
dmi.product.name: Latitude 7480
dmi.product.sku: 07A0
dmi.sys.vendor: Dell Inc.
** Affects: linux-hwe-6.8 (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug jammy third-party-packages
** Attachment added: "Kernel log of the first crash (VPN connect, Docker,
freeze)"
https://bugs.launchpad.net/bugs/2174480/+attachment/6018061/+files/kernel-logs-l2tp-6.8.0-149.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174480
Title:
6.8.0-149: refcount use-after-free in l2tp_tunnel_get_session when an
L2TP/IPsec VPN connects, then kernel oops / full freeze
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-hwe-6.8/+bug/2174480/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs