CVE-2024-26943

nouveau/dmem: handle kcalloc() allocation failure

No CVSS score yet EPSS 0.22%

Published 1 May 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-26943

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-26943 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:

nouveau/dmem: handle kcalloc() allocation failure

The kcalloc() in nouveau_dmem_evict_chunk() will return null if the physical memory has run out. As a result, if we dereference src_pfns, dst_pfns or dma_addrs, the null pointer dereference bugs will happen.

Moreover, the GPU is going away. If the kcalloc() fails, we could not evict all pages mapping a chunk. So this patch adds a __GFP_NOFAIL flag in kcalloc().

Finally, as there is no need to have physically contiguous memory, this patch switches kcalloc() to kvcalloc() in order to avoid failing allocations.

Exploitation

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

The assessment of CISA (SSVC, 17 Jul 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 249881232e1471d28b68f9a3829acc14d150cf5d, before 9acfd8b083a0ffbd387566800d89f55058a68af2
affected from 249881232e1471d28b68f9a3829acc14d150cf5d, before 2a84744a037b8a511d6a9055f3defddc28ff4a4d
affected from 249881232e1471d28b68f9a3829acc14d150cf5d, before 5e81773757a95fc298e96cfd6d4700f07b6192a2
affected from 249881232e1471d28b68f9a3829acc14d150cf5d, before 3e82f7383e0b82a835e6b6b06a348b2bc4e2c2ee
affected from 249881232e1471d28b68f9a3829acc14d150cf5d, before 16e87fe23d4af6df920406494ced5c0f4354567b
Other versions: unaffected
Linux
affected 6.1
unaffected before 6.1
unaffected from 6.1.84 up to and including 6.1.*
unaffected from 6.6.24 up to and including 6.6.*
unaffected from 6.7.12 up to and including 6.7.*
unaffected from 6.8.3 up to and including 6.8.*
unaffected 6.9 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-26943 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-26943

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

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-26943 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.