CVE Professor
/
All CVEs
CVE-2026-139186

CVE-2026-139186 — Linux Kernel — NONE Vulnerability

NONE CVSS 0 NVD

In the Linux kernel, the following vulnerability has been resolved: gtp: hold RCU in gtp_genl_send_echo_req() Such function is invoked in process context, performs an RCU device lookup and dereference the found device with no additional protection. ============================= WARNING: suspicious RCU usage 7.3.0-virtme #7 Not tainted ----------------------------- net/core/dev.c:1047 RCU-list traversed in non-reader section!! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 locks held by python3/233: 2, last CPU#5: #0: ffffffffbab93268 (cb_lock){++++}-{4:4}, at: genl_rcv+0x19/0x40 #1: ffffffffbab93320 (genl_mutex){+.+.}-{4:4}, at: genl_rcv_msg+0x12c/0x160 stack backtrace: CPU: 5 UID: 0 PID: 233 Comm: python3 Not tainted 7.3.0#7 PREEMPT(full) Hardware name: Bochs, BIOS Bochs 01/01/2011 Call Trace: <TASK> dump_stack_lvl+0x6f/0xb0 lockdep_rcu_suspicious.cold+0x37/0x8e dev_get_by_index_rcu+0x135/0x180 gtp_find_dev+0xe7/0x360 [gtp] gtp_genl_send_echo_req+0x298/0xb30 [gtp] genl_family_rcv_msg_doit+0x20f/0x310 genl_family_rcv_msg+0x3a8/0x640 genl_rcv_msg+0xbb/0x160 netlink_rcv_skb+0x154/0x3a0 genl_rcv+0x28/0x40 netlink_unicast+0x54b/0x860 netlink_sendmsg+0x7fb/0xf60 __sys_sendto+0x3d6/0x450 __x64_sys_sendto+0xe4/0x1f0 do_syscall_64+0xff/0x530 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ffa43b0256e Code: 4d 89 d8 e8 d4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 <c9> c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa RSP: 002b:00007ffd3b8828d0 EFLAGS: 00000202 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007ffd3b8829e0 RCX: 00007ffa43b0256e RDX: 0000000000000034 RSI: 00007ffa3519d0d0 RDI: 0000000000000006 RBP: 00007ffd3b8828e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffa351cc0c0 R13: 00007ffd3b8829e0 R14: 00007ffa354ca130 R15: 00007ffa4433d498 </TASK> Add the missing RCU guards and keep it for the whole function body, while the RCU-protected device is used. Found by code inspection, validated explicitly testing the relevant code path.

In the Linux kernel, the following vulnerability has been resolved: gtp: hold RCU in gtp_genl_send_echo_req() Such function is invoked in process context, performs an RCU device lookup and dereference the found device with no additional protection. ============================= WARNING: suspicious RCU usage 7.3.0-virtme #7 Not tainted ----------------------------- net/core/dev.c:1047 RCU-list traversed in non-reader section!! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 locks held by python3/233: 2, last CPU#5: #0: ffffffffbab93268 (cb_lock){++++}-{4:4}, at: genl_rcv+0x19/0x40 #1: ffffffffbab93320 (genl_mutex){+.+.}-{4:4}, at: genl_rcv_msg+0x12c/0x160 stack backtrace: CPU: 5 UID: 0 PID: 233 Comm: python3 Not tainted 7.3.0#7 PREEMPT(full) Hardware name: Bochs, BIOS Bochs 01/01/2011 Call Trace: <TASK> dump_stack_lvl+0x6f/0xb0 lockdep_rcu_suspicious.cold+0x37/0x8e dev_get_by_index_rcu+0x135/0x180 gtp_find_dev+0xe7/0x360 [gtp] gtp_genl_send_echo_req+0x298/0xb30 [gtp] genl_family_rcv_msg_doit+0x20f/0x310 genl_family_rcv_msg+0x3a8/0x640 genl_rcv_msg+0xbb/0x160 netlink_rcv_skb+0x154/0x3a0 genl_rcv+0x28/0x40 netlink_unicast+0x54b/0x860 netlink_sendmsg+0x7fb/0xf60 __sys_sendto+0x3d6/0x450 __x64_sys_sendto+0xe4/0x1f0 do_syscall_64+0xff/0x530 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ffa43b0256e Code: 4d 89 d8 e8 d4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 <c9> c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa RSP: 002b:00007ffd3b8828d0 EFLAGS: 00000202 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007ffd3b8829e0 RCX: 00007ffa43b0256e RDX: 0000000000000034 RSI: 00007ffa3519d0d0 RDI: 0000000000000006 RBP: 00007ffd3b8828e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffa351cc0c0 R13: 00007ffd3b8829e0 R14: 00007ffa354ca130 R15: 00007ffa4433d498 </TASK> Add the missing RCU guards and keep it for the whole function body, while the RCU-protected device is used. Found by code inspection, validated explicitly testing the relevant code path.

