{"id":"CVE-2022-48872","aliases":["CVE-2022-48872"],"related":[],"kind":"vulnerability","state":"published","title":"misc: fastrpc: Fix use-after-free race condition for maps","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","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","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: misc: fastrpc: corrige la condición de ejecución de use-after-free para mapas. Es posible que entre llamadas a fastrpc_map_get() hasta que se tome map-&gt;fl-&gt;lock en fastrpc_free_map() , otro hilo puede llamar a fastrpc_map_lookup() y obtener una referencia a un mapa que está a punto de ser eliminado. Vuelva a escribir fastrpc_map_get() para aumentar solo el recuento de referencias de un mapa si no es cero. Propague esto a las personas que llaman para que puedan saber si un mapa está a punto de ser eliminado. Corrige esta advertencia: refcount_t: adición en 0; use-after-free. ADVERTENCIA: CPU: 5 PID: 10100 en lib/refcount.c:25 refcount_warn_saturate... Rastreo de llamadas: refcount_warn_saturate [fastrpc_map_get inlined] [fastrpc_map_lookup inlined] fastrpc_map_create fastrpc_internal_invoke fastrpc_device_ioctl __arm64_sys_ioctl invoke_sy llamar","source":"nvd"}],"published":"2024-08-21T06:10:02.954Z","modified":"2026-08-05T08:52:43.003Z","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:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"c68cfb718c8f97b7f7a50ed66be5feb42d0c8988","fixed":"556dfdb226ce1e5231d8836159b23f8bb0395bf4","status":"affected"},{"type":"git","introduced":"c68cfb718c8f97b7f7a50ed66be5feb42d0c8988","fixed":"b171d0d2cf1b8387c72c8d325c5d5746fa271e39","status":"affected"},{"type":"git","introduced":"c68cfb718c8f97b7f7a50ed66be5feb42d0c8988","fixed":"61a0890cb95afec5c8a2f4a879de2b6220984ef1","status":"affected"},{"type":"git","introduced":"c68cfb718c8f97b7f7a50ed66be5feb42d0c8988","fixed":"079c78c68714f7d8d58e66c477b0243b31806907","status":"affected"},{"type":"git","introduced":"c68cfb718c8f97b7f7a50ed66be5feb42d0c8988","fixed":"96b328d119eca7563c1edcc4e1039a62e6370ecb","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.230","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.165","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.90","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.8","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","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.230"},{"status":"affected","introduced":"5.5","fixed":"5.10.165"},{"status":"affected","introduced":"5.11","fixed":"5.15.90"},{"status":"affected","introduced":"5.16","fixed":"6.2"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"},{"status":"affected","version":"6.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/556dfdb226ce1e5231d8836159b23f8bb0395bf4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b171d0d2cf1b8387c72c8d325c5d5746fa271e39","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/61a0890cb95afec5c8a2f4a879de2b6220984ef1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/079c78c68714f7d8d58e66c477b0243b31806907","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/96b328d119eca7563c1edcc4e1039a62e6370ecb","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:05:25.671Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-48872","url":"https://www.cve.org/CVERecord?id=CVE-2022-48872","licence":"CVE Terms of Use","modified":"2026-08-05T08:52:43.003Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-48872","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48872","licence":"Public domain","modified":"2026-08-04T10:17:24.790Z"}],"updatedAt":"2026-11-25T22:58:19.937Z","epss":{"score":0.00244,"percentile":0.16746,"date":"2026-12-01T12:00:22.000Z"}}