Skip to content
Heist/ feed
High

IB/isert: wait for deferred control PDU completions before releasing the connection

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: IB/isert: wait for deferred control PDU completions before releasing the connection isert_send_done() hands ISTATE_SEND_TASKMGTRSP, ISTATE_SEND_REJECT and ISTATE_SEND_TEXTRSP completions off to isert_comp_wq and returns. The work item then runs isert_completion_put() -> isert_put_cmd(), which reads isert_conn->conn and takes conn->cmd_lock. Nothing orders that work item against teardown. isert_wait_conn() queues isert_release_work, which frees isert_conn, and iscsit_close_connection() frees the iscsit_conn right after it returns, so the queued work can run against freed memory. Count the deferred control PDU completions per connection and let isert_wait_conn() wait for them before the release work is queued. ISTATE_SEND_LOGOUTRSP is deliberately not counted: that branch runs iscsit_logout_post_handler(), which ends up waiting for conn->conn_wait_comp, and that completion is only sent by iscsit_close_connection() after it has called iscsit_wait_conn(). Waiting for it here would deadlock. Its wait stays the existing isert_wait4logout(). The splat below is from a kernel with tracing printk()s and an msleep(200) injected into isert_do_control_comp() to widen the window: BUG: KASAN: slab-use-after-free in isert_put_cmd+0x53d/0x620 Read of size 8 at addr ffff8881054f1038 by task kworker/u17:1/182 CPU: 0 UID: 0 PID: 182 Comm: kworker/u17:1 Tainted: G B 7.2.0-rc5-TWIDE-gb8babf08acc7 #1 PREEMPT(lazy) Tainted: [B]=BAD_

Announced Source revision 1
Original source ↗

CVE-2026-98357

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-98357

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "b8d26b3be8b33682cf163274ed07479a70554633",
        "lessThan": "f5613acbe2e346d5c466ef0bd264fca936b69f82",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b8d26b3be8b33682cf163274ed07479a70554633",
        "lessThan": "ccdb1523f12bc8a9646de65055d1aafed9e9bcc6",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b8d26b3be8b33682cf163274ed07479a70554633",
        "lessThan": "0e230917670c6e6fe3243abfa11299fcbe05b1f4",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b8d26b3be8b33682cf163274ed07479a70554633",
        "lessThan": "505b242d9351690d1385bbe508ab4666f60363ce",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b8d26b3be8b33682cf163274ed07479a70554633",
        "lessThan": "7edb8a88d6c76237c8b4435765bee1009e26a50a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b8d26b3be8b33682cf163274ed07479a70554633",
        "lessThan": "b96b8b3e41c308f606ffd10cfef1a7b9f97414cd",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b8d26b3be8b33682cf163274ed07479a70554633",
        "lessThan": "7908fbc597a694bbd99bfb59ece73bc3daded68e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b8d26b3be8b33682cf163274ed07479a70554633",
        "lessThan": "a8fe3dfce8c0d8a76dc3d8486a5bff5feebe156f",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/infiniband/ulp/isert/ib_isert.c",
      "drivers/infiniband/ulp/isert/ib_isert.h"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "3.10"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "3.10",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.271",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.222",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.189",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.158",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.112",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.54",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.8",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/infiniband/ulp/isert/ib_isert.c",
      "drivers/infiniband/ulp/isert/ib_isert.h"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-98357

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#38435 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement