{"id":"CVE-2022-49935","summary":"dma-buf/dma-resv: check if the new fence is really later","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndma-buf/dma-resv: check if the new fence is really later\n\nPreviously when we added a fence to a dma_resv object we always\nassumed the the newer than all the existing fences.\n\nWith Jason's work to add an UAPI to explicit export/import that's not\nnecessary the case any more. So without this check we would allow\nuserspace to force the kernel into an use after free error.\n\nSince the change is very small and defensive it's probably a good\nidea to backport this to stable kernels as well just in case others\nare using the dma_resv object in the same way.","modified":"2026-04-03T13:14:25.484758416Z","published":"2025-06-18T10:54:36.963Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02321-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49935.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/a3f7c10a269d5b77dd5822ade822643ced3057f0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c4c798fe98adceb642050819cb57cbc8f5c27870"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49935.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49935"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"27836b641c1bf693c96c627388497b4e0f57441b"},{"fixed":"c4c798fe98adceb642050819cb57cbc8f5c27870"},{"fixed":"a3f7c10a269d5b77dd5822ade822643ced3057f0"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49935.json"}}],"schema_version":"1.7.5"}