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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.35% (percentile 21, 2026-11-26)
- **CWE:** CWE-203
- **Published:** 2024-06-20T11:13:18.750Z
- **Modified:** 2026-06-17T05:16:02.370Z

## Who should check

- Anyone running Linux \>= c02a81fba74fe3488ad6b08bfb5a1329005418f8, \< 5d40f1bdad3dd1a177f21a90ad4353c1ed40ba3a; \>= c02a81fba74fe3488ad6b08bfb5a1329005418f8, \< 24f8e12d965b24f8aea762589e0e9fe2025c005e; \>= c02a81fba74fe3488ad6b08bfb5a1329005418f8, \< cc8f7940d9c2d45f67b3d1a2f2b7a829ca561bed; \>= c02a81fba74fe3488ad6b08bfb5a1329005418f8, \< 92c4cfaee6872038563c5b6f2e8e613f9d84d47d
- Anyone running Linux 5.6

## 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\]

## Affected and fixed versions

- Linux: \>= c02a81fba74fe3488ad6b08bfb5a1329005418f8, \< 5d40f1bdad3dd1a177f21a90ad4353c1ed40ba3a; \>= c02a81fba74fe3488ad6b08bfb5a1329005418f8, \< 24f8e12d965b24f8aea762589e0e9fe2025c005e; \>= c02a81fba74fe3488ad6b08bfb5a1329005418f8, \< cc8f7940d9c2d45f67b3d1a2f2b7a829ca561bed; \>= c02a81fba74fe3488ad6b08bfb5a1329005418f8, \< 92c4cfaee6872038563c5b6f2e8e613f9d84d47d (cvelist)
- Linux: 5.6 (cvelist)

## Mitigation

- Upgrade Linux to 92c4cfaee6872038563c5b6f2e8e613f9d84d47d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-48730. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48730.md
Affected: Linux >= c02a81fba74fe3488ad6b08bfb5a1329005418f8, < 5d40f1bdad3dd1a177f21a90ad4353c1ed40ba3a; >= c02a81fba74fe3488ad6b08bfb5a1329005418f8, < 24f8e12d965b24f8aea762589e0e9fe2025c005e; >= c02a81fba74fe3488ad6b08bfb5a1329005418f8, < cc8f7940d9c2d45f67b3d1a2f2b7a829ca561bed; >= c02a81fba74fe3488ad6b08…
Fixed in: Linux 5d40f1bdad3dd1a177f21a90ad4353c1ed40ba3a, Linux 24f8e12d965b24f8aea762589e0e9fe2025c005e, Linux 92c4cfaee6872038563c5b6f2e8e613f9d84d47d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-48730 being exploited?

There is no confirmed exploitation: CVE-2022-48730 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-48730?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-48730?

Linux \>= c02a81fba74fe3488ad6b08bfb5a1329005418f8, \< 5d40f1bdad3dd1a177f21a90ad4353c1ed40ba3a; \>= c02a81fba74fe3488ad6b08bfb5a1329005418f8, \< 24f8e12d965b24f8aea762589e0e9fe2025c005e; \>= c02a81fba74fe3488ad6b08bfb5a1329005418f8, \< cc8f7940d9c2d45f67b3d1a2f2b7a829ca561bed; \>= c02a81fba74fe3488ad6b08bfb5a1329005418f8, \< 92c4cfaee6872038563c5b6f2e8e613f9d84d47d; Linux 5.6.

### Is there a fix for CVE-2022-48730?

Yes. Fixed in Linux 5d40f1bdad3dd1a177f21a90ad4353c1ed40ba3a, Linux 24f8e12d965b24f8aea762589e0e9fe2025c005e, Linux 92c4cfaee6872038563c5b6f2e8e613f9d84d47d. Upgrade Linux to 92c4cfaee6872038563c5b6f2e8e613f9d84d47d or later.

### How do I check if I'm affected by CVE-2022-48730?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-48730>

HTML: <https://flawdb.com/CVE-2022-48730> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-48730>
