Bug 2324863 (CVE-2024-50222) - CVE-2024-50222 kernel: iov_iter: fix copy_page_from_iter_atomic() if KMAP_LOCAL_FORCE_MAP
Summary: CVE-2024-50222 kernel: iov_iter: fix copy_page_from_iter_atomic() if KMAP_LOC...
Keywords:
Status: NEW
Alias: CVE-2024-50222
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2325084
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-09 11:01 UTC by OSIDB Bzimport
Modified: 2024-12-19 11:55 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-11-09 11:01:55 UTC
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?

Comment 1 Avinash Hanwate 2024-11-11 04:41:28 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024110926-CVE-2024-50222-4e8c@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.