---
id: CVE-2026-98257
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  rds: ib: use rds_conn_drop() on protocol version mismatch

  rds_ib_cm_connect_complete() runs from the RDMA-CM event handler with
  conn->c_cm_lock held
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  rds: ib: use rds_conn_drop() on protocol version mismatch

  rds_ib_cm_connect_complete() runs from the RDMA-CM event handler with
  conn->c_cm_lock held.  When the peer ne…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= f147dd9ecabf23fd63d2562ffe64252a0453ecde <
    424019be3f637da76b74f44a40034669acbb166f
  - >-
    Linux >= f147dd9ecabf23fd63d2562ffe64252a0453ecde <
    14fb90067d13f4494cff0f03243fae3cf2911cbc
  - >-
    Linux >= f147dd9ecabf23fd63d2562ffe64252a0453ecde <
    344c72a0bc2703a6de4918ed935850e07dae3af2
  - >-
    Linux >= f147dd9ecabf23fd63d2562ffe64252a0453ecde <
    b5c9f2951d330d4a198a64d6e60f79b4bd6ef078
  - >-
    Linux >= f147dd9ecabf23fd63d2562ffe64252a0453ecde <
    d392b16acd0908f077289aad8bba066ff16de336
  - >-
    Linux >= f147dd9ecabf23fd63d2562ffe64252a0453ecde <
    65ca0a5037152a5a80b8fe6aac80eb80458be573
  - >-
    Linux >= f147dd9ecabf23fd63d2562ffe64252a0453ecde <
    7d8c22cb2cb1efb5e830a4545c76abf7b35cc2e8
  - >-
    Linux >= f147dd9ecabf23fd63d2562ffe64252a0453ecde <
    f97d8c7bab7843631206a114986c9059da03efeb
  - Linux 2.6.37
published: '2026-10-06'
updated: '2026-10-07'
sourceUpdated: '2026-10-07T07:17:06.973'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98257'
references:
  - url: 'https://git.kernel.org/stable/c/14fb90067d13f4494cff0f03243fae3cf2911cbc'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/344c72a0bc2703a6de4918ed935850e07dae3af2'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/424019be3f637da76b74f44a40034669acbb166f'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/65ca0a5037152a5a80b8fe6aac80eb80458be573'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/7d8c22cb2cb1efb5e830a4545c76abf7b35cc2e8'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b5c9f2951d330d4a198a64d6e60f79b4bd6ef078'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/d392b16acd0908f077289aad8bba066ff16de336'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/f97d8c7bab7843631206a114986c9059da03efeb'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
  - cve.org
epss: 0.00184
epssPercentile: 0.07304
ingestedAt: '2026-10-06T08:50:17.428Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

rds: ib: use rds_conn_drop() on protocol version mismatch

rds_ib_cm_connect_complete() runs from the RDMA-CM event handler with
conn->c_cm_lock held.  When the peer negotiates a protocol version
older than RDS_PROTOCOL_COMPAT_VERSION, the handler calls
rds_conn_destroy(), which is only safe in the rmmod path: it
synchronously tears the connection down and flush_work()es the
shutdown work cp_down_w.

That shutdown work (rds_conn_shutdown()) needs cp_cm_lock, which is
the very lock the event handler still holds, so the flush never
completes: the two workers wait on each other and the RDS connection
workqueues stall for good.

All other RDMA-CM failure paths (REJECTED, CONNECT_ERROR,
DISCONNECTED) use rds_conn_drop(), which marks the connection
RDS_CONN_ERROR and schedules the shutdown work asynchronously.  Use
it here as well.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
