{"id":"CVE-2022-48872","published":"2024-08-21T06:10:02Z","modified":"2026-08-05T08:52:43Z","title":"misc: fastrpc: Fix use-after-free race condition for maps","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: fastrpc: Fix use-after-free race condition for maps\n\nIt is possible that in between calling fastrpc_map_get() until\nmap->fl->lock is taken in fastrpc_free_map(), another thread can call\nfastrpc_map_lookup() and get a reference to a map that is about to be\ndeleted.\n\nRewrite fastrpc_map_get() to only increase the reference count of a map\nif it's non-zero. Propagate this to callers so they can know if a map is\nabout to be deleted.\n\nFixes this warning:\nrefcount_t: addition on 0; use-after-free.\nWARNING: CPU: 5 PID: 10100 at lib/refcount.c:25 refcount_warn_saturate\n...\nCall trace:\n refcount_warn_saturate\n [fastrpc_map_get inlined]\n [fastrpc_map_lookup inlined]\n fastrpc_map_create\n fastrpc_internal_invoke\n fastrpc_device_ioctl\n __arm64_sys_ioctl\n invoke_syscall","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.00244,"percentile":0.15943,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/556dfdb226ce1e5231d8836159b23f8bb0395bf4","tags":[]},{"url":"https://git.kernel.org/stable/c/b171d0d2cf1b8387c72c8d325c5d5746fa271e39","tags":[]},{"url":"https://git.kernel.org/stable/c/61a0890cb95afec5c8a2f4a879de2b6220984ef1","tags":[]},{"url":"https://git.kernel.org/stable/c/079c78c68714f7d8d58e66c477b0243b31806907","tags":[]},{"url":"https://git.kernel.org/stable/c/96b328d119eca7563c1edcc4e1039a62e6370ecb","tags":[]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":3.19},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= c68cfb718c8f97b7f7a50ed66be5feb42d0c8988, < 556dfdb226ce1e5231d8836159b23f8bb0395bf4",">= c68cfb718c8f97b7f7a50ed66be5feb42d0c8988, < b171d0d2cf1b8387c72c8d325c5d5746fa271e39",">= c68cfb718c8f97b7f7a50ed66be5feb42d0c8988, < 61a0890cb95afec5c8a2f4a879de2b6220984ef1",">= c68cfb718c8f97b7f7a50ed66be5feb42d0c8988, < 079c78c68714f7d8d58e66c477b0243b31806907",">= c68cfb718c8f97b7f7a50ed66be5feb42d0c8988, < 96b328d119eca7563c1edcc4e1039a62e6370ecb"]},{"vendor":"Linux","product":"Linux","versions":["5.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:05:25.671974Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-53751","exploited":false,"provenance":"source"}}