CVE-2024-40948
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-tools | Amazon Linux | 6.1.96-102.177.amzn2023 |
| linux_kernel | linux | 6.9.7, 6.6.36, 6.1.96 |
| Linux | Linux | dec2382247860d2134c8d41e103e26460c099629, 5.17 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | df4e817b710809425d899340dbfa8504a3ca4ba5, df4e817b710809425d899340dbfa8504a3ca4ba5, df4e817b710809425d899340dbfa8504a3ca4ba5 |
| Linux | Linux | 5.17, 0, 6.1.96 |
| amazon:2023 | kernel-tools | 0 |
| Linux | Linux | *, *, * |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel | 0 |
| linux | linux_kernel | 5.17, 5.17, 5.17 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-livepatch-6.1.96-102.177 | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
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