IB/hfi1: Fix a memleak in init_credit_return
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7724105686e718ac476a6ad3304fea2fbcfcffde · < b41d0ade0398007fb746213f09903d52a920e896| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s IB/hfi1 init_credit_return function can leak previously allocated memory when dma_alloc_coherent fails. The input does not describe how an attacker could trigger this condition or specify network access, authentication, or user interaction requirements.
Engineers running the Linux kernel with the IB/hfi1 component should check their versions; affected versions were not provided.