CVE-2024-50222: iov_iter: fix copy_page_from_iter_atomic() if KMAP_LOCAL_FORCE_MAP

Published Nov 9, 2024
·
Updated

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

ioviter: fix copypagefromiteratomic() if KMAPLOCALFORCEMAP

generic/077 on x8632 CONFIGDEBUGKMAPLOCALFORCEMAP=y with highmem, on huge=always tmpfs, issues a warning and then hangs (interruptibly):

WARNING: CPU: 5 PID: 3517 at mm/highmem.c:622 kunmaplocalindexed+0x62/0xc9 CPU: 5 UID: 0 PID: 3517 Comm: cp Not tainted 6.12.0-rc4 #2 ... copypagefromiteratomic+0xa6/0x5ec genericperformwrite+0xf6/0x1b4 shmemfilewriteiter+0x54/0x67

Fix copypagefromiteratomic() by limiting it in that case (include/linux/skbuff.h skbfragmustloop() does similar).

But going forward, perhaps CONFIGDEBUGKMAPLOCALFORCEMAP is too surprising, has outlived its usefulness, and should just be removed?

Other sources

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

8 affected componentsFixes available
Linux Linux kernel>=6.6<6.6.60
Linux Linux kernel>=6.7<6.11.7
Linux Linux kernel=6.12-rc1
Linux Linux kernel=6.12-rc2
Linux Linux kernel=6.12-rc3
Linux Linux kernel=6.12-rc4
Linux Linux kernel=6.12-rc5
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.22-1Fixed in 6.12.25-1
  2. Configuration

    Fix the issue by limiting copy_page_from_iter_atomic() in the case where CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP=y on x86_32 with highmem and generic/077, to prevent WARNING at mm/highmem.c:622 (kunmap_local_indexed) and hanging on huge=always tmpfs.

    Linux kernel iov_iter / highmem (x86_32) KMAP_LOCAL_FORCE_MAP (CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP) = if CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP=y with highmem (generic/077)

Event History

Nov 9, 2024
CVE Published
via MITRE·10:14 AM
Data Sourced
via MITRE·10:14 AM
DescriptionSeverity
Data Sourced
via NVD·11:15 AM
RemedyDescriptionSeverityAffected Software
Feb 24, 2025
Data Sourced
via Launchpad·12:50 AM
Description
Apr 29, 2025
Data Sourced
via Ubuntu·01:06 AM
RemedyDescriptionSeverityAffected Software
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-2024-50222?

CVE-2024-50222 is considered a high severity vulnerability due to its potential to cause system hangs and warnings in affected Linux kernels.

2

How do I fix CVE-2024-50222?

To fix CVE-2024-50222, ensure your system is updated to Linux kernel versions 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.128-1, 6.12.12-1, or 6.12.16-1 or later.

3

Which systems are affected by CVE-2024-50222?

CVE-2024-50222 affects Linux kernel versions between 6.7 and 6.6.60, along with specific configurations like CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP.

4

Is there a workaround for CVE-2024-50222?

Currently, the most effective mitigation for CVE-2024-50222 is to update to the latest fixed kernel version.

5

What can happen if CVE-2024-50222 is exploited?

Exploitation of CVE-2024-50222 can lead to system instability, causing hangs and interruptions during operations on affected systems.

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