Skip to main content

Linux Kernel EUVDEUVD-2026-45691

| CVE-2026-63918 HIGH
Use After Free (CWE-416)
2026-07-19 Linux GHSA-9qwr-gw6x-fmgj
7.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local low-privileged access
  2. Delivery
    Ensure l2tp modules loaded and sessions creatable
  3. Exploit
    Race ifname lookup against session teardown
  4. Execution
    refcount_inc on zeroed counter
  5. Persist
    RCU grace period frees session
  6. Impact
    Dereference freed slab (UAF crash/escalation)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires local code execution plus the ability to trigger L2TP session lookups by interface name (l2tp_session_get_by_ifname) concurrently with L2TP session destruction, i.e. an environment where the l2tp modules are loaded and the attacker can create/manage L2TP sessions (typically needing CAP_NET_ADMIN or equivalent netlink access). The decisive limiting factor is kernel preemption configuration: the description explicitly states the cross-CPU race is practically reachable only on PREEMPT_RT kernels, while on stock PREEMPT kernels local_bh_disable() acts as a preempt_count increment that closes the window in practice. This is therefore NOT remote and NOT default-config exploitable everywhere - it is a local, timing-dependent race gated on RT kernels and on L2TP being in use.

Impact

The signals point to a real but low-priority issue. The supplied CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H = 7.8 High) captures the local, low-privilege, high-impact nature of a kernel UAF, but its AC:L rating understates the difficulty: the description itself explains this is a cross-CPU race that is only practically winnable on PREEMPT_RT kernels, while on stock PREEMPT kernels local_bh_disable() closes the window in practice - that argues for AC:H, not AC:L. EPSS is 0.20% (10th percentile) and the vulnerability is NOT in CISA KEV, with no public exploit identified, all consistent with low real-world exploitation risk. There is no conflict between network- and local-vector claims here (all signals agree it is local), but the practical exploitability is far narrower than the 7.8 score suggests because success depends on kernel preemption configuration. Bottom line: patch it in normal cycles, but it is not an emergency for typical non-RT deployments.

Exploit ScenarioDerived

A local low-privileged actor with the ability to create and query L2TP sessions repeatedly races session lookups by ifname against session teardown on another CPU, aiming to have a reader increment a refcount that has just reached zero and then dereference the session after the RCU grace period frees it. On a PREEMPT_RT kernel the preemption window between strcmp() and refcount_inc() is reachable, so a determined attacker can trigger a slab-use-after-free for a crash or potential escalation; no public exploit is known and the race is difficult to win reliably.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 20, 2026

Local privilege-boundary memory corruption in the Linux kernel L2TP subsystem (net/l2tp) arises because l2tp_session_get_by_ifname() took its reference with a bare refcount_inc() instead of refcount_inc_not_zero(), letting an RCU reader acquire a session whose refcount already hit zero and dereference freed slab memory. Affected kernels include the 6.12.x and 6.18.x stable series (fixed in 6.12.93, 6.18.35, 7.0.12 and 7.1), and the flaw is a race between the IDR/RCU lookup and l2tp_session_free()->kfree_rcu() that is genuinely reachable on PREEMPT_RT builds. There is no public exploit identified at time of analysis and EPSS is low (0.20%), consistent with a hard-to-win local race rather than a widely weaponized bug.

RemediationAI

Vendor-released patch: upgrade to a fixed stable kernel - 6.12.93 for the 6.12 series, 6.18.35 for the 6.18 series, or 7.0.12/7.1 for newer trees - or apply the upstream stable commits (ee80455f, 947013fd, 782d60a6, 05f95729) available at git.kernel.org, which replace the bare refcount_inc() in l2tp_session_get_by_ifname() with refcount_inc_not_zero() and continue the list walk on failure. Where immediate patching is not possible, the most effective compensating controls are to prevent creation and enumeration of L2TP sessions by unprivileged contexts: unload or blacklist the l2tp_core / l2tp modules if L2TP is not used (side effect: breaks any L2TP VPN/tunnel functionality), and restrict CAP_NET_ADMIN and L2TP netlink access so untrusted local users and containers cannot drive session churn (side effect: may impact network-management tooling). PREEMPT_RT deployments should prioritize the patch since the race window is real there, whereas stock PREEMPT kernels are largely protected by local_bh_disable() semantics in practice.

Affected VersionsENISA

Linux patch: 7.0.12
Linux abe7a1a7d0b69e63b1bca5f9531023a52336784f <ee80455feffb9cb62b5b58715cabeff495e666b2
Linux patch: 6.12.93
Linux 6.12
Linux abe7a1a7d0b69e63b1bca5f9531023a52336784f <05f95729ca844704d15e49ce14868af4b403b32b
Linux abe7a1a7d0b69e63b1bca5f9531023a52336784f <947013fd7c8c35dd5856557b215840098a3f67f8
Linux abe7a1a7d0b69e63b1bca5f9531023a52336784f <782d60a6596aee9b29c2eecfa70033899278bf65
Linux patch: 6.18.35
Linux patch: 0
Linux patch: 7.1

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The defect lives in the L2TP (Layer 2 Tunneling Protocol) code in net/l2tp/, which manages tunnel and session objects looked up via IDR under RCU. Sessions are reference-counted with refcount_t and freed through refcount_dec_and_test() -> l2tp_session_free() -> kfree_rcu(). The root cause is a use-after-free class flaw (CWE-416, though the feed lists CWE as N/A): the ifname getter matched session->ifname under rcu_read_lock_bh() and then incremented the refcount without checking for zero, unlike the sibling getters l2tp_v2_session_get, l2tp_v3_session_get and their _get_next variants which already use refcount_inc_not_zero(). Because a reader can be preempted between the strcmp() and the refcount_inc(), and because refcount_t treats addition-on-zero as an error (it prints 'refcount_t: addition on 0; use-after-free' and saturates the counter), the caller receives a saturated pointer to memory that the pending RCU grace period will free. The two CPE entries only identify the vendor/product generically as cpe:2.3:a:linux:linux:*, so exact affected builds must be taken from the stable-tree commit ranges rather than CPE.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Linux) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Local race condition winnable mainly on PREEMPT_RT gives AC:H; driving L2TP sessions needs privileged netlink access so PR:L; kernel UAF yields high C/I/A.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.0 MEDIUM

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
CVSS changed
Jul 20, 2026 - 15:22 NVD
7.8 (HIGH)
Patch available
Jul 19, 2026 - 17:19 EUVD
CVE Published
Jul 19, 2026 - 14:55 cve.org
HIGH 7.8
CVE Published
Jul 19, 2026 - 14:55 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A local privilege escalation vulnerability in Linux kernel versions 6.12.x through 6.18.x (CVE-2026-63918) could allow attackers with local system access to gain unauthorized administrator-level privileges through a memory corruption race condition. Patch availability and low real-world exploitation probability (0.2% EPSS) reduce immediate risk, but organizations must prioritize updates on multi-tenant systems and environments where untrusted local user access is present.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Ubiquitous
Linux kernel runs everywhere, though the vulnerable L2TP path is niche
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise High Availability Extension 16.0 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy