Skip to main content
Vulnerability Database/CVE-2026-98357

CVE-2026-98357: Linux Kernel Use-After-Free Vulnerability

CVE-2026-98357 is a use-after-free flaw in the Linux kernel IB/isert driver affecting control PDU completion handling. This vulnerability can lead to memory corruption during connection teardown. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98357 Overview

CVE-2026-98357 is a use-after-free vulnerability in the Linux kernel's iSCSI Extensions for RDMA (iSER) target driver (IB/isert). The flaw occurs because isert_send_done() defers task management, reject, and text response PDU completions to the isert_comp_wq workqueue without ordering them against connection teardown. When isert_wait_conn() queues isert_release_work and iscsit_close_connection() frees the iscsit_conn structure, the deferred work items can execute against already-freed memory, triggering KASAN slab-use-after-free reports in isert_put_cmd().

Critical Impact

Remote attackers interacting with an iSER target over RDMA can trigger use-after-free conditions in the kernel, enabling potential denial of service or memory corruption that may lead to code execution.

Affected Products

  • Linux kernel versions containing the IB/isert driver prior to the fix commits
  • Distributions shipping stable Linux kernels with iSER target support enabled
  • Storage targets exporting iSCSI over RDMA using the ib_isert module

Discovery Timeline

  • 2026-10-06 - CVE-2026-98357 published to NVD
  • 2026-10-07 - Last updated in NVD database

Technical Details for CVE-2026-98357

Vulnerability Analysis

The defect lives in the InfiniBand iSER target completion path. isert_send_done() hands off ISTATE_SEND_TASKMGTRSP, ISTATE_SEND_REJECT, and ISTATE_SEND_TEXTRSP completions to the isert_comp_wq workqueue and returns immediately. The queued work item executes isert_completion_put() and then isert_put_cmd(), which dereferences isert_conn->conn and acquires conn->cmd_lock.

No synchronization exists between these deferred work items and connection teardown. When isert_wait_conn() queues isert_release_work to free the isert_conn, and iscsit_close_connection() subsequently frees the parent iscsit_conn, any still-pending completion work accesses freed slab memory. The KASAN report confirms a read of size 8 at a freed address inside isert_put_cmd+0x53d/0x620.

Root Cause

The root cause is missing refcounting or wait semantics for deferred control PDU completions. Teardown does not track outstanding isert_do_control_comp work before releasing the connection object, producing a race between the workqueue worker and the kthread executing iscsit_close_connection().

Attack Vector

An unauthenticated remote peer that can establish an iSER session with a vulnerable target can drive task management, text, or reject responses and then force connection teardown while the responses are still in flight. The resulting use-after-free executes in kernel context, with impact ranging from a crash to potential memory corruption. The high attack complexity reflects the narrow timing window required to interleave teardown with the deferred completion worker.

No verified public exploit code is available. Refer to the upstream commits for the authoritative fix details.

Detection Methods for CVE-2026-98357

Indicators of Compromise

  • KASAN splats containing slab-use-after-free in isert_put_cmd with the isert_comp_wq workqueue in the stack trace
  • Kernel panics or oops events referencing isert_do_control_comp, isert_completion_put, or iscsit_close_connection
  • Unexpected iSER target process termination correlated with RDMA peer disconnect events

Detection Strategies

  • Enable KASAN or KFENCE on test and canary systems that run the ib_isert module to surface the race during fuzzing or load tests
  • Monitor dmesg and journal logs for repeated isert_ stack traces following iSER session churn
  • Correlate storage target reboots with recent RDMA connection resets from untrusted or unexpected initiator IPs

Monitoring Recommendations

  • Forward kernel ring buffer events to a centralized logging pipeline and alert on KASAN or BUG: entries referencing isert
  • Track module load state for ib_isert across the fleet and flag hosts running unpatched kernels
  • Baseline iSER session establishment and teardown rates to detect anomalous churn consistent with race exploitation attempts

How to Mitigate CVE-2026-98357

Immediate Actions Required

  • Apply the upstream stable kernel patches listed below and reboot affected storage targets
  • Where patching is not immediate, unload the ib_isert module on hosts that do not require iSER target functionality
  • Restrict RDMA fabric access to trusted initiators using subnet manager policy and network segmentation

Patch Information

Fixes are available in the Linux stable tree. The upstream commits add per-connection accounting of deferred control PDU completions so isert_wait_conn() waits for them before release work is queued. Logout response completions are intentionally excluded to avoid deadlock with iscsit_logout_post_handler().

Workarounds

  • Disable the iSER target by blacklisting the ib_isert module on systems that do not export storage over RDMA
  • Terminate exposure to untrusted RDMA peers by binding iSER targets to isolated InfiniBand or RoCE partitions
  • Prefer TCP-based iSCSI transport on affected hosts until the kernel fix is deployed
bash
# Blacklist the vulnerable module until patching
echo 'blacklist ib_isert' | sudo tee /etc/modprobe.d/disable-ib_isert.conf
sudo modprobe -r ib_isert

# Verify the module is not loaded
lsmod | grep ib_isert

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.