CVE-2024-26839
kernel: IB/hfi1: Fix a memleak in init_credit_return
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 17, 2024
Updated · November 21, 2025
Description
In the Linux kernel, the following vulnerability has been resolved:
IB/hfi1: Fix a memleak in init_credit_return
When dma_alloc_coherent fails to allocate dd->cr_base[i].va, init_credit_return should deallocate dd->cr_base and dd->cr_base[i] that allocated before. Or those resources would be never freed and a memleak is triggered.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 4.4CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
CWE-402 · Transmission of Private Resources into a New Sphere ('Resource Leak')