CVE-2024-41027

Fix userfaultfd_api to return EINVAL as expected

No CVSS score yet EPSS 0.28%

Published 29 Jul 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-41027

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-41027 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

Fix userfaultfd_api 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 UFFD_FEATURE_WP_UNPOPULATED on a kernel with the config not set with this feature.

[ 200.812896] WARNING: CPU: 91 PID: 13634 at mm/memory.c:1660 zap_pte_range+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:zap_pte_range+0x43d/0x660

Exploitation

EPSS 0.28%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 22.2% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from e06f1e1dd4998ffc9da37f580703b55a93fc4de4, before 519547760f16eae7803d2658d9524bc5ba7a20a7
affected from e06f1e1dd4998ffc9da37f580703b55a93fc4de4, before 14875fd5f9bcf60ac5518c63bfb676ade44aa7c6
affected from e06f1e1dd4998ffc9da37f580703b55a93fc4de4, before cd94cac4069a763ab5206be2c64c9a8beae590ba
affected from e06f1e1dd4998ffc9da37f580703b55a93fc4de4, before 8111f902b7c95d75fc80c7e577f5045886c6b384
affected from e06f1e1dd4998ffc9da37f580703b55a93fc4de4, before 1723f04caacb32cadc4e063725d836a0c4450694
Other versions: unaffected
Linux
affected 5.7
unaffected before 5.7
unaffected from 5.15.163 up to and including 5.15.*
unaffected from 6.1.100 up to and including 6.1.*
unaffected from 6.6.41 up to and including 6.6.*
unaffected from 6.9.10 up to and including 6.9.*
unaffected 6.10 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-41027 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-41027

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-41027
trivy image --scanners vuln IMAGE | grep CVE-2024-41027

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-41027 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.