Skip to content
Fencer Vulns
medium 5.5

CVE-2024-42241 json

mm/shmem: disable PMD-sized page cache if needed

published 2024-08-07 2 y ago modified 2026-10-30 10 d ago also EUVD-2024-39464

cvss
5.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 11%
public exploits
0
none known

Summary

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

mm/shmem: disable PMD-sized page cache if needed

For shmem files, it's possible that PMD-sized page cache can't be supported by xarray. For example, 512MB page cache on ARM64 when the base page size is 64KB can't be supported by xarray. It leads to errors as the following messages indicate when this sort of xarray entry is split.

WARNING: CPU: 34 PID: 7578 at lib/xarray.c:1025 xas_split_alloc+0xf8/0x128 Modules linked in: binfmt_misc nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 \ nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject \ nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 \ ip_set rfkill nf_tables nfnetlink vfat fat virtio_balloon drm fuse xfs \ libcrc32c crct10dif_ce ghash_ce sha2_ce sha256_arm64 sha1_ce virtio_net \ net_failover virtio_console virtio_blk failover dimlib virtio_mmio CPU: 34 PID: 7578 Comm: test Kdump: loaded Tainted: G W 6.10.0-rc5-gavin+ #9 Hardware name: QEMU KVM Virtual Machine, BIOS edk2-20240524-1.el9 05/24/2024 pstate: 83400005 (Nzcv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : xas_split_alloc+0xf8/0x128 lr : split_huge_page_to_list_to_order+0x1c4/0x720 sp : ffff8000882af5f0 x29: ffff8000882af5f0 x28: ffff8000882af650 x27: ffff8000882af768 x26: 0000000000000cc0 x25: 000000000000000d x24: ffff00010625b858 x23: ffff8000882af650 x22: ffffffdfc0900000 x21: 0000000000000000 x20: 0000000000000000 x19: ffffffdfc0900000 x18: 0000000000000000 x17: 0000000000000000 x16: 0000018000000000 x15: 52f8004000000000 x14: 0000e00000000000 x13: 0000000000002000 x12: 0000000000000020 x11: 52f8000000000000 x10: 52f8e1c0ffff6000 x9 : ffffbeb9619a681c x8 : 0000000000000003 x7 : 0000000000000000 x6 : ffff00010b02ddb0 x5 : ffffbeb96395e378 x4 : 0000000000000000 x3 : 0000000000000cc0 x2 : 000000000000000d x1 : 000000000000000c x0 : 0000000000000000 Call trace: xas_split_alloc+0xf8/0x128 split_huge_page_to_list_to_order+0x1c4/0x720 truncate_inode_partial_folio+0xdc/0x160 shmem_undo_range+0x2bc/0x6a8 shmem_fallocate+0x134/0x430 vfs_fallocate+0x124/0x2e8 ksys_fallocate+0x4c/0xa0 __arm64_sys_fallocate+0x24/0x38 invoke_syscall.constprop.0+0x7c/0xd8 do_el0_svc+0xb4/0xd0 el0_svc+0x44/0x1d8 el0t_64_sync_handler+0x134/0x150 el0t_64_sync+0x17c/0x180

Fix it by disabling PMD-sized page cache when HPAGE_PMD_ORDER is larger than MAX_PAGECACHE_ORDER. As Matthew Wilcox pointed, the page cache in a shmem file isn't represented by a multi-index entry and doesn't have this limitation when the xarry entry is split until commit 6b24ca4a1a8d ("mm: Use multi-index entries in the page cache").

Patch / fix

  • Linux Linux 6.1.191, 6.6.41, 6.9.10, 6.10
  • linux Debian 14, Debian 13 6.9.10-1

debian advisories DEBIAN-CVE-2024-42241

  • linux Ubuntu 24.04 LTS 6.8.0-48.48
  • linux-aws Ubuntu 24.04 LTS 6.8.0-1018.20
  • linux-gcp Ubuntu 24.04 LTS 6.8.0-1017.19
  • linux-gke Ubuntu 24.04 LTS 6.8.0-1013.17
  • linux-ibm Ubuntu 24.04 LTS 6.8.0-1015.15
  • linux-azure Ubuntu 24.04 LTS 6.8.0-1017.20
  • linux-gkeop Ubuntu 24.04 LTS 6.8.0-1002.4
  • linux-raspi Ubuntu 24.04 LTS 6.8.0-1014.16

