VDB

CVE-2026-97477

CVE-2026-97477 PUBLISHED

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.

PackageEcosystemFixed in
perf6.18Amazon Linux1:6.18.54-121.166.amzn2023
bpftool6.18Amazon Linux1:6.18.54-121.166.amzn2023
LinuxLinuxda95cb016812c0e012ea839f191926e35ca8f57f, 7c9fee40fc8d8d928f44e99bc6e6adf93f9f2c2a, 4fbc8230009f5b1bcd13cc74c5a6a43ddba141fd, 4517686789b404827591c52f79e9a57822371ca0, 1bcdeddddffadff9993657f6b0e5535d66ebd10f

Risk scores

EPSS Score
0.17%
7.0th percentile

Affected products

VendorProductVersions
LinuxLinux8bc205eff3056a9ed3850937cdd2192f05e6d3cb, 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, 8bc205eff3056a9ed3850937cdd2192f05e6d3cb
LinuxLinux5.11, 0, 6.1.191
amazon:2023perf6.180
amazon:2023bpftool6.180
LinuxLinux6.18.53, 6.12.114, 6.6.160
amazon:2023kernel6.12-devel0
amazon:2023python3-perf6.180
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-livepatch-6.12.114-139.2100
amazon:2023microvm-kernel6.180
amazon:2023kernel6.18-devel0
amazon:2023kernel-livepatch-6.18.54-121.1660
amazon:2023kernel6.12-headers0
amazon:2023kernel6.120
amazon:2023kernel6.12-modules-extra-common0
linuxlinux_kernel5.11, 5.11, 5.11
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.12-tools0
amazon:2023kernel6.18-headers0

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›