Also reproducible on 6.8.0-149.149 (noble): same three refcount_t warnings
(addition on 0 / underflow / saturated) from xfrm_trans_reinject ->
l2tp_tunnel_get_session within ~1 s of a NetworkManager-l2tp + strongSwan
L2TP/IPsec connection coming up. 6.8.0-142 is clean on the same machine.

I compared net/l2tp/l2tp_ppp.c between the Ubuntu-6.8.0-142.142,
-146.146 and -149.149 tags in the noble kernel git, which confirms the
binary analysis in comments #14 and #15 at source level: the backported
pppol2tp_ioctl() calls l2tp_session_dec_refcount(session) (renamed
l2tp_session_put() in -149, logic unchanged) on both exit paths, while
6.8's pppol2tp_sock_to_session() only does sock_hold(sk). Both calls
should be sock_put(sock->sk). The 142 -> 146 diff of the function and a
full dmesg from -149 are attached to bug 2173669, which I have marked as
a duplicate of this one.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2169477

Title:
  [regression] 6.8.0-146: l2tp/pppol2tp use-after-free -> kernel panic /
  soft lockup (L2TP/IPsec, xl2tpd)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2169477/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to