CVE-2024-41027: Fix userfaultfd_api to return EINVAL as expected
In the Linux kernel, the following vulnerability has been resolved:
Fix userfaultfdapi to return EINVAL as expected
Currently if we request a feature that is not set in the Kernel config we fail silently and return all the available features. However, the man page indicates we should return an EINVAL.
We need to fix this issue since we can end up with a Kernel warning should a program request the feature UFFDFEATUREWPUNPOPULATED on a kernel with the config not set with this feature.
[ 200.812896] WARNING: CPU: 91 PID: 13634 at mm/memory.c:1660 zappterange+0x43d/0x660 [ 200.820738] Modules linked in: [ 200.869387] CPU: 91 PID: 13634 Comm: userfaultfd Kdump: loaded Not tainted 6.9.0-rc5+ #8 [ 200.877477] Hardware name: Dell Inc. PowerEdge R6525/0N7YGH, BIOS 2.7.3 03/30/2022 [ 200.885052] RIP: 0010:zappterange+0x43d/0x660
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-41027?
CVE-2024-41027 has a medium severity rating due to its impact on userfaultfd API functionality in the Linux kernel.
How do I fix CVE-2024-41027?
To resolve CVE-2024-41027, update the Linux kernel to version 6.1.123-1, 6.1.128-1, or 6.12.12-1.
Which versions of the Linux kernel are affected by CVE-2024-41027?
CVE-2024-41027 affects Linux kernel versions up to and including 5.10.226-1, as well as specific configurations of the linux-6.1 package.
What does CVE-2024-41027 impact in the Linux kernel?
CVE-2024-41027 impacts the userfaultfd API, particularly the return values for unsupported features.
Is there a workaround for CVE-2024-41027 before a fix is applied?
There is no documented workaround for CVE-2024-41027; the recommended action is to update to a patched kernel version.