Bug 1223064 (CVE-2024-26912) - VUL-0: CVE-2024-26912: kernel: drm/nouveau: fix several DMA buffer leaks
Summary: VUL-0: CVE-2024-26912: kernel: drm/nouveau: fix several DMA buffer leaks
Status: RESOLVED FIXED
Alias: CVE-2024-26912
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/402450/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-26912:5.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-18 10:03 UTC by SMASH SMASH
Modified: 2024-07-01 16:13 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-04-18 10:03:15 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-26912
https://www.cve.org/CVERecord?id=CVE-2024-26912
https://git.kernel.org/stable/c/042b5f83841fbf7ce39474412db3b5e4765a7ea7
https://git.kernel.org/stable/c/6190d4c08897d748dd25f0b78267a90aa1694e15
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-26912.mbox
https://bugzilla.redhat.com/show_bug.cgi?id=2275796
Comment 12 Andrea Mattiazzo 2024-06-07 12:14:19 UTC
All done, closing.