dma-buf: heaps: Fix potential spectre v1 gadget
Published Jun 20, 2024
5.5
MEDIUMCVSS 3.1
EPSS 0.26%
Description
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]
Affected products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 5.6StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<5.6
- Version 5.10.99StatusunaffectedConstraints<=5.10.*
- Version 5.15.22StatusunaffectedConstraints<=5.15.*
- Version 5.16.8StatusunaffectedConstraints<=5.16.*
- Version 5.17StatusunaffectedConstraints<=*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
- ≥ 5.6 · < 5.10.99
- ≥ 5.11 · < 5.15.22
- ≥ 5.16 · < 5.16.8
- 5.17
- 5.17
No data.
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Not affected
Red Hat Enterprise Linux 7
kernel-rt
Not affected
Red Hat Enterprise Linux 8
kernel
Affected
Red Hat Enterprise Linux 8
kernel-rt
Affected
Red Hat Enterprise Linux 9
kernel
Not affected
Red Hat Enterprise Linux 9
kernel-rt
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Affected | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Affected | n/a |
| Red Hat Enterprise Linux 9 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (10)
- https://access.redhat.com/security/cve/CVE-2022-48730 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2293330 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-53609 Advisory
- https://git.kernel.org/stable/c/24f8e12d965b24f8aea762589e0e9fe2025c005e Patch
- https://git.kernel.org/stable/c/5d40f1bdad3dd1a177f21a90ad4353c1ed40ba3a Patch
- https://git.kernel.org/stable/c/92c4cfaee6872038563c5b6f2e8e613f9d84d47d Patch
- https://git.kernel.org/stable/c/cc8f7940d9c2d45f67b3d1a2f2b7a829ca561bed Patch
- https://lore.kernel.org/linux-cve-announce/2024062059-CVE-2022-48730-f1fd@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2022-48730
- https://www.cve.org/CVERecord?id=CVE-2022-48730
Change history (0)
No recorded changes yet.