CVE-2021-47461: userfaultfd: fix a race between writeprotect and exit_mmap()

Published May 22, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

userfaultfd: fix a race between writeprotect and exitmmap()

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.

Other sources

In the Linux kernel, the following vulnerability has been resolved:

userfaultfd: fix a race between writeprotect and exitmmap()

The Linux kernel CVE team has assigned CVE-2021-47461 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024052225-CVE-2021-47461-a472@gregkh/T

Red Hat

Linux Kernel could allow a local authenticated attacker to gain elevated privileges on the system, caused by a race condition between writeprotect and exitmmap(). By sending a specially crafted request, an authenticated attacker could exploit this vulnerability to gain elevated privileges.

IBM

Affected Software

15 affected componentsFixes available
IBM Security Verify Governance<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Software Stack<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Virtual Appliance<=ISVG 10.0.2
IBM Security Verify Governance Identity Manager Container<=ISVG 10.0.2
redhat/kernel<5.10.76
5.10.76
redhat/kernel<5.14.15
5.14.15
redhat/kernel<5.15
5.15
Linux Linux kernel>=5.7<5.10.76
Linux Linux kernel>=5.11<5.14.15
Linux Linux kernel=5.15-rc1
Linux Linux kernel=5.15-rc2
Linux Linux kernel=5.15-rc3
Linux Linux kernel=5.15-rc4
Linux Linux kernel=5.15-rc5
Linux Linux kernel=5.15-rc6

Event History

May 22, 2024
CVE Published
via MITRE·06:23 AM
Data Sourced
via MITRE·06:23 AM
Description
Data Sourced
via NVD·07:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
May 23, 2024
Data Sourced
via Red Hat·09:33 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-47461?

CVE-2021-47461 is classified with a medium severity due to its potential impact on system stability.

2

How do I fix CVE-2021-47461?

To fix CVE-2021-47461, update the kernel to version 5.10.76, 5.14.15, or 5.15.

3

What systems are affected by CVE-2021-47461?

CVE-2021-47461 affects various Linux kernel versions and IBM Security Verify Governance versions up to 10.0.2.

4

What specific issue does CVE-2021-47461 address?

CVE-2021-47461 addresses a race condition between userfaultfd_writeprotect() and exit_mmap() in the Linux kernel.

5

Is CVE-2021-47461 specific to certain distributions?

Yes, CVE-2021-47461 is primarily reported in Red Hat kernels and certain IBM security products.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2021-47461 - userfaultfd: fix a race between writeprotect and exit_mmap() - SecAlerts