Linux Kernel Null Pointer Dereference Vulnerability in DRM Writeback Initialization

Vulnerability

A null pointer dereference vulnerability has been identified in the Linux kernel's Direct Rendering Manager (DRM) subsystem, specifically within the Qualcomm Snapdragon Mobile (MSM) driver) writeback initialization function. This issue arises because the memory allocation function 'devm_kzalloc()' can fail, potentially leaving the writeback connection pointer 'dpu_wb_conn' null. If this null pointer is later dereferenced, it could lead to a crash or undefined behavior. The vulnerability affects several versions of the Linux kernel.

Impact

Exploitation of this vulnerability leads to a null pointer dereference, causing a crash or undefined behavior in the system.

Reproduction

The vulnerability can be reproduced by initializing the writeback connector layer in the DRM subsystem without the proper null check after memory allocation. This can be done by triggering the 'dpu_writeback_init()' function in the 'drivers/gpu/drm/msm/disp/dpu1/dpu_writeback.c' file, before the recent patch was applied.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been patched. The specific commit that addresses this issue is '21e9a838f505178e109ccb3bf19d7808eb0326f4', which is available in the Linux kernel stable tree.

Added: Sep 16, 2025, 5:11 PM
Updated: Sep 16, 2025, 5:11 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.7
remediation
7.7
relevance
0.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.