CVE-2024-26943

nouveau/dmem: handle kcalloc() allocation failure

MEDIUM
5.5
CVSS Score
Published: May 1, 2024 at 05:18 AM UTC
Updated: June 17, 2026 at 07:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.1 ≤ v < 6.1.846.1 ≤ v < 6.6.246.1 ≤ v < 6.7.126.1 ≤ v < 6.8.36.1 ≤ v < 6.96.2 ≤ v < 6.6.246.7 ≤ v < 6.7.126.8 ≤ v < 6.8.3249881232e1471d28b68f9a3829acc14d150cf5d6.9 rc1
Vendor states this is fixed in 16e87fe23d4af6df920406494ced5c0f4354567b (fixed)
Vendor states this is fixed in 2a84744a037b8a511d6a9055f3defddc28ff4a4d (fixed)
Vendor states this is fixed in 3e82f7383e0b82a835e6b6b06a348b2bc4e2c2ee (fixed)
Vendor states this is fixed in 5e81773757a95fc298e96cfd6d4700f07b6192a2 (fixed)
Vendor states this is fixed in 9acfd8b083a0ffbd387566800d89f55058a68af2 (fixed)
Vendor states this is fixed in 6.1 (unaffected)
Vendor states this is fixed in 6.1.84 (unaffected)
Vendor states this is fixed in 6.6.24 (unaffected)
Vendor states this is fixed in 6.7.12 (unaffected)
Vendor states this is fixed in 6.8.3 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (5)

Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/16e87fe23d4af6df920406494ced5c0f4354567b
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2a84744a037b8a511d6a9055f3defddc28ff4a4d
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3e82f7383e0b82a835e6b6b06a348b2bc4e2c2ee
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5e81773757a95fc298e96cfd6d4700f07b6192a2
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9acfd8b083a0ffbd387566800d89f55058a68af2

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card