{"id":"CVE-2022-49393","published":"2025-02-26T02:11:24Z","modified":"2026-08-05T08:55:00Z","title":"misc: fastrpc: fix list iterator in fastrpc_req_mem_unmap_impl","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: fastrpc: fix list iterator in fastrpc_req_mem_unmap_impl\n\nThis is another instance of incorrect use of list iterator and\nchecking it for NULL.\n\nThe list iterator value 'map' will *always* be set and non-NULL\nby list_for_each_entry(), so it is incorrect to assume that the\niterator value will be NULL if the list is empty (in this case, the\ncheck 'if (!map) {' will always be false and never exit as expected).\n\nTo fix the bug, use a new variable 'iter' as the list iterator,\nwhile use the original variable 'map' as a dedicated pointer to\npoint to the found element.\n\nWithout this patch, Kernel crashes with below trace:\n\nUnable to handle kernel access to user memory outside uaccess routines\n at virtual address 0000ffff7fb03750\n...\nCall trace:\n fastrpc_map_create+0x70/0x290 [fastrpc]\n fastrpc_req_mem_map+0xf0/0x2dc [fastrpc]\n fastrpc_device_ioctl+0x138/0xc60 [fastrpc]\n __arm64_sys_ioctl+0xa8/0xec\n invoke_syscall+0x48/0x114\n el0_svc_common.constprop.0+0xd4/0xfc\n do_el0_svc+0x28/0x90\n el0_svc+0x3c/0x130\n el0t_64_sync_handler+0xa4/0x130\n el0t_64_sync+0x18c/0x190\nCode: 14000016 f94000a5 eb05029f 54000260 (b94018a6)\n---[ end trace 0000000000000000 ]---","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00234,"percentile":0.14358,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/2d12905aad462383f4e7a5fdb024d2b7ae2d10cf","tags":[]},{"url":"https://git.kernel.org/stable/c/c5c07c5958cf0c9af6e76813e6de15d42ee49822","tags":[]}],"priority":{"score":8.3,"factors":[{"name":"EPSS percentile","points":2.87},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 5c1b97c7d7b736e6439af4f43a65837bc72f56c1, < 2d12905aad462383f4e7a5fdb024d2b7ae2d10cf",">= 5c1b97c7d7b736e6439af4f43a65837bc72f56c1, < c5c07c5958cf0c9af6e76813e6de15d42ee49822"]},{"vendor":"Linux","product":"Linux","versions":["5.18"]}],"euvd":{"id":"EUVD-2022-54836","exploited":false,"provenance":"source"}}