{"id":"CVE-2022-48821","aliases":["CVE-2022-48821"],"related":[],"kind":"vulnerability","state":"published","title":"misc: fastrpc: avoid double fput() on failed usercopy","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: fastrpc: avoid double fput() on failed usercopy\n\nIf the copy back to userland fails for the FASTRPC_IOCTL_ALLOC_DMA_BUFF\nioctl(), we shouldn't assume that 'buf->dmabuf' is still valid. In fact,\ndma_buf_fd() called fd_install() before, i.e. \"consumed\" one reference,\nleaving us with none.\n\nCalling dma_buf_put() will therefore put a reference we no longer own,\nleading to a valid file descritor table entry for an already released\n'file' object which is a straight use-after-free.\n\nSimply avoid calling dma_buf_put() and rely on the process exit code to\ndo the necessary cleanup, if needed, i.e. if the file descriptor is\nstill valid.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: fastrpc: avoid double fput() on failed usercopy\n\nIf the copy back to userland fails for the FASTRPC_IOCTL_ALLOC_DMA_BUFF\nioctl(), we shouldn't assume that 'buf->dmabuf' is still valid. In fact,\ndma_buf_fd() called fd_install() before, i.e. \"consumed\" one reference,\nleaving us with none.\n\nCalling dma_buf_put() will therefore put a reference we no longer own,\nleading to a valid file descritor table entry for an already released\n'file' object which is a straight use-after-free.\n\nSimply avoid calling dma_buf_put() and rely on the process exit code to\ndo the necessary cleanup, if needed, i.e. if the file descriptor is\nstill valid.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: misc: fastrpc: evitar doble fput() en copia de usuario fallida. Si la copia al área de usuario falla para FASTRPC_IOCTL_ALLOC_DMA_BUFF ioctl(), no debemos asumir que 'buf-&gt;dmabuf' aun es válido. De hecho, dma_buf_fd() llamó a fd_install() antes, es decir, \"consumió\" una referencia, dejándonos sin ninguna. Por lo tanto, llamar a dma_buf_put() colocará una referencia que ya no poseemos, lo que conducirá a una entrada válida en la tabla de descripción de archivos para un objeto 'archivo' ya publicado que es un use-after-free directo. Simplemente evite llamar a dma_buf_put() y confíe en el código de salida del proceso para realizar la limpieza necesaria, si es necesario, es decir, si el descriptor del archivo aún es válido.","source":"nvd"}],"published":"2024-07-16T11:44:07.965Z","modified":"2026-08-05T08:52:29.928Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"6cffd79504ce040f460831030d3069fa1c99bb71","fixed":"4e6fd2b5fcf8e7119305a6042bd92e7f2b9ed215","status":"affected"},{"type":"git","introduced":"6cffd79504ce040f460831030d3069fa1c99bb71","fixed":"a5ce7ee5fcc07583159f54ab4af5164de00148f5","status":"affected"},{"type":"git","introduced":"6cffd79504ce040f460831030d3069fa1c99bb71","fixed":"e4382d0a39f9a1e260d62fdc079ddae5293c037d","status":"affected"},{"type":"git","introduced":"6cffd79504ce040f460831030d3069fa1c99bb71","fixed":"76f85c307ef9f10aa2cef1b1d5ee654c1f3345fc","status":"affected"},{"type":"git","introduced":"6cffd79504ce040f460831030d3069fa1c99bb71","fixed":"46963e2e0629cb31c96b1d47ddd89dc3d8990b34","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.1","status":"unaffected"},{"type":"semver","introduced":"5.4.180","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.101","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.24","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.10","lastAffected":"5.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.1","fixed":"5.4.180"},{"status":"affected","introduced":"5.5","fixed":"5.10.101"},{"status":"affected","introduced":"5.11","fixed":"5.15.24"},{"status":"affected","introduced":"5.16","fixed":"5.16.10"},{"status":"affected","version":"5.17"},{"status":"affected","version":"5.17"},{"status":"affected","version":"5.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/4e6fd2b5fcf8e7119305a6042bd92e7f2b9ed215","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a5ce7ee5fcc07583159f54ab4af5164de00148f5","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e4382d0a39f9a1e260d62fdc079ddae5293c037d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/76f85c307ef9f10aa2cef1b1d5ee654c1f3345fc","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/46963e2e0629cb31c96b1d47ddd89dc3d8990b34","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:57:59.542Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-48821","url":"https://www.cve.org/CVERecord?id=CVE-2022-48821","licence":"CVE Terms of Use","modified":"2026-08-05T08:52:29.928Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-48821","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48821","licence":"Public domain","modified":"2026-08-04T10:17:22.740Z"}],"updatedAt":"2026-11-25T22:58:19.901Z","epss":{"score":0.00317,"percentile":0.17029,"date":"2026-11-30T12:00:22.000Z"}}