AI Security Analysis & Remediation

🎯 What is this vulnerability?

This vulnerability is a Use-After-Free (UAF) or Dereference of Invalid Pointer flaw within the Linux kernel's GTP (GPRS Tunnelling Protocol) module, specifically in the gtp_genl_send_echo_req() function.

Technical Flaw Analysis:
1. Context Mismatch: The function gtp_genl_send_echo_req() is invoked from process context (via a Netlink/Genl message from userspace, e.g., python3 in the trace).
2. Missing RCU Read-Side Locking: The function calls gtp_find_dev(), which internally uses dev_get_by_index_rcu(). This function is designed to be called within an RCU read-side critical section (rcu_read_lock()). However, gtp_genl_send_echo_req() does not hold the RCU read lock when it performs this lookup.
3. Race Condition: Because the RCU read lock is not held, the kernel's RCU mechanism cannot guarantee that the network device (net_device) structure remains valid for the duration of the access. If another CPU concurrently frees the device (e.g., via ip link del), the pointer dereferenced in gtp_genl_send_echo_req() becomes dangling.
4. Lockdep Warning: The provided stack trace shows lockdep_rcu_suspicious triggering because dev_get_by_index_rcu detected that it was traversing an RCU-protected list without being in a reader section. This confirms the missing rcu_read_lock().

