CVE-2024-26839

IB/hfi1: Fix a memleak in init_credit_return

No CVSS score yet EPSS 0.24%

Published 17 Apr 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-26839

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-2024-26839 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:

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.

Exploitation

EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.1% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 17 Jun 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 7724105686e718ac476a6ad3304fea2fbcfcffde, before 2e4f9f20b32658ef3724aa46f7aef4908d2609e3
affected from 7724105686e718ac476a6ad3304fea2fbcfcffde, before cecfb90cf71d91e9efebd68b9e9b84661b277cc8
affected from 7724105686e718ac476a6ad3304fea2fbcfcffde, before 3fa240bb6b2dbb3e7a3ee1440a4889cbb6207eb7
affected from 7724105686e718ac476a6ad3304fea2fbcfcffde, before 52de5805c147137205662af89ed7e083d656ae25
affected from 7724105686e718ac476a6ad3304fea2fbcfcffde, before f0d857ce31a6bc7a82afcdbadb8f7417d482604b
affected from 7724105686e718ac476a6ad3304fea2fbcfcffde, before b41d0ade0398007fb746213f09903d52a920e896
affected from 7724105686e718ac476a6ad3304fea2fbcfcffde, before 8412c86e89cc78d8b513cb25cf2157a2adf3670a
affected from 7724105686e718ac476a6ad3304fea2fbcfcffde, before 809aa64ebff51eb170ee31a95f83b2d21efa32e2
Other versions: unaffected
Linux
affected 4.3
unaffected before 4.3
unaffected from 4.19.308 up to and including 4.19.*
unaffected from 5.4.270 up to and including 5.4.*
unaffected from 5.10.211 up to and including 5.10.*
unaffected from 5.15.150 up to and including 5.15.*
unaffected from 6.1.80 up to and including 6.1.*
unaffected from 6.6.19 up to and including 6.6.*
unaffected from 6.7.7 up to and including 6.7.*
unaffected 6.8 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-2024-26839 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-26839

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-2024-26839
trivy image --scanners vuln IMAGE | grep CVE-2024-26839

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-2024-26839 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.