Linux Kernel Device Driver Null Pointer Dereference Vulnerability

Vulnerability

A potential null pointer dereference vulnerability has been identified in the Linux kernel's device driver management. This issue arises in the 'device_add()' function, specifically within the driver core. The vulnerability was discovered during fault injection testing, where the kernel encountered a null pointer dereference error. The problem occurs when a device is added to a driver but the driver is not yet fully bound. If an error occurs during the addition process, the device is detached from the driver, but the driver's node reference is not cleared, leading to a null pointer dereference when the system tries to access it.

Impact

Exploitation of this vulnerability leads to a kernel panic due to a null pointer dereference, causing a denial of service by crashing the system.

Reproduction

The vulnerability can be reproduced by probing a device with a driver that is not fully bound, such as the 'ds2482' driver. During the probing process, the 'device_add()' function is called, which adds the device to the driver management system. If an error occurs after the device has been added but before the driver is fully bound, the device is detached from the driver. However, the reference to the driver's node is not removed, causing a null pointer dereference when the system tries to access it.

Remediation

The vulnerability has been fixed in the upstream Linux kernel. Users should upgrade to the latest version of the stable kernel to address this issue.

Added: Dec 30, 2025, 1:49 PM
Updated: Dec 30, 2025, 1:49 PM

Vulnerability Rating

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