# CVE-2024-50222: iov\_iter: fix copy\_page\_from\_iter\_atomic() if KMAP\_LOCAL\_FORCE\_MAP

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

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **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.31% (percentile 16, 2026-11-26)
- **Published:** 2024-11-09T10:14:33.266Z
- **Modified:** 2026-08-05T11:42:36.871Z

## Who should check

- Anyone running Linux \>= 908a1ad89466c1febf20bfe0037b84fc66f8a3f8, \< 4f7ffa83fa79dd52efbaef366c850aaaae06a469; \>= 908a1ad89466c1febf20bfe0037b84fc66f8a3f8, \< 3a303409f271dfe0987b8f79595138340497a32d; \>= 908a1ad89466c1febf20bfe0037b84fc66f8a3f8, \< c749d9b7ebbc5716af7a95f7768634b30d9446ec
- Anyone running Linux 6.6

## Description

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

iov\_iter: fix copy\_page\_from\_iter\_atomic() if KMAP\_LOCAL\_FORCE\_MAP

generic/077 on x86\_32 CONFIG\_DEBUG\_KMAP\_LOCAL\_FORCE\_MAP=y with highmem,
on huge=always tmpfs, issues a warning and then hangs (interruptibly):

WARNING: CPU: 5 PID: 3517 at mm/highmem.c:622 kunmap\_local\_indexed+0x62/0xc9
CPU: 5 UID: 0 PID: 3517 Comm: cp Not tainted 6.12.0-rc4 \#2
...
copy\_page\_from\_iter\_atomic+0xa6/0x5ec
generic\_perform\_write+0xf6/0x1b4
shmem\_file\_write\_iter+0x54/0x67

Fix copy\_page\_from\_iter\_atomic() by limiting it in that case
(include/linux/skbuff.h skb\_frag\_must\_loop() does similar).

But going forward, perhaps CONFIG\_DEBUG\_KMAP\_LOCAL\_FORCE\_MAP is too
surprising, has outlived its usefulness, and should just be removed?

## Affected and fixed versions

- Linux: \>= 908a1ad89466c1febf20bfe0037b84fc66f8a3f8, \< 4f7ffa83fa79dd52efbaef366c850aaaae06a469; \>= 908a1ad89466c1febf20bfe0037b84fc66f8a3f8, \< 3a303409f271dfe0987b8f79595138340497a32d; \>= 908a1ad89466c1febf20bfe0037b84fc66f8a3f8, \< c749d9b7ebbc5716af7a95f7768634b30d9446ec (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-50222.md
Affected: Linux >= 908a1ad89466c1febf20bfe0037b84fc66f8a3f8, < 4f7ffa83fa79dd52efbaef366c850aaaae06a469; >= 908a1ad89466c1febf20bfe0037b84fc66f8a3f8, < 3a303409f271dfe0987b8f79595138340497a32d; >= 908a1ad89466c1febf20bfe0037b84fc66f8a3f8, < c749d9b7ebbc5716af7a95f7768634b30d9446ec; Linux 6.6
Fixed in: Linux 4f7ffa83fa79dd52efbaef366c850aaaae06a469, Linux 3a303409f271dfe0987b8f79595138340497a32d

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-50222 being exploited?

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

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

High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= 908a1ad89466c1febf20bfe0037b84fc66f8a3f8, \< 4f7ffa83fa79dd52efbaef366c850aaaae06a469; \>= 908a1ad89466c1febf20bfe0037b84fc66f8a3f8, \< 3a303409f271dfe0987b8f79595138340497a32d; \>= 908a1ad89466c1febf20bfe0037b84fc66f8a3f8, \< c749d9b7ebbc5716af7a95f7768634b30d9446ec; Linux 6.6.

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

Yes. Fixed in Linux 4f7ffa83fa79dd52efbaef366c850aaaae06a469, Linux 3a303409f271dfe0987b8f79595138340497a32d. No fix listed yet: follow the vendor advisory.

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

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/4f7ffa83fa79dd52efbaef366c850aaaae06a469>
- patch: <https://git.kernel.org/stable/c/3a303409f271dfe0987b8f79595138340497a32d>
- patch: <https://git.kernel.org/stable/c/c749d9b7ebbc5716af7a95f7768634b30d9446ec>

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

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