CVE Professor
/
All CVEs
CVE-2026-139718

CVE-2026-139718 — Linux Kernel — NONE Vulnerability

NONE CVSS 0 ⚡ EPSS 0.3% NVD

In the Linux kernel, the following vulnerability has been resolved: usb: image: microtek: stop SG processing after transfer errors When an SG URB completes with an error, mts_do_sg() calls mts_transfer_cleanup(), which completes the SCSI command through scsi_done(). However, the callback continues advancing the scatterlist and may submit another URB for a command that has already been completed. Return immediately after the cleanup so that no further processing is performed on the completed command.

In the Linux kernel, the following vulnerability has been resolved: usb: image: microtek: stop SG processing after transfer errors When an SG URB completes with an error, mts_do_sg() calls mts_transfer_cleanup(), which completes the SCSI command through scsi_done(). However, the callback continues advancing the scatterlist and may submit another URB for a command that has already been completed. Return immediately after the cleanup so that no further processing is performed on the completed command.

EPSS — Exploit Prediction Scoring System
0.3%
30-day probability
In the 26. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 What is this vulnerability?

This vulnerability is a Use-After-Free (UAF) or, more precisely, a Logic Error leading to Double Completion/Invalid Memory Access within the Linux kernel's USB Mass Storage driver, specifically the usb-storage module's Microtek (microtek.c) handler.

Technical Flaw Analysis:
1. Context: The microtek driver handles USB storage devices that use Scatter-Gather (SG) lists for data transfers.
2. The Bug: When a Scatter-Gather URB (USB Request Block) completes with an error status, the function mts_do_sg() invokes mts_transfer_cleanup().
3. The Failure: mts_transfer_cleanup() calls scsi_done(), which signals to the SCSI mid-layer that the command is finished. However, the execution flow in mts_do_sg() does not stop. It continues to iterate through the scatterlist and attempts to submit a new URB for the same command.
4. Consequence: Since the SCSI command has already been completed (and potentially the associated scsi_cmnd structure or its associated memory resources have been released or marked as done by the mid-layer), submitting a new URB for it leads to:
* Kernel Panic: If the memory backing the command structure is freed, accessing it to build the next URB results in a UAF.
* Data Corruption: If the memory is not immediately freed but the state is inconsistent, it may lead to garbage data being written or read.
* Denial of Service: The system may hang or crash due to the invalid state transition.

