{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98257","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.332Z","datePublished":"2026-10-06T08:45:22.722Z","dateUpdated":"2026-10-07T06:49:44.498Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-10-07T06:49:44.498Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nrds: ib: use rds_conn_drop() on protocol version mismatch\n\nrds_ib_cm_connect_complete() runs from the RDMA-CM event handler with\nconn->c_cm_lock held.  When the peer negotiates a protocol version\nolder than RDS_PROTOCOL_COMPAT_VERSION, the handler calls\nrds_conn_destroy(), which is only safe in the rmmod path: it\nsynchronously tears the connection down and flush_work()es the\nshutdown work cp_down_w.\n\nThat shutdown work (rds_conn_shutdown()) needs cp_cm_lock, which is\nthe very lock the event handler still holds, so the flush never\ncompletes: the two workers wait on each other and the RDS connection\nworkqueues stall for good.\n\nAll other RDMA-CM failure paths (REJECTED, CONNECT_ERROR,\nDISCONNECTED) use rds_conn_drop(), which marks the connection\nRDS_CONN_ERROR and schedules the shutdown work asynchronously.  Use\nit here as well."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - The bad input is dp_protocol_major/minor in the peer's RDMA-CM REP private data, which rds_ib_cm_connect_complete() reads on RDMA_CM_EVENT_ESTABLISHED from rds_rdma_cm_event_handler_cmn(). RDS/IB runs over RoCEv2, whose CM messages travel over routable UDP/IP, so a remote peer supplies the version that hits the rds_conn_destroy() branch.\nAC:L - The attacker produces the active-side state: connect to the RDS listener, then disconnect. IB has no lower-address rule in rds_queue_reconnect(), so the hashed conn reconnects to the attacker, who replies with version 3.0. The deadlock then fires every time.\nPR:N - RDS/IB connection setup has no authentication. rds_ib_cm_handle_connect() only checks the protocol version from the request, and the REP private data the fix concerns is taken from the peer as-is.\nUI:N - No local user action is needed. The victim kernel's own reconnect worker (rds_connect_worker via rds_queue_reconnect) starts the outgoing connection after the attacker drops the first one.\nS:U - The impact is a deadlock inside the same kernel that processes the RDMA-CM event. No VM, IOMMU or sandbox boundary is crossed.\nC:N - rds_conn_destroy() blocks in flush_work(&cp->cp_down_w) before it reaches kmem_cache_free(), so the conn is never freed and then used. No memory is disclosed.\nI:N - No memory is corrupted. The fault is a lock-ordering deadlock between the CM handler holding c_cm_lock and rds_conn_shutdown() waiting for it, not a write to freed or out-of-bounds memory.\nA:H - The RDMA-CM event worker blocks forever in flush_work() while holding c_cm_lock, and the RDS shutdown work blocks on mutex_lock(&cp->cp_cm_lock). This stalls the RDS connection workqueues and CM event handling for good, and the attacker can repeat it against new connections."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/rds/ib_cm.c"],"versions":[{"version":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","lessThan":"424019be3f637da76b74f44a40034669acbb166f","status":"affected","versionType":"git"},{"version":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","lessThan":"14fb90067d13f4494cff0f03243fae3cf2911cbc","status":"affected","versionType":"git"},{"version":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","lessThan":"344c72a0bc2703a6de4918ed935850e07dae3af2","status":"affected","versionType":"git"},{"version":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","lessThan":"b5c9f2951d330d4a198a64d6e60f79b4bd6ef078","status":"affected","versionType":"git"},{"version":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","lessThan":"d392b16acd0908f077289aad8bba066ff16de336","status":"affected","versionType":"git"},{"version":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","lessThan":"65ca0a5037152a5a80b8fe6aac80eb80458be573","status":"affected","versionType":"git"},{"version":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","lessThan":"7d8c22cb2cb1efb5e830a4545c76abf7b35cc2e8","status":"affected","versionType":"git"},{"version":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","lessThan":"f97d8c7bab7843631206a114986c9059da03efeb","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/rds/ib_cm.c"],"versions":[{"version":"2.6.37","status":"affected"},{"version":"0","lessThan":"2.6.37","status":"unaffected","versionType":"semver"},{"version":"5.10.271","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.222","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.189","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.158","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.112","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.54","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2.8","lessThanOrEqual":"7.2.*","status":"unaffected","versionType":"semver"},{"version":"7.3-rc4","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.37","versionEndExcluding":"5.10.271"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.37","versionEndExcluding":"5.15.222"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.37","versionEndExcluding":"6.1.189"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.37","versionEndExcluding":"6.6.158"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.37","versionEndExcluding":"6.12.112"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.37","versionEndExcluding":"6.18.54"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.37","versionEndExcluding":"7.2.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.37","versionEndExcluding":"7.3-rc4"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/424019be3f637da76b74f44a40034669acbb166f"},{"url":"https://git.kernel.org/stable/c/14fb90067d13f4494cff0f03243fae3cf2911cbc"},{"url":"https://git.kernel.org/stable/c/344c72a0bc2703a6de4918ed935850e07dae3af2"},{"url":"https://git.kernel.org/stable/c/b5c9f2951d330d4a198a64d6e60f79b4bd6ef078"},{"url":"https://git.kernel.org/stable/c/d392b16acd0908f077289aad8bba066ff16de336"},{"url":"https://git.kernel.org/stable/c/65ca0a5037152a5a80b8fe6aac80eb80458be573"},{"url":"https://git.kernel.org/stable/c/7d8c22cb2cb1efb5e830a4545c76abf7b35cc2e8"},{"url":"https://git.kernel.org/stable/c/f97d8c7bab7843631206a114986c9059da03efeb"}],"title":"rds: ib: use rds_conn_drop() on protocol version mismatch","x_generator":{"engine":"bippy-1.2.0"}}}}