# CVE-2022-49935: dma-buf/dma-resv: check if the new fence is really later

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-06-18T10:54:36.963Z
- Modified: 2026-08-05T08:56:47.132Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

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

dma-buf/dma-resv: check if the new fence is really later

Previously when we added a fence to a dma_resv object we always
assumed the the newer than all the existing fences.

With Jason's work to add an UAPI to explicit export/import that's not
necessary the case any more. So without this check we would allow
userspace to force the kernel into an use after free error.

Since the change is very small and defensive it's probably a good
idea to backport this to stable kernels as well just in case others
are using the dma_resv object in the same way.

(As written by CVE List.)

## Affected

- Linux Linux: from 27836b641c1bf693c96c627388497b4e0f57441b before c4c798fe98adceb642050819cb57cbc8f5c27870; from 27836b641c1bf693c96c627388497b4e0f57441b before a3f7c10a269d5b77dd5822ade822643ced3057f0; 5.0 (not affected: before 5.0; from 5.19.8 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.0 before 5.19.8; 6.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/c4c798fe98adceb642050819cb57cbc8f5c27870> (patch)
- <https://git.kernel.org/stable/c/a3f7c10a269d5b77dd5822ade822643ced3057f0> (patch)

## Sources

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

---

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