CVE-2026-97477

RDMA/counter: Fix num_counters leak on bind_qp failure in alloc_and_bind()

No CVSS score yet EPSS 0.21%

Published 24 Sep 2026 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2026-97477

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-97477 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.33% of all scored CVEs. Scores of 29 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, before 4517686789b404827591c52f79e9a57822371ca0
affected from 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, before 7c9fee40fc8d8d928f44e99bc6e6adf93f9f2c2a
affected from 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, before 1bcdeddddffadff9993657f6b0e5535d66ebd10f
affected from 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, before da95cb016812c0e012ea839f191926e35ca8f57f
affected from 8bc205eff3056a9ed3850937cdd2192f05e6d3cb, before 4fbc8230009f5b1bcd13cc74c5a6a43ddba141fd
Other versions: unaffected
Linux
affected 5.11
unaffected before 5.11
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.160 up to and including 6.6.*
unaffected from 6.12.114 up to and including 6.12.*
unaffected from 6.18.53 up to and including 6.18.*
unaffected 7.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-97477 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-97477

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-97477
trivy image --scanners vuln IMAGE | grep CVE-2026-97477

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-97477 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.