CVE-2024-36882: mm: use memalloc_nofs_save() in page_cache_ra_order()

Published May 30, 2024
·
Updated

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

mm: use memallocnofssave() in pagecacheraorder()

See commit f2c817bed58d ("mm: use memallocnofssave in readahead path"), ensure that pagecacheraorder() do not attempt to reclaim file-backed pages too, or it leads to a deadlock, found issue when test ext4 large folio.

INFO: task DataXceiver for:7494 blocked for more than 120 seconds. "echo 0 > /proc/sys/kernel/hungtasktimeoutsecs" disables this message. task:DataXceiver for state:D stack:0 pid:7494 ppid:1 flags:0x00000200 Call trace: switchto+0x14c/0x240 schedule+0x82c/0xdd0 schedule+0x58/0xf0 ioschedule+0x24/0xa0 foliolock+0x130/0x300 migratepagesbatch+0x378/0x918 migratepages+0x350/0x700 compactzone+0x63c/0xb38 compactzoneorder+0xc0/0x118 trytocompactpages+0xb0/0x280 allocpagesdirectcompact+0x98/0x248 allocpages+0x510/0x1110 allocpages+0x9c/0x130 folioalloc+0x20/0x78 filemapallocfolio+0x8c/0x1b0 pagecacheraorder+0x174/0x308 ondemandreadahead+0x1c8/0x2b8 pagecacheasyncra+0x68/0xb8 filemapreadahead.isra.0+0x64/0xa8 filemapgetpages+0x3fc/0x5b0 filemapspliceread+0xf4/0x280 ext4filespliceread+0x2c/0x48 [ext4] vfsspliceread.part.0+0xa8/0x118 splicedirecttoactor+0xbc/0x288 dosplicedirect+0x9c/0x108 dosendfile+0x328/0x468 arm64syssendfile64+0x8c/0x148 invokesyscall+0x4c/0x118 el0svccommon.constprop.0+0xc8/0xf0 doel0svc+0x24/0x38 el0svc+0x4c/0x1f8 el0t64synchandler+0xc0/0xc8 el0t64sync+0x188/0x190

Other sources

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

mm: use memallocnofssave() in pagecacheraorder()

The Linux kernel CVE team has assigned CVE-2024-36882 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024053032-CVE-2024-36882-79ff@gregkh/T

Red Hat

Affected Software

15 affected componentsFixes available
redhat/kernel<6.1.91
6.1.91
redhat/kernel<6.6.31
6.6.31
redhat/kernel<6.8.10
6.8.10
redhat/kernel<6.9
6.9
Linux Linux kernel>=5.18<6.1.91
Linux Linux kernel>=6.2<6.6.31
Linux Linux kernel>=6.7<6.8.10
Linux Linux kernel=6.9-rc1
Linux Linux kernel=6.9-rc2
Linux Linux kernel=6.9-rc3
Linux Linux kernel=6.9-rc4
Linux Linux kernel=6.9-rc5
Linux Linux kernel=6.9-rc6
Linux Linux kernel=6.9-rc7
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

Event History

May 30, 2024
CVE Published
via MITRE·03:28 PM
Data Sourced
via MITRE·03:28 PM
Description
Jun 2, 2024
Data Sourced
via Red Hat·03:20 PM
DescriptionSeverityAffected Software
Aug 8, 2024
Data Sourced
via Launchpad·11:24 PM
Description
Jan 16, 2025
Data Sourced
via Ubuntu·12:04 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-36882?

CVE-2024-36882 is classified as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2024-36882?

To fix CVE-2024-36882, update your Linux kernel to version 6.1.91, 6.6.31, 6.8.10, or 6.9, or apply the specified Debian patches.

3

What software is affected by CVE-2024-36882?

CVE-2024-36882 affects multiple versions of the Linux kernel including versions prior to 6.1.91, 6.6.31, 6.8.10, and 6.9.

4

Is CVE-2024-36882 a network vulnerability?

CVE-2024-36882 is not specifically a network vulnerability; it involves memory allocation handling in the Linux kernel.

5

Can CVE-2024-36882 be exploited locally?

Yes, CVE-2024-36882 can potentially be exploited locally to affect system memory management.

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