{"id":"CVE-2021-47461","published":"2024-05-22T06:23:22Z","modified":"2026-08-05T08:47:57Z","title":"userfaultfd: fix a race between writeprotect and exit_mmap()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nuserfaultfd: fix a race between writeprotect and exit_mmap()\n\nA race is possible when a process exits, its VMAs are removed by\nexit_mmap() and at the same time userfaultfd_writeprotect() is called.\n\nThe race was detected by KASAN on a development kernel, but it appears\nto be possible on vanilla kernels as well.\n\nUse mmget_not_zero() to prevent the race as done in other userfaultfd\noperations.","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.00174,"percentile":0.07088,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/3cda4bfffd4f755645577aaa9e96a606657b4525","tags":[]},{"url":"https://git.kernel.org/stable/c/149958ecd0627a9f1e9c678c25c665400054cd6a","tags":[]},{"url":"https://git.kernel.org/stable/c/cb185d5f1ebf900f4ae3bf84cee212e6dd035aca","tags":[]}],"priority":{"score":6.9,"factors":[{"name":"EPSS percentile","points":1.42},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03, < 3cda4bfffd4f755645577aaa9e96a606657b4525",">= 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03, < 149958ecd0627a9f1e9c678c25c665400054cd6a",">= 63b2d4174c4ad1f40b48d7138e71bcb564c1fe03, < cb185d5f1ebf900f4ae3bf84cee212e6dd035aca"]},{"vendor":"Linux","product":"Linux","versions":["5.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-22T18:15:05.306200Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-34466","exploited":false,"provenance":"source"}}