CVEvulnerability
CVE-2024-26912
5.5 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2024-04-17
- Last modified
- 2026-06-17
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS 3.1 ([email protected])
- 5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-401
Description
In the Linux kernel, the following vulnerability has been resolved:
drm/nouveau: fix several DMA buffer leaks
Nouveau manages GSP-RM DMA buffers with nvkm_gsp_mem objects. Several of
these buffers are never dealloced. Some of them can be deallocated
right after GSP-RM is initialized, but the rest need to stay until the
driver unloads.
Also futher bullet-proof these objects by poisoning the buffer and
clearing the nvkm_gsp_mem object when it is deallocated. Poisoning
the buffer should trigger an error (or crash) from GSP-RM if it tries
to access the buffer after we've deallocated it, because we were wrong
about when it is safe to deallocate.
Finally, change the mem->size field to a size_t because that's the same
type that dma_alloc_coherent expects.
Affected configurations
• linux linux kernel (> 6.7.0 < 6.7.6)
Related
Weakness · CWE (1)
- CWE-401 Missing Release of Memory after Effective Lifetime weakness
References
- https://git.kernel.org/stable/c/042b5f83841fbf7ce39474412db3b5e4765a7ea7 Patch
- https://git.kernel.org/stable/c/6190d4c08897d748dd25f0b78267a90aa1694e15 Patch
- https://git.kernel.org/stable/c/042b5f83841fbf7ce39474412db3b5e4765a7ea7 Patch
- https://git.kernel.org/stable/c/6190d4c08897d748dd25f0b78267a90aa1694e15 Patch