ubuntu advisories UBUNTU-CVE-2024-42241

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • kernel RHEL 9.4 EUS 5.14.0-427.47.1.el9_4
  • rv RHEL 9.4 EUS 5.14.0-427.47.1.el9_4
  • perf RHEL 9.4 EUS 5.14.0-427.47.1.el9_4
  • rtla RHEL 9.4 EUS 5.14.0-427.47.1.el9_4
  • bpftool RHEL 9.4 EUS 7.3.0-427.47.1.el9_4
  • libperf RHEL 9.4 EUS 5.14.0-427.47.1.el9_4
  • kernel-rt RHEL 9.4 EUS 5.14.0-427.47.1.el9_4
  • kernel-64k RHEL 9.4 EUS 5.14.0-427.47.1.el9_4

red hat advisories RHSA-2024:10771RHSA-2024:6745RHSA-2024:6744

  • kernel-rt Linux Micro 6.0 6.4.0-10.1
  • kernel-source-rt Linux Micro 6.0 6.4.0-10.1
  • kernel-livepatch-MICRO-6-0-RT_Update_2 Linux Micro 6.0 1-1.1
  • kernel-source Linux Micro 6.0 6.4.0-19.1
  • kernel-default Linux Micro 6.0 6.4.0-19.1
  • kernel-kvmsmall Linux Micro 6.0 6.4.0-19.1
  • kernel-default-base Linux Micro 6.0 6.4.0-17.1.1.51
  • kernel-livepatch-MICRO-6-0_Update_2 Linux Micro 6.0 1-1.1

suse advisories SUSE-SU-2025:20047-1SUSE-SU-2025:20044-1SUSE-SU-2024:3383-1SUSE-SU-2024:3195-1SUSE-SU-2024:3194-1

  • kernel Azure Linux 3.0 6.6.43.1-7

azure linux advisories AZL-47510

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-42241 updated cvss 5.5

kernel: mm/shmem: disable PMD-sized page cache if needed

  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more
    affected: no fix available
  • Red Hat CodeReady Linux Builder EUS (v.9.2) kernel-debuginfo-common-s390x 5.14.0-284.84.1.el9_2, kernel-debuginfo-common-x86_64 5.14.0-284.84.1.el9_2, kernel-debuginfo-common-aarch64 5.14.0-284.84.1.el9_2, kernel-debuginfo-common-ppc64le 5.14.0-284.84.1.el9_2
    fixed: vendor fix RHSA-2024:6744
  • Red Hat CodeReady Linux Builder EUS (v.9.4) libperf 5.14.0-427.47.1.el9_4, kernel-debuginfo-common-s390x 5.14.0-427.47.1.el9_4, kernel-debuginfo-common-x86_64 5.14.0-427.47.1.el9_4, kernel-debuginfo-common-aarch64 5.14.0-427.47.1.el9_4, kernel-debuginfo-common-ppc64le 5.14.0-427.47.1.el9_4
    fixed: vendor fix RHSA-2024:10771
  • Red Hat Enterprise Linux AppStream EUS (v.9.2) perf 5.14.0-284.84.1.el9_2, rtla 5.14.0-284.84.1.el9_2, kernel-devel-matched 5.14.0-284.84.1.el9_2, kernel-64k-devel-matched 5.14.0-284.84.1.el9_2, kernel-debug-devel-matched 5.14.0-284.84.1.el9_2, kernel-debuginfo-common-s390x 5.14.0-284.84.1.el9_2, +5 more
    fixed: vendor fix RHSA-2024:6744
  • Red Hat Enterprise Linux AppStream EUS (v.9.4) rv 5.14.0-427.47.1.el9_4, perf 5.14.0-427.47.1.el9_4, rtla 5.14.0-427.47.1.el9_4, kernel-devel-matched 5.14.0-427.47.1.el9_4, kernel-64k-devel-matched 5.14.0-427.47.1.el9_4, kernel-debug-devel-matched 5.14.0-427.47.1.el9_4, +6 more
    fixed: vendor fix RHSA-2024:10771
  • Red Hat Enterprise Linux BaseOS EUS (v.9.2) bpftool 7.0.0-284.84.1.el9_2, kernel 5.14.0-284.84.1.el9_2, kernel-64k 5.14.0-284.84.1.el9_2, kernel-core 5.14.0-284.84.1.el9_2, kernel-tools 5.14.0-284.84.1.el9_2, python3-perf 5.14.0-284.84.1.el9_2, +28 more
    fixed: vendor fix RHSA-2024:6744
  • Red Hat Enterprise Linux BaseOS EUS (v.9.4) bpftool 7.3.0-427.47.1.el9_4, kernel 5.14.0-427.47.1.el9_4, kernel-64k 5.14.0-427.47.1.el9_4, kernel-core 5.14.0-427.47.1.el9_4, kernel-tools 5.14.0-427.47.1.el9_4, python3-perf 5.14.0-427.47.1.el9_4, +28 more
    fixed: vendor fix RHSA-2024:10771
