# CVE-2022-48730: dma-buf: heaps: Fix potential spectre v1 gadget

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-06-20T11:13:18.750Z
- Modified: 2026-06-17T05:16:02.370Z
- Weaknesses: CWE-203
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

dma-buf: heaps: Fix potential spectre v1 gadget

It appears like nr could be a Spectre v1 gadget as it's supplied by a
user and used as an array index. Prevent the contents
of kernel memory from being leaked to userspace via speculative
execution by using array_index_nospec.

 [sumits: added fixes and cc: stable tags]

(As written by CVE List.)

## Affected

- Linux Linux: from c02a81fba74fe3488ad6b08bfb5a1329005418f8 before 5d40f1bdad3dd1a177f21a90ad4353c1ed40ba3a; from c02a81fba74fe3488ad6b08bfb5a1329005418f8 before 24f8e12d965b24f8aea762589e0e9fe2025c005e; from c02a81fba74fe3488ad6b08bfb5a1329005418f8 before cc8f7940d9c2d45f67b3d1a2f2b7a829ca561bed; from c02a81fba74fe3488ad6b08bfb5a1329005418f8 before 92c4cfaee6872038563c5b6f2e8e613f9d84d47d; 5.6 (not affected: before 5.6; from 5.10.99 up to 5.10.*; from 5.15.22 up to 5.15.*; from 5.16.8 up to 5.16.*; from 5.17 up to *)
- linux linux_kernel: from 5.6 before 5.10.99; from 5.11 before 5.15.22; from 5.16 before 5.16.8; 5.17

## References

- <https://git.kernel.org/stable/c/5d40f1bdad3dd1a177f21a90ad4353c1ed40ba3a> (patch)
- <https://git.kernel.org/stable/c/24f8e12d965b24f8aea762589e0e9fe2025c005e> (patch)
- <https://git.kernel.org/stable/c/cc8f7940d9c2d45f67b3d1a2f2b7a829ca561bed> (patch)
- <https://git.kernel.org/stable/c/92c4cfaee6872038563c5b6f2e8e613f9d84d47d> (patch)

## Sources

- CVE List: [CVE-2022-48730](https://www.cve.org/CVERecord?id=CVE-2022-48730), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-48730](https://nvd.nist.gov/vuln/detail/CVE-2022-48730), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-48730 · Whole record: https://cve.day/CVE-2022-48730.json · Rebuilt by cve.day 2026-11-25T22:58:19.840Z
