CVE-2026-90415: RDMA/cxgb4: free STAG index when TPT entry write fails

Published Sep 17, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

RDMA/cxgb4: free STAG index when TPT entry write fails

writetptentry() allocates a new STAG index with c4iwgetresource() and bumps stats.stag.cur before programming the entry. When writeadaptermem() fails, it returns the error without releasing the index or reversing the statistic. No MR is inserted into rhp->mrs, so deregistration never reclaims it, leaking the index until device teardown.

Record whether this call allocated the index and, on a failed write, return it to tpttable and decrement stats.stag.cur. Key the rollback on both the write error and that flag, not the error alone: a non-reset update carries a caller-owned STAG that this call did not allocate and must not free.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 17, 2026
CVE Published
via MITRE·04:09 PM
Data Sourced
via MITRE·04:09 PM
Description

Frequently Asked Questions

1

Under what condition does the STAG index leak occur?

The leak occurs when write_tpt_entry() allocates a new STAG index and the subsequent write_adapter_mem() call fails. The index remains allocated until device teardown because no memory region is inserted for normal deregistration to reclaim it.

2

Are all failed TPT entry writes affected?

No. The rollback applies only when the failing call allocated a new STAG index. A non-reset update may use a caller-owned STAG, which must not be freed by this error path.

3

What is the operational impact before the fix is applied?

Repeated qualifying write failures can consume STAG indices and increase stats.stag.cur without releasing them. The leaked indices persist until the device is torn down.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203