Linux Kernel Pinctrl Driver Return Value Check Vulnerability

Vulnerability

A vulnerability exists in the Linux kernel's pinctrl driver for the Atmel PIO4 controller. The issue arises because the function 'devm_kasprintf()' can return a NULL pointer if memory allocation fails. This vulnerability affects several versions of the Linux kernel.

Impact

The vulnerability could lead to a denial of service by causing a memory allocation failure that is not properly handled, potentially leading to a crash or instability in the system.

Reproduction

The vulnerability can be reproduced by loading the Atmel PIO4 pinctrl driver in a Linux kernel version that is affected by this issue. The driver will attempt to allocate memory for pin descriptions using 'devm_kasprintf()'. If the memory allocation fails, the driver does not properly check the return value, which can lead to a NULL pointer dereference.

Remediation

Users can update to the latest version of the Linux kernel, where this vulnerability has been addressed. Instructions for updating the Linux kernel can be found in the official Linux documentation or through the package manager for your Linux distribution.

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

Vulnerability Rating

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