Bug 2373404 (CVE-2022-49935) - CVE-2022-49935 kernel: dma-buf/dma-resv: check if the new fence is really later
Summary: CVE-2022-49935 kernel: dma-buf/dma-resv: check if the new fence is really later
Keywords:
Status: NEW
Alias: CVE-2022-49935
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 11:01 UTC by OSIDB Bzimport
Modified: 2025-06-20 12:45 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 11:01:33 UTC
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.

Comment 1 Avinash Hanwate 2025-06-20 12:35:22 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061847-CVE-2022-49935-bf21@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.