{
  "cveId": "CVE-2024-42243",
  "url": "https://patchblox.com/security/cve/CVE-2024-42243",
  "summary": "CVE-2024-42243 is fixed in 22 products on 1 platform, first by DEBIAN-CVE-2024-42243, released August 7, 2024. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  mm/filemap: make MAX_PAGECACHE_ORDER acceptable...",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  mm/filemap: make MAX_PAGECACHE_ORDER acceptable to xarray  Patch series \u0022mm/filemap: Limit page cache size to that supported by xarray\u0022, v2.  Currently, xarray can\u0027t support arbitrary page cache size.  More details can be found from the WARN_ON() statement in xas_split_alloc().  In our test whose code is attached below, we hit the WARN_ON() on ARM64 system where the base page size is 64KB and huge page size is 512MB.  The issue was reported long time ago and some discussions on it can be found here [1].  [1] https://www.spinics.net/lists/linux-xfs/msg75404.html  In order to fix the issue, we need to adjust MAX_PAGECACHE_ORDER to one supported by xarray and avoid PMD-sized page cache if needed.  The code changes are suggested by David Hildenbrand.  PATCH[1] adjusts MAX_PAGECACHE_ORDER to that supported by xarray PATCH[2-3] avoids PMD-sized page cache in the synchronous readahead path PATCH[4] avoids PMD-sized page cache for shmem files if needed  Test program ============ # cat test.c #define _GNU_SOURCE #include \u003Cstdio.h\u003E #include \u003Cstdlib.h\u003E #include \u003Cunistd.h\u003E #include \u003Cstring.h\u003E #include \u003Cfcntl.h\u003E #include \u003Cerrno.h\u003E #include \u003Csys/syscall.h\u003E #include \u003Csys/mman.h\u003E  #define TEST_XFS_FILENAME\t\u0022/tmp/data\u0022 #define TEST_SHMEM_FILENAME\t\u0022/dev/shm/data\u0022 #define TEST_MEM_SIZE\t\t0x20000000  int main(int argc, char **argv) { \tconst char *filename; \tint fd = 0; \tvoid *buf = (void *)-1, *p; \tint pgsize = getpagesize(); \tint ret;  \tif (pgsize != 0x10000) { \t\tfprintf(stderr, \u002264KB base page size is required\\n\u0022); \t\treturn -EPERM; \t}  \tsystem(\u0022echo force \u003E /sys/kernel/mm/transparent_hugepage/shmem_enabled\u0022); \tsystem(\u0022rm -fr /tmp/data\u0022); \tsystem(\u0022rm -fr /dev/shm/data\u0022); \tsystem(\u0022echo 1 \u003E /proc/sys/vm/drop_caches\u0022);  \t/* Open xfs or shmem file */ \tfilename = TEST_XFS_FILENAME; \tif (argc \u003E 1 \u0026\u0026 !strcmp(argv[1], \u0022shmem\u0022)) \t\tfilename = TEST_SHMEM_FILENAME;  \tfd = open(filename, O_CREAT | O_RDWR | O_TRUNC); \tif (fd \u003C 0) { \t\tfprintf(stderr, \u0022Unable to open \u003C%s\u003E\\n\u0022, filename); \t\treturn -EIO; \t}  \t/* Extend file size */ \tret = ftruncate(fd, TEST_MEM_SIZE); \tif (ret) { \t\tfprintf(stderr, \u0022Error %d to ftruncate()\\n\u0022, ret); \t\tgoto cleanup; \t}  \t/* Create VMA */ \tbuf = mmap(NULL, TEST_MEM_SIZE, \t\t   PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); \tif (buf == (void *)-1) { \t\tfprintf(stderr, \u0022Unable to mmap \u003C%s\u003E\\n\u0022, filename); \t\tgoto cleanup; \t}  \tfprintf(stdout, \u0022mapped buffer at 0x%p\\n\u0022, buf); \tret = madvise(buf, TEST_MEM_SIZE, MADV_HUGEPAGE);         if (ret) { \t\tfprintf(stderr, \u0022Unable to madvise(MADV_HUGEPAGE)\\n\u0022); \t\tgoto cleanup; \t}  \t/* Populate VMA */ \tret = madvise(buf, TEST_MEM_SIZE, MADV_POPULATE_WRITE); \tif (ret) { \t\tfprintf(stderr, \u0022Error %d to madvise(MADV_POPULATE_WRITE)\\n\u0022, ret); \t\tgoto cleanup; \t}  \t/* Punch the file to enforce xarray split */ \tret = fallocate(fd, FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE,         \t\tTEST_MEM_SIZE - pgsize, pgsize); \tif (ret) \t\tfprintf(stderr, \u0022Error %d to fallocate()\\n\u0022, ret);  cleanup: \tif (buf != (void *)-1) \t\tmunmap(buf, TEST_MEM_SIZE); \tif (fd \u003E 0) \t\tclose(fd);  \treturn 0; }  # gcc test.c -o test # cat /proc/1/smaps | grep KernelPageSize | head -n 1 KernelPageSize:       64 kB # ./test shmem    : ------------[ cut here ]------------ WARNING: CPU: 17 PID: 5253 at lib/xarray.c:1025 xas_split_alloc\u002B0xf8/0x128 Modules linked in: 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 nf_tables rfkill nfnetlink vfat fat virtio_balloon          \\ drm fuse xfs libcrc32c crct10dif_ce ghash_ce sha2_ce sha256_arm64  \\ virtio_net sha1_ce net_failover failover virtio_console virtio_blk \\ dimlib virtio_mmio CPU: 17 PID: 5253 Comm: test Kdump: loaded Tainted: G W 6.10.0-rc5-gavin\u002B #12 Hardware name: QEMU KVM Virtual Machine, BIOS edk2-20240524-1.el9 05/24/2024 pstate: 83400005 (Nzcv daif \u002BPAN -UAO \u002BTC ---truncated---",
  "published": "2024-08-07T16:15:47Z",
  "severity": "medium",
  "cvss": 5.5,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "epss": 0.00211,
  "epssPercentile": 0.1148,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "dtb-aarch64",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.25.1",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-64kb",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.25.1",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-64kb",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.25.1",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-azure",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.8.14.1",
      "fix": "SUSE-SU-2024:3551-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3551-1",
      "released": "2024-10-08T15:03:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-azure",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.8.14.1",
      "fix": "SUSE-SU-2024:3551-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3551-1",
      "released": "2024-10-08T15:03:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-debug",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.25.1",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.25.1",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.25.1",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.25.1.150600.12.10.2",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.25.1.150600.12.10.2",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.25.2",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.25.2",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-kvmsmall",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.25.1",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-livepatch-SLE15-SP6-RT_Update_4",
      "release": "sles 15.6",
      "fixedVersion": "1-150600.1.3.1",
      "fix": "SUSE-SU-2024:3564-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3564-1",
      "released": "2024-10-09T09:09:06Z"
    },
    {
      "platform": "linux",
      "product": "kernel-livepatch-SLE15-SP6_Update_5",
      "release": "sles 15.6",
      "fixedVersion": "1-150600.13.3.1",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.25.2",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.25.2",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-qa",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.25.1",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-rt",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.14.1",
      "fix": "SUSE-SU-2024:3564-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3564-1",
      "released": "2024-10-09T09:09:06Z"
    },
    {
      "platform": "linux",
      "product": "kernel-rt_debug",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.14.1",
      "fix": "SUSE-SU-2024:3564-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3564-1",
      "released": "2024-10-09T09:09:06Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.25.1",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.25.1",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-azure",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.8.14.1",
      "fix": "SUSE-SU-2024:3551-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3551-1",
      "released": "2024-10-08T15:03:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-azure",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.8.14.1",
      "fix": "SUSE-SU-2024:3551-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3551-1",
      "released": "2024-10-08T15:03:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-rt",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.14.1",
      "fix": "SUSE-SU-2024:3564-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3564-1",
      "released": "2024-10-09T09:09:06Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.25.1",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.25.1",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-azure",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.8.14.1",
      "fix": "SUSE-SU-2024:3551-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3551-1",
      "released": "2024-10-08T15:03:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-azure",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.8.14.1",
      "fix": "SUSE-SU-2024:3551-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3551-1",
      "released": "2024-10-08T15:03:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-rt",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.14.1",
      "fix": "SUSE-SU-2024:3564-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3564-1",
      "released": "2024-10-09T09:09:06Z"
    },
    {
      "platform": "linux",
      "product": "kernel-zfcpdump",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.25.1",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "kernel-zfcpdump",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.25.1",
      "fix": "SUSE-SU-2024:3561-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-3561-1",
      "released": "2024-10-09T08:45:13Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.9.10-1",
      "fix": "DEBIAN-CVE-2024-42243",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-42243",
      "released": "2024-08-07T16:15:47Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.9.10-1",
      "fix": "DEBIAN-CVE-2024-42243",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-42243",
      "released": "2024-08-07T16:15:47Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T13:06:02Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}