{"api_version":"1","generated_at":"2026-10-21T23:06:33+00:00","cve":"CVE-2026-98257","urls":{"html":"https://cve.report/CVE-2026-98257","api":"https://cve.report/api/cve/CVE-2026-98257.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-98257","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-98257"},"summary":{"title":"rds: ib: use rds_conn_drop() on protocol version mismatch","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-10-06 09:18:14","updated_at":"2026-10-19 10:18:26"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.5","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","data":{"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","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.5","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","data":{"baseScore":7.5,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/424019be3f637da76b74f44a40034669acbb166f","name":"https://git.kernel.org/stable/c/424019be3f637da76b74f44a40034669acbb166f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/14fb90067d13f4494cff0f03243fae3cf2911cbc","name":"https://git.kernel.org/stable/c/14fb90067d13f4494cff0f03243fae3cf2911cbc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f97d8c7bab7843631206a114986c9059da03efeb","name":"https://git.kernel.org/stable/c/f97d8c7bab7843631206a114986c9059da03efeb","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/65ca0a5037152a5a80b8fe6aac80eb80458be573","name":"https://git.kernel.org/stable/c/65ca0a5037152a5a80b8fe6aac80eb80458be573","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d392b16acd0908f077289aad8bba066ff16de336","name":"https://git.kernel.org/stable/c/d392b16acd0908f077289aad8bba066ff16de336","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/344c72a0bc2703a6de4918ed935850e07dae3af2","name":"https://git.kernel.org/stable/c/344c72a0bc2703a6de4918ed935850e07dae3af2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7d8c22cb2cb1efb5e830a4545c76abf7b35cc2e8","name":"https://git.kernel.org/stable/c/7d8c22cb2cb1efb5e830a4545c76abf7b35cc2e8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b5c9f2951d330d4a198a64d6e60f79b4bd6ef078","name":"https://git.kernel.org/stable/c/b5c9f2951d330d4a198a64d6e60f79b4bd6ef078","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-98257","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98257","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f147dd9ecabf23fd63d2562ffe64252a0453ecde 424019be3f637da76b74f44a40034669acbb166f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f147dd9ecabf23fd63d2562ffe64252a0453ecde 14fb90067d13f4494cff0f03243fae3cf2911cbc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f147dd9ecabf23fd63d2562ffe64252a0453ecde 344c72a0bc2703a6de4918ed935850e07dae3af2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f147dd9ecabf23fd63d2562ffe64252a0453ecde b5c9f2951d330d4a198a64d6e60f79b4bd6ef078 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f147dd9ecabf23fd63d2562ffe64252a0453ecde d392b16acd0908f077289aad8bba066ff16de336 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f147dd9ecabf23fd63d2562ffe64252a0453ecde 65ca0a5037152a5a80b8fe6aac80eb80458be573 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f147dd9ecabf23fd63d2562ffe64252a0453ecde 7d8c22cb2cb1efb5e830a4545c76abf7b35cc2e8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected f147dd9ecabf23fd63d2562ffe64252a0453ecde f97d8c7bab7843631206a114986c9059da03efeb git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.37","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.37 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.271 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.222 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.189 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.158 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.112 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.54 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.8 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"98257","cve":"CVE-2026-98257","epss":"0.001840000","percentile":"0.073040000","score_date":"2026-10-06","updated_at":"2026-10-07 00:14:55"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/rds/ib_cm.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"424019be3f637da76b74f44a40034669acbb166f","status":"affected","version":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","versionType":"git"},{"lessThan":"14fb90067d13f4494cff0f03243fae3cf2911cbc","status":"affected","version":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","versionType":"git"},{"lessThan":"344c72a0bc2703a6de4918ed935850e07dae3af2","status":"affected","version":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","versionType":"git"},{"lessThan":"b5c9f2951d330d4a198a64d6e60f79b4bd6ef078","status":"affected","version":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","versionType":"git"},{"lessThan":"d392b16acd0908f077289aad8bba066ff16de336","status":"affected","version":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","versionType":"git"},{"lessThan":"65ca0a5037152a5a80b8fe6aac80eb80458be573","status":"affected","version":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","versionType":"git"},{"lessThan":"7d8c22cb2cb1efb5e830a4545c76abf7b35cc2e8","status":"affected","version":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","versionType":"git"},{"lessThan":"f97d8c7bab7843631206a114986c9059da03efeb","status":"affected","version":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/rds/ib_cm.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.37"},{"lessThan":"2.6.37","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.271","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.222","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.189","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.158","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.112","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.54","versionType":"semver"},{"lessThanOrEqual":"7.2.*","status":"unaffected","version":"7.2.8","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.3","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.271","versionStartIncluding":"2.6.37","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.222","versionStartIncluding":"2.6.37","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.189","versionStartIncluding":"2.6.37","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.158","versionStartIncluding":"2.6.37","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.112","versionStartIncluding":"2.6.37","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.54","versionStartIncluding":"2.6.37","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2.8","versionStartIncluding":"2.6.37","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3","versionStartIncluding":"2.6.37","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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":{"baseScore":7.5,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"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."}]}],"providerMetadata":{"dateUpdated":"2026-10-19T09:16:28.470Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-98257","datePublished":"2026-10-06T08:45:22.722Z","dateReserved":"2026-09-25T10:25:14.332Z","dateUpdated":"2026-10-19T09:16:28.470Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-10-06 09:18:14","lastModifiedDate":"2026-10-19 10:18:26","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"98257","Ordinal":"1","Title":"rds: ib: use rds_conn_drop() on protocol version mismatch","CVE":"CVE-2026-98257","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"98257","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"rds: ib: use rds_conn_drop() on protocol version mismatch"}]}}}