{"id":14956,"date":"2026-09-04T19:02:19","date_gmt":"2026-09-04T11:02:19","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-63918"},"modified":"2026-09-04T19:02:19","modified_gmt":"2026-09-04T11:02:19","slug":"cve-2026-63918","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-63918","title":{"rendered":"CVE-2026-63918 [HIGH] &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nl2tp: use refcount_in"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>l2tp: use refcount_inc_not_zero in l2tp_session_get_by_ifname<\/p>\n<p>A reader in l2tp_session_get_by_ifname() can return a pointer to a<br \/>\nsession whose refcount has reached zero. The getter takes its<br \/>\nreference with plain refcount_inc(), but every other session getter<br \/>\nin the same file (l2tp_v2_session_get, l2tp_v3_session_get, and the<br \/>\ncorresponding _get_next variants) uses refcount_inc_not_zero()<br \/>\nbecause the IDR\/RCU lookup can race with refcount_dec_and_test() -&gt;<br \/>\nl2tp_session_free() -&gt; kfree_rcu(). The ifname getter is the only<br \/>\noutlier; the inconsistency was raised on-list after 979c017803c4<br \/>\n(&#8220;l2tp: use list_del_rcu in l2tp_session_unhash&#8221;).<\/p>\n<p>A reader inside rcu_read_lock_bh() that matches session-&gt;ifname can<br \/>\nbe preempted between the strcmp() and the refcount_inc(). If the<br \/>\nlast reference drops on another CPU in that window, the reader&#8217;s<br \/>\nrefcount_inc() runs on a counter that has reached zero. refcount_t<br \/>\ncatches the addition-on-zero, prints &#8220;refcount_t: addition on 0;<br \/>\nuse-after-free&#8221;, saturates the counter, and returns the saturated<br \/>\npointer to the caller. Session memory is held live by the in-flight<br \/>\nRCU read section, but the kfree_rcu() callback queued from<br \/>\nl2tp_session_free() will free it once the grace period closes; a<br \/>\ncaller that dereferences the returned session past that point hits<br \/>\na slab-use-after-free. On PREEMPT_RT local_bh_disable() is a per-CPU<br \/>\nsleeping lock and the preemption window is real; on stock PREEMPT<br \/>\nkernels local_bh_disable() is a preempt_count increment that closes<br \/>\nthe cross-CPU race in practice (see below).<\/p>\n<p>Use refcount_inc_not_zero() and continue the list walk on failure,<br \/>\nmatching the other session getters in the file. The ifname getter<br \/>\nis the only session getter in net\/l2tp\/ that still uses the bare<br \/>\nrefcount_inc() pattern; this change restores file-internal<br \/>\nconsistency. The success path is unchanged.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>l2tp: use refcount_inc_not_zero in l2tp_session_get_by_ifname<\/p>\n<p>A reader in l2tp_session_get_by_ifname() can return a pointer to a<br \/>\ns<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-14956","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/14956","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14956"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14956"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14956"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}