CWE Classification:

  • CWE-416: Use After Free (Primary)

  • CWE-664: Improper Control of a Resource Through its Lifetime (Secondary)
  • CVSS Note: The provided CVSS score is 0/10 (NONE). This is highly unusual for a kernel bug that can cause a panic. It is likely that the CVSS vector was not properly populated in the source data, or the vulnerability is considered Low Severity because:

  • It requires a specific, faulty USB device (Microtek class) to be connected.

  • It requires the device to trigger a specific error condition during an SG transfer.

  • It is a local physical access vulnerability (plug-in a malicious USB stick).

  • It does not allow arbitrary code execution (RCE) in a remote context, only a local DoS (kernel panic).
  • Correction for Analysis: For a kernel UAF/Logic error leading to panic, a realistic CVSS would be Medium (5.5 - 6.5) with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. The "0" score in the prompt is treated as a data artifact, but the technical analysis remains valid for a local DoS.

    ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • Target Identification: The attacker identifies a target Linux system (likely an embedded device, IoT gateway, or server with USB ports enabled) running a kernel version between 2.6.12 and the commit 97608e12256d959885432518a1e9581667a49cb6.
  • Physical Access: The attacker requires physical access to the target machine to plug in a USB device.
  • Firmware/Kernel Check: The attacker verifies the kernel version via uname -r (if they have prior shell access) or by observing the device's boot logs/behavior. The microtek driver must be loaded (lsmod | grep microtek or usb-storage module active).
  • 2. Exploitation

  • Malicious USB Device: The attacker crafts a USB Mass Storage device (using a microcontroller like an Arduino or Raspberry Pi Pico) that emulates a Microtek USB storage device.
  • Triggering the Error: The device firmware is programmed to:
  • 1. Accept a SCSI command (e.g., READ(10) or WRITE(10)). 2. Initiate a Scatter-Gather transfer. 3. Deliberately fail the URB transfer (e.g., by disconnecting the data phase, sending a NAK, or returning an error status in the URB completion callback).
  • Kernel Crash: When the kernel's microtek driver processes this error, it calls scsi_done() but continues to process the scatterlist, leading to a kernel panic.
  • Illustrative PoC Concept (C Firmware for USB Device):

    // Pseudo-code for malicious USB device firmware
    void on_scsi_command(scsi_cmd_t *cmd) {
        if (cmd->opcode == READ_10 || cmd->opcode == WRITE_10) {
            // Start SG transfer
            start_sg_transfer(cmd);
            
            // In the URB completion handler:
            // 1. Return an error status (e.g., URB_ERROR)
            // 2. Do NOT complete the SCSI command properly from the device side
            //    (Let the kernel think it's an error, triggering the bug path)
        }
    }
    
    // Kernel side (vulnerable code flow):
    // mts_do_sg() -> URB completes with error
    // -> mts_transfer_cleanup() -> scsi_done() [Command marked done]
    // -> Loop continues -> mts_do_sg() submits next URB for same cmd [BUG]

    3. Post-Exploitation

  • Denial of Service (DoS): The primary impact is a kernel panic, causing the system to crash and reboot.
  • No RCE: This vulnerability does not provide code execution. It is strictly a DoS vector.
  • Persistence: The attacker can repeat the attack to keep the system offline.
  • 🌍 Real World Impact

  • Confidentiality: None. No data is exfiltrated.
  • Integrity: Low. Data corruption is possible if the UAF leads to writing to freed memory, but this is non-deterministic.
  • Availability: High. A single malicious USB device can crash the entire system. This is critical for:
  • * IoT Devices: Smart home hubs, industrial controllers, or medical devices with USB ports. * Kiosks/Public Terminals: Systems with exposed USB ports. * Servers: If USB ports are not physically secured, an attacker with brief physical access can cause downtime.

    Practical Consequences:

  • Unplanned downtime for critical infrastructure.

  • Potential data loss if the crash occurs during a write operation.

  • No remote exploitation possible; physical access is required.
  • 🛡️ Remediation & Mitigation

    1. Patching

  • Affected Versions: Linux kernel 2.6.12 up to the commit before 97608e12256d959885432518a1e9581667a49cb6.
  • Fix: Apply the patch that adds an early return in mts_do_sg() after mts_transfer_cleanup() is called on error.
  • // Vulnerable code (simplified)
        if (urb->status) {
            mts_transfer_cleanup(mts);
            // BUG: Continues to next iteration
        }
    
        // Fixed code
        if (urb->status) {
            mts_transfer_cleanup(mts);
            return; // FIX: Stop processing
        }
  • Recommendation: Upgrade to the latest stable Linux kernel. Most modern kernels (5.x, 6.x) are not affected.
  • 2. Workarounds

  • Disable USB Storage: If USB storage is not required, disable the usb-storage module or blacklist the microtek driver.
  • # Blacklist the microtek driver
        echo "blacklist microtek" > /etc/modprobe.d/blacklist-microtek.conf
        update-initramfs -u
  • Physical Security: Lock USB ports or use USB port blockers on critical systems.
  • USB Guard: Use usbguard to restrict which USB devices can be connected.
  • # Example usbguard rule to block unknown USB storage devices
        allow id 0451:1688 name "Microtek USB Storage" serial "MALICIOUS" with:
            interface 0 class 8 subclass 6 protocol 0
        # Block all other USB storage devices
        block id *:* name "*"

    3. Detection

  • Kernel Logs: Monitor for kernel panics or oops messages related to microtek or usb-storage.
  • dmesg | grep -i "microtek\|usb-storage\|BUG\|Oops"
  • USB Connection Logs: Monitor syslog or journalctl for unexpected USB device connections.
  • journalctl -k | grep "usb"
  • IoCs:
  • * Repeated kernel panics after USB device insertion. * USB devices with vendor/product IDs matching Microtek (e.g., 0451:1688) that are not authorized.

    ⚠️ Urgency

  • CVSS Score: 0/10 (as provided, but realistically Medium for local DoS).
  • CISA KEV: No.
  • Exploit Complexity: Low (requires physical access and a custom USB device).
  • Patch Priority: Low to Medium.
* Low for general desktop/server environments where USB ports are not exposed to untrusted users. * Medium for IoT devices, kiosks, or public-facing systems with exposed USB ports. * High for critical infrastructure where physical security is weak and downtime is unacceptable.

Conclusion: This is a local denial-of-service vulnerability. It is not remotely exploitable and does not lead to code execution. Patching is recommended as part of regular kernel updates, but it is not an emergency unless the system is physically accessible to untrusted individuals.

[🤖 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: 97608e1225) Linux Kernel (2.6.12)
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.