CVE-2022-48821
HIGHLinux Kernel 5.1-5.3 - Use-After-Free in FASTRPC DMA Buffer Allocation
Title source: llmDescription
In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: avoid double fput() on failed usercopy If the copy back to userland fails for the FASTRPC_IOCTL_ALLOC_DMA_BUFF ioctl(), we shouldn't assume that 'buf->dmabuf' is still valid. In fact, dma_buf_fd() called fd_install() before, i.e. "consumed" one reference, leaving us with none. Calling dma_buf_put() will therefore put a reference we no longer own, leading to a valid file descritor table entry for an already released 'file' object which is a straight use-after-free. Simply avoid calling dma_buf_put() and rely on the process exit code to do the necessary cleanup, if needed, i.e. if the file descriptor is still valid.
References (5)
Core 5
Core References
Scores
CVSS v3
7.8
EPSS
0.0027
EPSS Percentile
18.7%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-416
Status
published
Products (18)
linux/Kernel
5.1.0 - 5.4.180linux
linux/Kernel
5.11.0 - 5.15.24linux
linux/Kernel
5.16.0 - 5.16.10linux
linux/Kernel
5.5.0 - 5.10.101linux
Linux/Linux
< 5.1
Linux/Linux
5.1
Linux/Linux
5.10.101 - 5.10.*
Linux/Linux
5.15.24 - 5.15.*
Linux/Linux
5.16.10 - 5.16.*
Linux/Linux
5.17
... and 8 more
Published
Jul 16, 2024
Tracked Since
Feb 18, 2026