{"id":"CVE-2024-26912","state":"PUBLISHED","title":"drm/nouveau: fix several DMA buffer leaks","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/nouveau: fix several DMA buffer leaks\n\nNouveau manages GSP-RM DMA buffers with nvkm_gsp_mem objects.  Several of\nthese buffers are never dealloced.  Some of them can be deallocated\nright after GSP-RM is initialized, but the rest need to stay until the\ndriver unloads.\n\nAlso futher bullet-proof these objects by poisoning the buffer and\nclearing the nvkm_gsp_mem object when it is deallocated.  Poisoning\nthe buffer should trigger an error (or crash) from GSP-RM if it tries\nto access the buffer after we've deallocated it, because we were wrong\nabout when it is safe to deallocate.\n\nFinally, change the mem->size field to a size_t because that's the same\ntype that dma_alloc_coherent expects.","publishedAt":"2024-04-17T15:59:23.223Z","updatedAt":"2026-05-11T20:06:46.577Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"176fdcbddfd288408ce8571c1760ad618d962096","status":"affected","lessThan":"6190d4c08897d748dd25f0b78267a90aa1694e15","versionType":"git"},{"version":"176fdcbddfd288408ce8571c1760ad618d962096","status":"affected","lessThan":"042b5f83841fbf7ce39474412db3b5e4765a7ea7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/nouveau/include/nvkm/subdev/gsp.h","drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.7.6","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/nouveau/include/nvkm/subdev/gsp.h","drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c"]}],"references":["https://git.kernel.org/stable/c/6190d4c08897d748dd25f0b78267a90aa1694e15","https://git.kernel.org/stable/c/042b5f83841fbf7ce39474412db3b5e4765a7ea7"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:10.607Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/26xxx/CVE-2024-26912.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-26912","state":"PUBLISHED","datePublished":"2024-04-17T15:59:23.223Z","dateUpdated":"2026-05-11T20:06:46.577Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-19T14:20:24.190Z"},"containers":{"cna":{"title":"drm/nouveau: fix several DMA buffer leaks","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/nouveau: fix several DMA buffer leaks\n\nNouveau manages GSP-RM DMA buffers with nvkm_gsp_mem objects.  Several of\nthese buffers are never dealloced.  Some of them can be deallocated\nright after GSP-RM is initialized, but the rest need to stay until the\ndriver unloads.\n\nAlso futher bullet-proof these objects by poisoning the buffer and\nclearing the nvkm_gsp_mem object when it is deallocated.  Poisoning\nthe buffer should trigger an error (or crash) from GSP-RM if it tries\nto access the buffer after we've deallocated it, because we were wrong\nabout when it is safe to deallocate.\n\nFinally, change the mem->size field to a size_t because that's the same\ntype that dma_alloc_coherent expects."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"176fdcbddfd288408ce8571c1760ad618d962096","status":"affected","lessThan":"6190d4c08897d748dd25f0b78267a90aa1694e15","versionType":"git"},{"version":"176fdcbddfd288408ce8571c1760ad618d962096","status":"affected","lessThan":"042b5f83841fbf7ce39474412db3b5e4765a7ea7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/nouveau/include/nvkm/subdev/gsp.h","drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.7.6","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/nouveau/include/nvkm/subdev/gsp.h","drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/6190d4c08897d748dd25f0b78267a90aa1694e15"},{"url":"https://git.kernel.org/stable/c/042b5f83841fbf7ce39474412db3b5e4765a7ea7"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:06:46.577Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.7.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.8"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-26912","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-05-28T19:48:15.385423Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:48:54.580Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/6190d4c08897d748dd25f0b78267a90aa1694e15","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/042b5f83841fbf7ce39474412db3b5e4765a7ea7","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T00:21:05.852Z"}}]}}}