CVE-2026-63918
published high CVSS 3.1 · 7.8l2tp: use refcount_inc_not_zero in l2tp_session_get_by_ifname
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxabe7a1a7d0b69e63b1bca5f9531023a52336784f to < ee80455feffb9cb62b5b58715cabeff495e666b2 · abe7a1a7d0b69e63b1bca5f9531023a52336784f to < 947013fd7c8c35dd5856557b215840098a3f67f8 · abe7a1a7d0b69e63b1bca5f9531023a52336784f to < 782d60a6596aee9b29c2eecfa70033899278bf65 · abe7a1a7d0b69e63b1bca5f9531023a52336784f to < 05f95729ca844704d15e49ce14868af4b403b32b · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.12 (affected) · 0 to < 6.12 (unaffected · semver) · 6.12.93 through 6.12.* (unaffected · semver) · 6.18.35 through 6.18.* (unaffected · semver) · 7.0.12 through 7.0.* (unaffected · semver) · 7.1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 10 | kernel-abi-stablelists | Advisory build | 6.12.0-211.63.1.el10_2 | ALSA-2026:76738 |
| Oracle Linux | 10 | kernelx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| AlmaLinux | 10 | kernel-doc | Advisory build | 6.12.0-211.63.1.el10_2 | ALSA-2026:76738 |
| Oracle Linux | 10 | kernel-abi-stablelistsx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | kernel-corex86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-cross-headersaarch64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-cross-headersx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-debugx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-debug-corex86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-debug-develx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-debug-modulesx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-debug-modules-corex86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-debug-uki-virtx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-develx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-devel-matchedx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-docx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-headersaarch64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-headersx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-modulesx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-modules-corex86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-modules-extrax86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-modules-extra-matchedx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-toolsaarch64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-toolsx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-tools-libsaarch64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-tools-libsx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-tools-libs-develaarch64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-tools-libs-develx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-docaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-usbx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-toolsaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek-toolsx86_64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64kaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-coreaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-develaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-modulesaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-modules-coreaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-modules-desktopaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-modules-extraaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-modules-usbaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uek64k-modules-wirelessaarch64 | Advisory build | 0:6.12.0-206.104.3.3.el10uek | ELSA-2026-500248 |
| Oracle Linux | 10 | kernel-uki-virtx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | kernel-uki-virt-addonsx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | libperfaarch64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | libperfx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | perfaarch64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | perfx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | python3-perfaarch64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | python3-perfx86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | rtlaaarch64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | rtlax86_64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
| Oracle Linux | 10 | rvaarch64 | Advisory build | 0:6.12.0-211.63.1.el10_2 | ELSA-2026-76738 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: l2tp: use refcount_inc_not_zero in l2tp_session_get_by_ifname A reader in l2tp_session_get_by_ifname() can return a pointer to a session whose refcount has reached zero. The getter takes its reference with plain refcount_inc(), but every other session getter in the same file (l2tp_v2_session_get, l2tp_v3_session_get, and the corresponding _get_next variants) uses refcount_inc_not_zero() because the IDR/RCU lookup can race with refcount_dec_and_test() -> l2tp_session_free() -> kfree_rcu(). The ifname getter is the only outlier; the inconsistency was raised on-list after 979c017803c4 ("l2tp: use list_del_rcu in l2tp_session_unhash"). A reader inside rcu_read_lock_bh() that matches session->ifname can be preempted between the strcmp() and the refcount_inc(). If the last reference drops on another CPU in that window, the reader's refcount_inc() runs on a counter that has reached zero. refcount_t catches the addition-on-zero, prints "refcount_t: addition on 0; use-after-free", saturates the counter, and returns the saturated pointer to the caller. Session memory is held live by the in-flight RCU read section, but the kfree_rcu() callback queued from l2tp_session_free() will free it once the grace period closes; a caller that dereferences the returned session past that point hits a slab-use-after-free. On PREEMPT_RT local_bh_disable() is a per-CPU sleeping lock and the preemption window is real; on stock PREEMPT kernels local_bh_disable() is a preempt_count increment that closes the cross-CPU race in practice (see below). Use refcount_inc_not_zero() and continue the list walk on failure, matching the other session getters in the file. The ifname getter is the only session getter in net/l2tp/ that still uses the bare refcount_inc() pattern; this change restores file-internal consistency. The success path is unchanged.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable code is only reached via the L2TP genetlink management API (netlink syscall), not from the L2TP data-plane packet receive path. Attackers must issue local netlink commands such as SESSION_GET, SESSION_DELETE, or SESSION_MODIFY with L2TP_ATTR_IFNAME. AC:L - Exploitation requires racing session lookup-by-ifname against concurrent session deletion, and an attacker with CAP_NET_ADMIN can control both sides by issuing parallel netlink operations. On PREEMPT_RT kernels the preemption window between strcmp() and refcount_inc() is real and reliably winnable. PR:L - All affected genetlink commands are gated by GENL_UNS_ADMIN_PERM, requiring CAP_NET_ADMIN in the network namespace. That capability is obtainable by unprivileged users via user/network namespaces (unshare -Urn), not only by init-namespace root. UI:N - No victim interaction is required; the attacker triggers the race directly through netlink management commands without needing another user to mount, open, or configure anything. S:U - Impact is confined to kernel memory corruption and privilege escalation within the same kernel security domain. This is not a VM escape, sandbox boundary cross, or IOMMU bypass. C:H - The bug is a slab use-after-free on struct l2tp_session; returning and later dereferencing a session whose refcount reached zero enables reading freed kernel heap memory and leaking kernel pointers or other sensitive data. I:H - UAF on struct l2tp_session corrupts a heap object that contains function pointers (recv_skb, session_close) and is subsequently used by session_delete/modify/notify handlers, enabling arbitrary kernel write or code execution via heap grooming. A:H - Dereferencing the freed l2tp_session after the RCU grace period causes kernel oops or panic. Even failed exploitation attempts trigger refcount_t "addition on 0; use-after-free" warnings and can crash the system under load.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | abe7a1a7d0b69e63b1bca5f9531023a52336784f to < ee80455feffb9cb62b5b58715cabeff495e666b2 (affected · git)abe7a1a7d0b69e63b1bca5f9531023a52336784f to < 947013fd7c8c35dd5856557b215840098a3f67f8 (affected · git)abe7a1a7d0b69e63b1bca5f9531023a52336784f to < 782d60a6596aee9b29c2eecfa70033899278bf65 (affected · git)abe7a1a7d0b69e63b1bca5f9531023a52336784f to < 05f95729ca844704d15e49ce14868af4b403b32b (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.12 (affected)0 to < 6.12 (unaffected · semver)6.12.93 through 6.12.* (unaffected · semver)6.18.35 through 6.18.* (unaffected · semver)7.0.12 through 7.0.* (unaffected · semver)7.1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
l2tp: use refcount_inc_not_zero in l2tp_session_get_by_ifname
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- abf62f09aaaa0316b8f0c7b7278c3217eb522e15599e8ba853bd05b3fd986232
- Ingested
- 23 Sep 2026, 09:25:23 UTC
- Source record
- Official CVE record