{"schema":"threatline.record/2","record":{"id":"CVE-2026-97477","aliases":[],"summary":"RDMA/counter: Fix num_counters leak on bind_qp failure in alloc_and_bind()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/counter: Fix num_counters leak on bind_qp failure in alloc_and_bind()\n\nWhen __rdma_counter_bind_qp() fails in alloc_and_bind(), the error path\njumps to err_mode which frees the counter without decrementing\nport_counter->num_counters. The only place that decrements is\nrdma_counter_free(), which is unreachable since the counter was never\nsuccessfully bound.\n\nThis leak accumulates across repeated failures, permanently preventing\nthe port from switching to AUTO mode (-EBUSY in __counter_set_mode())\nand blocking the MANUAL→NONE auto-revert in rdma_counter_free(). When\nthe mode was NONE before the call, the MANUAL mode set by\n__counter_set_mode() also leaks since the revert logic is never\nreached.\n\nAdd an err_bind label between the num_counters increment and the\nexisting err_mode label. It decrements num_counters and mirrors the\nMANUAL→NONE revert from rdma_counter_free(), ensuring the port state\nis fully restored on bind failure.","categories":["Operating systems"],"product":"Linux","vendor":"Linux","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97477","source_modified_at":"2026-10-21T12:52:48.541Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"8bc205eff3056a9ed3850937cdd2192f05e6d3cb","lessThan":"7c9fee40fc8d8d928f44e99bc6e6adf93f9f2c2a","status":"affected","versionType":"git"},{"version":"8bc205eff3056a9ed3850937cdd2192f05e6d3cb","lessThan":"1bcdeddddffadff9993657f6b0e5535d66ebd10f","status":"affected","versionType":"git"},{"version":"8bc205eff3056a9ed3850937cdd2192f05e6d3cb","lessThan":"da95cb016812c0e012ea839f191926e35ca8f57f","status":"affected","versionType":"git"},{"version":"8bc205eff3056a9ed3850937cdd2192f05e6d3cb","lessThan":"4fbc8230009f5b1bcd13cc74c5a6a43ddba141fd","status":"affected","versionType":"git"}],"defaultStatus":"unaffected"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97477","source_modified_at":"2026-10-21T12:52:48.541Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"5.11","status":"affected"},{"version":"0","lessThan":"5.11","status":"unaffected","versionType":"semver"},{"version":"6.6.160","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.114","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.53","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"defaultStatus":"affected"}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97477","source_modified_at":"2026-10-21T12:52:48.541Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"7c9fee40fc8d8d928f44e99bc6e6adf93f9f2c2a","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97477","source_modified_at":"2026-10-21T12:52:48.541Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"1bcdeddddffadff9993657f6b0e5535d66ebd10f","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-97477","source_modified_at":"2026-10-21T12:52:48.541Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"4fbc8230009f5b1bcd13cc74c5a6a43ddba141fd","basis":"first unaffected version stated in the CVE record"}],"cvss":null,"severity":null,"kev":{"listed":false},"epss":{"probability":0.00168,"percentile":0.05803,"score_date":"2026-10-23"},"published_at":"2026-09-24T16:04:19.358Z","modified_at":"2026-10-21T12:52:48.541Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-97477","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-21T12:52:48.541Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-97477","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","EPSS"],"references":[{"source":"CVE List","url":"https://git.kernel.org/stable/c/7c9fee40fc8d8d928f44e99bc6e6adf93f9f2c2a"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/1bcdeddddffadff9993657f6b0e5535d66ebd10f"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/da95cb016812c0e012ea839f191926e35ca8f57f"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/4fbc8230009f5b1bcd13cc74c5a6a43ddba141fd"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-21T12:52:48.541Z","content_hash":"13b95e723da2718017b5a6c90e09b873e422e944aac451db0695d8f48591ecda"}}