CWE Classification:

  • CWE-416: Use After Free (Primary)

  • CWE-667: Improper Lock Acquisition (Root cause: missing rcu_read_lock)
  • CVSS Note: The provided CVSS score is 0/10 (NONE), which is technically incorrect for a kernel UAF. A kernel UAF is typically rated High (7.0-8.8) or Critical (9.0-10.0) depending on exploitability. The "NONE" score likely reflects a data entry error in the source feed or a misclassification of the impact scope. For analysis purposes, we treat this as a High Severity kernel memory corruption bug.

    ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • Target Identification: The attacker identifies a Linux host running kernel version 5.18 or later (specifically versions containing the vulnerable GTP module code, likely up to the fix commit).
  • Module Presence: The attacker verifies that the gtp kernel module is loaded (lsmod | grep gtp). This is common in 5G core network infrastructure, mobile backhaul, or IoT gateways.
  • Privilege Level: The attacker requires root privileges or the ability to send Netlink messages to the GTP generic netlink family. In most Linux configurations, sending Netlink messages to NETLINK_GENERIC requires CAP_NET_ADMIN. Thus, the attacker must already have local root or equivalent capabilities.
  • 2. Exploitation

    Prerequisite: Local Root Access (or CAP_NET_ADMIN).

    The attacker exploits the race condition by:
    1. Creating a GTP tunnel device.
    2. Sending a Netlink GTP_CMD_ECHO_REQ message to trigger gtp_genl_send_echo_req().
    3. Concurrently, on another CPU/thread, deleting the GTP device to free the net_device structure.
    4. The gtp_genl_send_echo_req() function dereferences the freed pointer, leading to memory corruption.

    Illustrative PoC (Conceptual):
    Note: This is a conceptual representation. Actual exploitation requires precise timing and heap grooming.

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <unistd.h>
    #include <sys/socket.h>
    #include <linux/netlink.h>
    #include <linux/genetlink.h>
    #include <gtp/gtp.h> // Hypothetical header for GTP netlink
    
    // Pseudocode for race condition trigger
    void exploit() {
        // 1. Create GTP device
        // ip link add dev gtp0 type gtp
        
        // 2. Open Netlink socket
        int sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);
        
        // 3. Send GTP_CMD_ECHO_REQ in a tight loop
        // This calls gtp_genl_send_echo_req()
        while(1) {
            send_echo_req(sock);
        }
    }
    
    // In a separate thread/process:
    void trigger_free() {
        // 4. Delete the device concurrently
        // ip link del gtp0
        // This frees the net_device structure
    }

    Why it's hard to exploit:

  • Requires precise timing to hit the window between dev_get_by_index_rcu() and the dereference.

  • Requires heap spraying to control the freed memory for arbitrary code execution.

  • The bug is in a less commonly used module (gtp), limiting the attack surface.
  • 3. Post-Exploitation

  • Kernel Code Execution: Successful exploitation allows arbitrary code execution in kernel context (Ring 0).
  • Privilege Escalation: If the attacker did not have full root, this grants full root.
  • Persistence: The attacker can modify kernel structures, install rootkits, or disable security modules (SELinux/AppArmor).
  • Data Exfiltration: Read arbitrary kernel memory, including credentials, keys, and network buffers.
  • 🌍 Real World Impact

  • Confidentiality: High. Kernel memory access allows reading sensitive data (passwords, TLS keys, PII).
  • Integrity: High. Kernel code execution allows modifying system state, disabling security controls, or injecting malicious code.
  • Availability: High. A kernel panic (crash) is a likely outcome of the UAF, leading to denial of service.
  • Practical Consequences:

  • 5G Core Networks: GTP is critical for 5G user plane. A crash or compromise could disrupt mobile data services.

  • IoT Gateways: Many IoT devices run Linux with GTP for backhaul. Compromise could lead to botnet recruitment or data theft.

  • Limited Scope: The bug is in a specific module (gtp), so it only affects systems using GTP tunnels. It does not affect general-purpose Linux servers unless GTP is explicitly enabled.
  • 🛡️ Remediation & Mitigation

    1. Patching

  • Affected Versions: Linux kernel 5.18 and later (up to the fix commit).
  • Fix: The commit adds rcu_read_lock() and rcu_read_unlock() around the device lookup and usage in gtp_genl_send_echo_req().
  • Action: Update to the latest stable kernel version. Check your distribution's security advisories for the specific patch.
  • Example:* For Ubuntu, check apt list --upgradable | grep linux. For RHEL, check yum update kernel.

    2. Workarounds

  • Disable GTP Module: If GTP is not required, unload the module:
  • sudo rmmod gtp

    Or blacklist it to prevent loading:

    echo "blacklist gtp" | sudo tee /etc/modprobe.d/blacklist-gtp.conf
  • Restrict Netlink Access: Ensure only trusted processes can send Netlink messages to the GTP family. This is difficult to enforce without SELinux/AppArmor policies.
  • SELinux Policy:* Create a policy that denies netlink_socket access to the gtp family for untrusted domains.

    3. Detection

  • Kernel Logs: Look for lockdep warnings or BUG: unable to handle kernel paging request in dmesg or /var/log/kern.log.
  • dmesg | grep -i "gtp\|RCU-list traversed\|use-after-free"
  • Netlink Traffic: Monitor for unusual GTP_CMD_ECHO_REQ messages from non-root processes or unexpected sources.
  • tcpdump -i lo -s0 -X 'netlink' | grep -i "gtp"
  • Process Monitoring: Alert on rmmod gtp or insmod gtp events if GTP is not expected.
  • ⚠️ Urgency

  • CVSS Score: The provided score of 0/10 is incorrect and should be disregarded. Based on the nature of the bug (Kernel UAF), the realistic CVSS v3.1 score is 7.8 (High) or 8.8 (High) depending on privileges required.
  • CISA KEV: No. Not currently listed in the Known Exploited Vulnerabilities catalog.
  • Exploit Complexity: High. Requires local root, precise timing, and heap grooming.
  • Patching Priority: Medium-High.
* If your system uses GTP for critical infrastructure (5G, IoT backhaul), patch immediately. * If GTP is not used, the risk is Low (module not loaded). * For general-purpose servers, patch during the next regular maintenance window.

Recommendation:
1. Check if the gtp module is loaded: lsmod | grep gtp.
2. If loaded, apply the kernel patch immediately.
3. If not loaded, ensure it remains blacklisted.
4. Monitor kernel logs for RCU warnings.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Linux Linux"
CVSS Score
0 / 10 · CVSS NONE
Affected Products (2)
Linux Kernel (commit: 770d7adc1a) Linux Kernel (5.18)
Related CVEs
9.4
CVE-2026-129109
Calico installations managed by the Tigera Operator install a FlexVolume driver (nodeagent~uds/uds) on every L
8.8
CVE-2026-105101
An OS command injection vulnerability in the ping diagnostic function (InternetState.java) in Elinktek UZ801 4
8.8
CVE-2026-118966
A missing authentication vulnerability in the SSH server of Nokia SR Linux allows an unauthenticated attacker
8.7
CVE-2026-145182
Mullvad gotatun 0.1.0 before 0.10.1 contains a denial of service vulnerability that allows unauthenticated rem
0.0
CVE-2026-132063
The 2C2P Redirect API for WooCommerce WordPress plugin through 7.0.3 does not stop processing a payment callba
0.0
CVE-2026-140849
Multiple malformed-packet handling vulnerabilities exist in a number of Nokia SR OS control-plane protocols (B
0.0
CVE-2026-141072
Rejected reason: Not a valid vulnerability.