CVE-2024-40948: mm/page_table_check: fix crash on ZONE_DEVICE

Published Jul 12, 2024
·
Updated

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

mm/pagetablecheck: fix crash on ZONEDEVICE

Not all pages may apply to pgtable check. One example is ZONEDEVICE pages: they map PFNs directly, and they don't allocate pageext at all even if there's struct page around. One may reference devmmemremappages().

When both ZONEDEVICE 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/pagetablecheck.c:55!

While it's pretty legal to use setpxxat() for ZONEDEVICE pages for page fault resolutions, skip all the checks if pageext doesn't even exist in pgtable checker, which applies to ZONEDEVICE but maybe more.

Affected Software

13 affected componentsFixes available
redhat/kernel<6.1.96
6.1.96
redhat/kernel<6.6.36
6.6.36
redhat/kernel<6.9.7
6.9.7
redhat/kernel<6.10
6.10
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1
Linux Linux kernel>=5.17<6.1.96
Linux Linux kernel>=6.2<6.6.36
Linux Linux kernel>=6.7<6.9.7
Linux Linux kernel=6.10-rc1
Linux Linux kernel=6.10-rc2
Linux Linux kernel=6.10-rc3
Linux Linux kernel=6.10-rc4

Event History

Jul 12, 2024
CVE Published
via MITRE·12:31 PM
Data Sourced
via MITRE·12:31 PM
Description
Data Sourced
via NVD·01:15 PM
Description
Data Sourced
via NVD·01:15 PM
RemedySeverityAffected Software
Nov 30, 2024
Data Sourced
via Ubuntu·04:44 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-40948?

CVE-2024-40948 has been rated with a high severity due to the potential for system crashes.

2

How do I fix CVE-2024-40948?

To remediate CVE-2024-40948, upgrade to kernel versions 6.1.96, 6.6.36, 6.9.7, 6.10, or the specified versions for Debian Linux.

3

What systems are affected by CVE-2024-40948?

CVE-2024-40948 affects Linux kernel versions prior to the specified remedial versions from Red Hat and Debian.

4

What type of vulnerability is CVE-2024-40948?

CVE-2024-40948 is a memory management issue in the Linux kernel related to page table checks.

5

When was CVE-2024-40948 disclosed?

CVE-2024-40948 was disclosed as part of the ongoing maintenance and security updates for the Linux kernel.

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