In the Linux kernel, the following vulnerability has been resolved:
userfaultfd: fix a race between writeprotect and exit_mmap()
A race is possible when a process exits, its VMAs are removed by exitmmap() and at the same time userfaultfdwriteprotect() is called.
The race was detected by KASAN on a development kernel, but it appears to be possible on vanilla kernels as well.
Use mmgetnotzero() to prevent the race as done in other userfaultfd operations.
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-47461.json"
[
{
"events": [
{
"introduced": "5.7"
},
{
"fixed": "5.10.76"
}
]
},
{
"events": [
{
"introduced": "5.11"
},
{
"fixed": "5.14.15"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.15-rc1"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.15-rc2"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.15-rc3"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.15-rc4"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.15-rc5"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.15-rc6"
}
]
}
]