show 5 more
  • Red Hat Enterprise Linux Real Time EUS (v.9.2) kernel-rt 5.14.0-284.84.1.rt14.369.el9_2, kernel-rt-core 5.14.0-284.84.1.rt14.369.el9_2, kernel-rt-modules 5.14.0-284.84.1.rt14.369.el9_2, kernel-rt-debug-core 5.14.0-284.84.1.rt14.369.el9_2, kernel-rt-modules-core 5.14.0-284.84.1.rt14.369.el9_2, kernel-rt-debug-modules 5.14.0-284.84.1.rt14.369.el9_2, +4 more
    fixed: vendor fix RHSA-2024:6745
  • Red Hat Enterprise Linux Real Time EUS (v.9.4) kernel-rt 5.14.0-427.47.1.el9_4, kernel-rt-core 5.14.0-427.47.1.el9_4, kernel-rt-modules 5.14.0-427.47.1.el9_4, kernel-rt-debug-core 5.14.0-427.47.1.el9_4, kernel-rt-modules-core 5.14.0-427.47.1.el9_4, kernel-rt-debug-modules 5.14.0-427.47.1.el9_4, +4 more
    fixed: vendor fix RHSA-2024:10771
  • Red Hat Enterprise Linux Real Time for NFV EUS (v.9.2) kernel-rt 5.14.0-284.84.1.rt14.369.el9_2, kernel-rt-kvm 5.14.0-284.84.1.rt14.369.el9_2, kernel-rt-core 5.14.0-284.84.1.rt14.369.el9_2, kernel-rt-modules 5.14.0-284.84.1.rt14.369.el9_2, kernel-rt-debug-kvm 5.14.0-284.84.1.rt14.369.el9_2, kernel-rt-debug-core 5.14.0-284.84.1.rt14.369.el9_2, +6 more
    fixed: vendor fix RHSA-2024:6745
  • Red Hat Enterprise Linux Real Time for NFV EUS (v.9.4) kernel-rt 5.14.0-427.47.1.el9_4, kernel-rt-kvm 5.14.0-427.47.1.el9_4, kernel-rt-core 5.14.0-427.47.1.el9_4, kernel-rt-modules 5.14.0-427.47.1.el9_4, kernel-rt-debug-kvm 5.14.0-427.47.1.el9_4, kernel-rt-debug-core 5.14.0-427.47.1.el9_4, +6 more
    fixed: vendor fix RHSA-2024:10771
  • Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux AppStream EUS (v.9.2) kernel-doc 5.14.0-284.84.1.el9_2
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.21% chance of exploitation in the next 30 days, higher than 11% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

  • Linux Linux

Classification

Weakness
  • CWE-770 Allocation of Resources Without Limits or Throttling
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.