Linux Kernel NULL Pointer Dereference Vulnerability in Huge Memory Management

Vulnerability

A NULL pointer dereference vulnerability has been identified in the Linux kernel's memory management of huge pages. This issue arises in shmem folios that are in the swap cache and truncated folios, where the mapping pointer can be NULL. The vulnerability was introduced by a commit that added an early check on the folio's order via mapping->flags, which inadvertently created a bug. Accessing mapping->flags when the mapping is NULL leads to a NULL pointer dereference.

Impact

Exploitation of this vulnerability causes a NULL pointer dereference, leading to a crash of the affected system or application.

Reproduction

The vulnerability can be reproduced by creating a shmem folio that is either truncated or in the swap cache. When such a folio is processed by the 'split_huge_page_to_list_to_order' function, the NULL pointer dereference occurs.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the patched version are available on the official Linux kernel website.

Added: Dec 16, 2025, 6:29 PM
Updated: Dec 16, 2025, 6:29 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
1.5
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.