{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-97477","id":"CVE-2026-97477","title":"RDMA/counter: Fix num_counters leak on bind_qp failure in alloc_and_bind()","description":"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 counte","descriptionLong":"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.","published":"2026-09-24T16:04:19.358Z","updated":"2026-11-15T17:27:42.255399323Z","reserved":"2026-09-24T16:01:01.149Z","status":"Received","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8bc205eff3056a9ed3850937cdd2192f05e6d3cb","lessThan":"4517686789b404827591c52f79e9a57822371ca0","status":"affected","versionType":"git"},{"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"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","lessThan":"5.11","status":"unaffected","versionType":"semver"},{"version":"6.1.191","lessThanOrEqual":"6.1.*","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"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/4517686789b404827591c52f79e9a57822371ca0","tags":["web"]},{"url":"https://git.kernel.org/stable/c/7c9fee40fc8d8d928f44e99bc6e6adf93f9f2c2a","tags":["web"]},{"url":"https://git.kernel.org/stable/c/1bcdeddddffadff9993657f6b0e5535d66ebd10f","tags":["web"]},{"url":"https://git.kernel.org/stable/c/da95cb016812c0e012ea839f191926e35ca8f57f","tags":["web"]},{"url":"https://git.kernel.org/stable/c/4fbc8230009f5b1bcd13cc74c5a6a43ddba141fd","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97477.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97477","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00174,"epssPercentile":0.06976,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-97477","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97477","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-97477","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-97477","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}