# CVE-2024-41027: Fix userfaultfd\_api to return EINVAL as expected

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 3.3
- **CVSS:** 3.3 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-28)
- **Published:** 2024-07-29T14:31:43.859Z
- **Modified:** 2026-06-17T07:47:06.970Z

## Who should check

- Anyone running Linux \>= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, \< 519547760f16eae7803d2658d9524bc5ba7a20a7; \>= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, \< 14875fd5f9bcf60ac5518c63bfb676ade44aa7c6; \>= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, \< cd94cac4069a763ab5206be2c64c9a8beae590ba; \>= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, \< 8111f902b7c95d75fc80c7e577f5045886c6b384; \>= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, \< 1723f04caacb32cadc4e063725d836a0c4450694
- Anyone running Linux 5.7

## 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

## Affected and fixed versions

- Linux: \>= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, \< 519547760f16eae7803d2658d9524bc5ba7a20a7; \>= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, \< 14875fd5f9bcf60ac5518c63bfb676ade44aa7c6; \>= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, \< cd94cac4069a763ab5206be2c64c9a8beae590ba; \>= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, \< 8111f902b7c95d75fc80c7e577f5045886c6b384; \>= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, \< 1723f04caacb32cadc4e063725d836a0c4450694 (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

- Upgrade Linux to 1723f04caacb32cadc4e063725d836a0c4450694 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-41027. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-41027.md
Affected: Linux >= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, < 519547760f16eae7803d2658d9524bc5ba7a20a7; >= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, < 14875fd5f9bcf60ac5518c63bfb676ade44aa7c6; >= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, < cd94cac4069a763ab5206be2c64c9a8beae590ba; >= e06f1e1dd4998ffc9da37f5…
Fixed in: Linux 519547760f16eae7803d2658d9524bc5ba7a20a7, Linux 14875fd5f9bcf60ac5518c63bfb676ade44aa7c6, Linux 8111f902b7c95d75fc80c7e577f5045886c6b384, Linux 1723f04caacb32cadc4e063725d836a0c4450694

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-41027 being exploited?

There is no confirmed exploitation: CVE-2024-41027 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-41027?

Low: CVSS 3.3 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-41027?

Linux \>= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, \< 519547760f16eae7803d2658d9524bc5ba7a20a7; \>= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, \< 14875fd5f9bcf60ac5518c63bfb676ade44aa7c6; \>= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, \< cd94cac4069a763ab5206be2c64c9a8beae590ba; \>= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, \< 8111f902b7c95d75fc80c7e577f5045886c6b384; \>= e06f1e1dd4998ffc9da37f580703b55a93fc4de4, \< 1723f04caacb32cadc4e063725d836a0c4450694; Linux 5.7.

### Is there a fix for CVE-2024-41027?

Yes. Fixed in Linux 519547760f16eae7803d2658d9524bc5ba7a20a7, Linux 14875fd5f9bcf60ac5518c63bfb676ade44aa7c6, Linux 8111f902b7c95d75fc80c7e577f5045886c6b384, Linux 1723f04caacb32cadc4e063725d836a0c4450694. Upgrade Linux to 1723f04caacb32cadc4e063725d836a0c4450694 or later.

### How do I check if I'm affected by CVE-2024-41027?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/519547760f16eae7803d2658d9524bc5ba7a20a7>
- patch: <https://git.kernel.org/stable/c/14875fd5f9bcf60ac5518c63bfb676ade44aa7c6>
- patch: <https://git.kernel.org/stable/c/cd94cac4069a763ab5206be2c64c9a8beae590ba>
- patch: <https://git.kernel.org/stable/c/8111f902b7c95d75fc80c7e577f5045886c6b384>
- patch: <https://git.kernel.org/stable/c/1723f04caacb32cadc4e063725d836a0c4450694>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-41027>

HTML: <https://flawdb.com/CVE-2024-41027> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-41027>
