CVE-2026-97477
RDMA/counter: Fix num_counters leak on bind_qp failure in alloc_and_bind()
Reported by linux · Published September 24, 2026
In the Linux kernel, the following vulnerability has been resolved: RDMA/counter: Fix num_counters leak on bind_qp failure in alloc_and_bind() When __rdma_counter_bind_qp() fails in alloc_and_bind(), the error path jumps to err_mode which frees the counter without decrementing port_counter->num_counters. The only place that decrements is rdma_counter_free(), which is unreachable since the counter was never successfully bound. This leak accumulates across repeated failures, permanently preventing the port from switching to AUTO mode (-EBUSY in __counter_set_mode()) and blocking the MANUAL→NONE auto-revert in rdma_counter_free(). When the mode was NONE before the call, the MANUAL mode set by __counter_set_mode() also leaks since the revert logic is never reached. Add an err_bind label between the num_counters increment and the existing err_mode label. It decrements num_counters and mirrors the MANUAL→NONE revert from rdma_counter_free(), ensuring the port state is fully restored on bind failure.
EPSS 0.17% · 7.0th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perf6.18 | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| bpftool6.18 | Amazon Linux | 1:6.18.54-121.166.amzn2023 |
| Linux | Linux | da95cb016812c0e012ea839f191926e35ca8f57f, 7c9fee40fc8d8d928f44e99bc6e6adf93f9f2c2a, 4fbc8230009f5b1bcd13cc74c5a6a43ddba141fd, 4517686789b404827591c52f79e9a57822371ca0, 1bcdeddddffadff9993657f6b0e5535d66ebd10f |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, 8bc205eff3056a9ed3850937cdd2192f05e6d3cb |
| Linux | Linux | 5.11, 0, 6.1.191 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| Linux | Linux | 6.18.53, 6.12.114, 6.6.160 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-livepatch-6.12.114-139.210 | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel-livepatch-6.18.54-121.166 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| linux | linux_kernel | 5.11, 5.11, 5.11 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
…and 7 more
Timeline
- Sep 24, 2026 CVE Published
- Sep 25, 2026 EPSS Score (10 in total, the first dated here)
- Oct 30, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-97477
vulnetix vdb fixes CVE-2026-97477
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-97477/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart