CVE-2022-49935 Details
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.
A use-after-free vulnerability has been identified in the Linux kernel's handling of dma-buf and dma-resv objects. The issue arises because, when adding a fence to a dma_resv object, the kernel previously assumed that the new fence would always be later than the existing ones. However, recent changes allow userspace to manipulate this assumption, potentially leading to a use-after-free error. This vulnerability has been addressed by implementing a check to ensure that the new fence is indeed later, and it is recommended to backport this fix to stable kernel versions.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/a3f7c10a269d5b77dd5822ade822643ced3057f0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c4c798fe98adceb642050819cb57cbc8f5c27870 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.0, < 5.19.8 6.0 rc1 6.0 rc2 6.0 rc3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 14, 2025 | Initial Analysis | [email protected] |
| Jun 18, 2025 | New CVE Received | kernel.org |