CVE-2024-26943

Source
https://cve.org/CVERecord?id=CVE-2024-26943
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26943.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-26943
Downstream
Related
Published
2024-05-01T05:18:00.713Z
Modified
2026-03-14T12:30:04.699735Z
Summary
nouveau/dmem: handle kcalloc() allocation failure
Details

In the Linux kernel, the following vulnerability has been resolved:

nouveau/dmem: handle kcalloc() allocation failure

The kcalloc() in nouveaudmemevictchunk() will return null if the physical memory has run out. As a result, if we dereference srcpfns, dstpfns or dmaaddrs, 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 _GFPNOFAIL 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26943.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
249881232e1471d28b68f9a3829acc14d150cf5d
Fixed
9acfd8b083a0ffbd387566800d89f55058a68af2
Fixed
2a84744a037b8a511d6a9055f3defddc28ff4a4d
Fixed
5e81773757a95fc298e96cfd6d4700f07b6192a2
Fixed
3e82f7383e0b82a835e6b6b06a348b2bc4e2c2ee
Fixed
16e87fe23d4af6df920406494ced5c0f4354567b

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26943.json"