CVE-2024-26839

IB/hfi1: Fix a memleak in init_credit_return

State
Published
Severity
Not scored
Published
Apr 17, 2024
Updated
May 11, 2026
Reserved
Feb 19, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 7724105686e718ac476a6ad3304fea2fbcfcffde to before 2e4f9f20b32658ef3724aa46f7aef4908d2609e3Affected
  • 7724105686e718ac476a6ad3304fea2fbcfcffde to before cecfb90cf71d91e9efebd68b9e9b84661b277cc8Affected
  • 7724105686e718ac476a6ad3304fea2fbcfcffde to before 3fa240bb6b2dbb3e7a3ee1440a4889cbb6207eb7Affected
  • 7724105686e718ac476a6ad3304fea2fbcfcffde to before 52de5805c147137205662af89ed7e083d656ae25Affected
  • 7724105686e718ac476a6ad3304fea2fbcfcffde to before f0d857ce31a6bc7a82afcdbadb8f7417d482604bAffected
  • 7724105686e718ac476a6ad3304fea2fbcfcffde to before b41d0ade0398007fb746213f09903d52a920e896Affected
  • 7724105686e718ac476a6ad3304fea2fbcfcffde to before 8412c86e89cc78d8b513cb25cf2157a2adf3670aAffected
  • 7724105686e718ac476a6ad3304fea2fbcfcffde to before 809aa64ebff51eb170ee31a95f83b2d21efa32e2Affected
LinuxLinux
  • 4.3Affected
  • before 4.3Not affected
  • 4.19.308 through 4.19.*Not affected
  • 5.4.270 through 5.4.*Not affected
  • 5.10.211 through 5.10.*Not affected
  • 5.15.150 through 5.15.*Not affected
  • 6.1.80 through 6.1.*Not affected
  • 6.6.19 through 6.6.*Not affected
  • 6.7.7 through 6.7.*Not affected
  • 6.8 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.