CVE-2022-49935 dma-buf/dma-resv: check if the new fence is really later
A use-after-free vulnerability in the Linux kernel's dma-resv subsystem allows local attackers to trigger memory corruption, potentially leading to code execution or privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-49935?
CVE-2022-49935 is a high-severity use after free vulnerability in Linux kernel, published on 18 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-416
Which versions are affected by CVE-2022-49935?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49935?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2022-49935 being exploited?
There is no known exploitation of CVE-2022-49935 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-70208, DEBIAN-CVE-2022-49935, GHSA-rj36-vf3r-744c, ROOT-OS-DEBIAN-11-CVE-2022-49935, ROOT-OS-UBUNTU-2204-CVE-2022-49935, UBUNTU-CVE-2022-49935.