VDB

CVE-2024-40948

CVE-2024-40948 PUBLISHED

mm/page_table_check: fix crash on ZONE_DEVICE

Reported by linux · Published July 12, 2024

In the Linux kernel, the following vulnerability has been resolved: mm/page_table_check: fix crash on ZONE_DEVICE Not all pages may apply to pgtable check. One example is ZONE_DEVICE pages: they map PFNs directly, and they don't allocate page_ext at all even if there's struct page around. One may reference devm_memremap_pages(). When both ZONE_DEVICE and page-table-check enabled, then try to map some dax memories, one can trigger kernel bug constantly now when the kernel was trying to inject some pfn maps on the dax device: kernel BUG at mm/page_table_check.c:55! While it's pretty legal to use set_pxx_at() for ZONE_DEVICE pages for page fault resolutions, skip all the checks if page_ext doesn't even exist in pgtable checker, which applies to ZONE_DEVICE but maybe more.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-toolsAmazon Linux6.1.96-102.177.amzn2023
linux_kernellinux6.9.7, 6.6.36, 6.1.96
LinuxLinuxdec2382247860d2134c8d41e103e26460c099629, 5.17

Affected products

VendorProductVersions
LinuxLinuxdf4e817b710809425d899340dbfa8504a3ca4ba5, df4e817b710809425d899340dbfa8504a3ca4ba5, df4e817b710809425d899340dbfa8504a3ca4ba5
LinuxLinux5.17, 0, 6.1.96
amazon:2023kernel-tools0
LinuxLinux*, *, *
amazon:2023bpftool0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-modules-extra-common0
amazon:2023python3-perf0
amazon:2023kernel-headers0
amazon:2023kernel0
linuxlinux_kernel5.17, 5.17, 5.17
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-modules-extra0
amazon:2023kernel-libbpf0
amazon:2023kernel-livepatch-6.1.96-102.1770
amazon:2023kernel-devel0
amazon:2023perf0
amazon:2023kernel-tools-devel0

Timeline

  • Jul 12, 2024 CVE Published
  • Jul 13, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (8 in total, the first dated here)
  • Jan 7, 2026 Security Advisory (273 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (176 in total, the first dated here)
  • May 11, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-40948
vulnetix vdb fixes CVE-2024-40948

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-40948/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›