Junglewise Threat Intelligence

CVE-2024-40984: Linux Kernel NULL pointer dereference in ACPICA exregion

CVE-2024-40984 · Severity: medium · CVSS 5.5 · Published 2024-07-12

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's ACPI component could allow a local user to cause a system crash. The issue occurs when the system attempts to read or write memory across certain boundaries, leading to a kernel failure. This primarily impacts the availability of the system rather than the confidentiality of user data.

Technical details

A NULL pointer dereference exists in the Linux kernel's ACPICA (ACPI Component Architecture) implementation within the acpi_ex_system_memory_space_handler function in drivers/acpi/acpica/exregion.c. The vulnerability was introduced by a previous commit intended to prevent memory mappings from overlapping page boundaries. When a mapping request hits a page boundary, the kernel would truncate the mapping but still attempt to read or write the full requested length, resulting in a NULL pointer dereference. An attacker with local access could potentially trigger this condition to cause a kernel panic. The fix involves reverting the restrictive mapping logic to allow mappings to span across page boundaries as permitted by the ACPI specification.

Affected products

  • Linux Linux Kernel 2.6.32 to 4.19.317, 4.20 to 5.4.279, 5.5 to 5.10.221, 5.11 to 5.15.162, 5.16 to 6.1.96, 6.2 to 6.6.36, 6.7 to 6.9.7, 6.10-rc1 to 6.10-rc4

Timeline

  • 2024-06-14: patched: Initial patch authored by Raju Rangoju
  • 2024-07-12: disclosed: CVE published

References

Related threats