Linux kernel
cpe:2.3:a:linux:linux_kernel:*:*:*:*:*:*:*, +4 more
A NULL pointer dereference vulnerability has been identified in the Linux kernel's handling of Marvell Prestera devlink support. The issue arises in the 'prestera_devlink_alloc' function, which calls 'devlink_priv' on a pointer that may be NULL if 'devlink_alloc' fails to allocate memory. This oversight can lead to a crash when the allocation fails. The vulnerability affects the Linux kernel stable tree.
Exploitation of this vulnerability leads to a NULL pointer dereference, causing a crash.
The vulnerability can be reproduced by invoking the 'prestera_devlink_alloc' function in a scenario where 'devlink_alloc' fails to allocate memory. This can be simulated by modifying the 'devlink_alloc' function to return NULL, which will cause 'prestera_devlink_alloc' to call 'devlink_priv' with a NULL pointer, resulting in a NULL pointer dereference.
The vulnerability has been addressed in the Linux kernel. Users can upgrade to the latest version of the stable Linux kernel to apply the fix.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.