{"id":"CVE-2026-98257","aliases":["CVE-2026-98257"],"related":[],"kind":"vulnerability","state":"published","title":"rds: ib: use rds_conn_drop() on protocol version mismatch","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-10-06T08:45:22.722Z","modified":"2026-10-19T10:18:26.740Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","fixed":"424019be3f637da76b74f44a40034669acbb166f","status":"affected"},{"type":"git","introduced":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","fixed":"14fb90067d13f4494cff0f03243fae3cf2911cbc","status":"affected"},{"type":"git","introduced":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","fixed":"344c72a0bc2703a6de4918ed935850e07dae3af2","status":"affected"},{"type":"git","introduced":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","fixed":"b5c9f2951d330d4a198a64d6e60f79b4bd6ef078","status":"affected"},{"type":"git","introduced":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","fixed":"d392b16acd0908f077289aad8bba066ff16de336","status":"affected"},{"type":"git","introduced":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","fixed":"65ca0a5037152a5a80b8fe6aac80eb80458be573","status":"affected"},{"type":"git","introduced":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","fixed":"7d8c22cb2cb1efb5e830a4545c76abf7b35cc2e8","status":"affected"},{"type":"git","introduced":"f147dd9ecabf23fd63d2562ffe64252a0453ecde","fixed":"f97d8c7bab7843631206a114986c9059da03efeb","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.37","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.37","status":"unaffected"},{"type":"semver","introduced":"5.10.271","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.222","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.54","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.8","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/424019be3f637da76b74f44a40034669acbb166f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/14fb90067d13f4494cff0f03243fae3cf2911cbc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/344c72a0bc2703a6de4918ed935850e07dae3af2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b5c9f2951d330d4a198a64d6e60f79b4bd6ef078","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d392b16acd0908f077289aad8bba066ff16de336","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/65ca0a5037152a5a80b8fe6aac80eb80458be573","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7d8c22cb2cb1efb5e830a4545c76abf7b35cc2e8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f97d8c7bab7843631206a114986c9059da03efeb","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98257","url":"https://www.cve.org/CVERecord?id=CVE-2026-98257","licence":"CVE Terms of Use","modified":"2026-10-19T09:16:28.470Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98257","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98257","licence":"Public domain","modified":"2026-10-19T10:18:26.740Z"}],"updatedAt":"2026-11-25T22:59:42.305Z","epss":{"score":0.00501,"percentile":0.44496,"date":"2026-12-01T12:00:22.000Z"}}