# CVE-2026-97477: RDMA/counter: Fix num\_counters leak on bind\_qp failure in alloc\_and\_bind()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-09-24T16:04:19.358Z
- **Modified:** 2026-10-30T13:21:04.197Z

## Who should check

- Anyone running Linux \>= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, \< 4517686789b404827591c52f79e9a57822371ca0; \>= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, \< 7c9fee40fc8d8d928f44e99bc6e6adf93f9f2c2a; \>= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, \< 1bcdeddddffadff9993657f6b0e5535d66ebd10f; \>= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, \< da95cb016812c0e012ea839f191926e35ca8f57f; \>= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, \< 4fbc8230009f5b1bcd13cc74c5a6a43ddba141fd
- Anyone running Linux 5.11

## Description

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.

## Affected and fixed versions

- Linux: \>= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, \< 4517686789b404827591c52f79e9a57822371ca0; \>= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, \< 7c9fee40fc8d8d928f44e99bc6e6adf93f9f2c2a; \>= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, \< 1bcdeddddffadff9993657f6b0e5535d66ebd10f; \>= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, \< da95cb016812c0e012ea839f191926e35ca8f57f; \>= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, \< 4fbc8230009f5b1bcd13cc74c5a6a43ddba141fd (cvelist)
- Linux: 5.11 (cvelist)

## Mitigation

- Upgrade Linux to 4fbc8230009f5b1bcd13cc74c5a6a43ddba141fd or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-97477. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-97477.md
Affected: Linux >= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, < 4517686789b404827591c52f79e9a57822371ca0; >= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, < 7c9fee40fc8d8d928f44e99bc6e6adf93f9f2c2a; >= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, < 1bcdeddddffadff9993657f6b0e5535d66ebd10f; >= 8bc205eff3056a9ed385093…
Fixed in: Linux 4517686789b404827591c52f79e9a57822371ca0, Linux 7c9fee40fc8d8d928f44e99bc6e6adf93f9f2c2a, Linux 1bcdeddddffadff9993657f6b0e5535d66ebd10f, Linux 4fbc8230009f5b1bcd13cc74c5a6a43ddba141fd

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-97477 being exploited?

There is no confirmed exploitation: CVE-2026-97477 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-97477?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-97477?

Linux \>= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, \< 4517686789b404827591c52f79e9a57822371ca0; \>= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, \< 7c9fee40fc8d8d928f44e99bc6e6adf93f9f2c2a; \>= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, \< 1bcdeddddffadff9993657f6b0e5535d66ebd10f; \>= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, \< da95cb016812c0e012ea839f191926e35ca8f57f; \>= 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, \< 4fbc8230009f5b1bcd13cc74c5a6a43ddba141fd; Linux 5.11.

### Is there a fix for CVE-2026-97477?

Yes. Fixed in Linux 4517686789b404827591c52f79e9a57822371ca0, Linux 7c9fee40fc8d8d928f44e99bc6e6adf93f9f2c2a, Linux 1bcdeddddffadff9993657f6b0e5535d66ebd10f, Linux 4fbc8230009f5b1bcd13cc74c5a6a43ddba141fd. Upgrade Linux to 4fbc8230009f5b1bcd13cc74c5a6a43ddba141fd or later.

### How do I check if I'm affected by CVE-2026-97477?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/4517686789b404827591c52f79e9a57822371ca0>
- other: <https://git.kernel.org/stable/c/7c9fee40fc8d8d928f44e99bc6e6adf93f9f2c2a>
- other: <https://git.kernel.org/stable/c/1bcdeddddffadff9993657f6b0e5535d66ebd10f>
- other: <https://git.kernel.org/stable/c/da95cb016812c0e012ea839f191926e35ca8f57f>
- other: <https://git.kernel.org/stable/c/4fbc8230009f5b1bcd13cc74c5a6a43ddba141fd>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-97477>

HTML: <https://flawdb.com/CVE-2026-97477> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-97477>
