{"id":"CVE-2022-48730","state":"PUBLISHED","title":"dma-buf: heaps: Fix potential spectre v1 gadget","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndma-buf: heaps: Fix potential spectre v1 gadget\n\nIt appears like nr could be a Spectre v1 gadget as it's supplied by a\nuser and used as an array index. Prevent the contents\nof kernel memory from being leaked to userspace via speculative\nexecution by using array_index_nospec.\n\n [sumits: added fixes and cc: stable tags]","publishedAt":"2024-06-20T11:13:18.750Z","updatedAt":"2026-05-11T18:45:50.697Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c02a81fba74fe3488ad6b08bfb5a1329005418f8","status":"affected","lessThan":"5d40f1bdad3dd1a177f21a90ad4353c1ed40ba3a","versionType":"git"},{"version":"c02a81fba74fe3488ad6b08bfb5a1329005418f8","status":"affected","lessThan":"24f8e12d965b24f8aea762589e0e9fe2025c005e","versionType":"git"},{"version":"c02a81fba74fe3488ad6b08bfb5a1329005418f8","status":"affected","lessThan":"cc8f7940d9c2d45f67b3d1a2f2b7a829ca561bed","versionType":"git"},{"version":"c02a81fba74fe3488ad6b08bfb5a1329005418f8","status":"affected","lessThan":"92c4cfaee6872038563c5b6f2e8e613f9d84d47d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/dma-buf/dma-heap.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.6","versionType":"semver"},{"version":"5.10.99","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.22","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.8","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/dma-buf/dma-heap.c"]}],"references":["https://git.kernel.org/stable/c/5d40f1bdad3dd1a177f21a90ad4353c1ed40ba3a","https://git.kernel.org/stable/c/24f8e12d965b24f8aea762589e0e9fe2025c005e","https://git.kernel.org/stable/c/cc8f7940d9c2d45f67b3d1a2f2b7a829ca561bed","https://git.kernel.org/stable/c/92c4cfaee6872038563c5b6f2e8e613f9d84d47d"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/48xxx/CVE-2022-48730.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-48730","state":"PUBLISHED","datePublished":"2024-06-20T11:13:18.750Z","dateUpdated":"2026-05-11T18:45:50.697Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-06-20T11:09:39.052Z"},"containers":{"cna":{"title":"dma-buf: heaps: Fix potential spectre v1 gadget","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndma-buf: heaps: Fix potential spectre v1 gadget\n\nIt appears like nr could be a Spectre v1 gadget as it's supplied by a\nuser and used as an array index. Prevent the contents\nof kernel memory from being leaked to userspace via speculative\nexecution by using array_index_nospec.\n\n [sumits: added fixes and cc: stable tags]"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c02a81fba74fe3488ad6b08bfb5a1329005418f8","status":"affected","lessThan":"5d40f1bdad3dd1a177f21a90ad4353c1ed40ba3a","versionType":"git"},{"version":"c02a81fba74fe3488ad6b08bfb5a1329005418f8","status":"affected","lessThan":"24f8e12d965b24f8aea762589e0e9fe2025c005e","versionType":"git"},{"version":"c02a81fba74fe3488ad6b08bfb5a1329005418f8","status":"affected","lessThan":"cc8f7940d9c2d45f67b3d1a2f2b7a829ca561bed","versionType":"git"},{"version":"c02a81fba74fe3488ad6b08bfb5a1329005418f8","status":"affected","lessThan":"92c4cfaee6872038563c5b6f2e8e613f9d84d47d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/dma-buf/dma-heap.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.6","versionType":"semver"},{"version":"5.10.99","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.22","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.8","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/dma-buf/dma-heap.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/5d40f1bdad3dd1a177f21a90ad4353c1ed40ba3a"},{"url":"https://git.kernel.org/stable/c/24f8e12d965b24f8aea762589e0e9fe2025c005e"},{"url":"https://git.kernel.org/stable/c/cc8f7940d9c2d45f67b3d1a2f2b7a829ca561bed"},{"url":"https://git.kernel.org/stable/c/92c4cfaee6872038563c5b6f2e8e613f9d84d47d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T18:45:50.697Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"5.10.99"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"5.15.22"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"5.16.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"5.17"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/5d40f1bdad3dd1a177f21a90ad4353c1ed40ba3a","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/24f8e12d965b24f8aea762589e0e9fe2025c005e","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/cc8f7940d9c2d45f67b3d1a2f2b7a829ca561bed","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/92c4cfaee6872038563c5b6f2e8e613f9d84d47d","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T15:25:00.434Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-48730","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T17:11:00.522844Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:34:49.081Z"}}]}}}