CVE-2025-38648
MEDIUMLinux Kernel 6.6-6.6.101, 6.7-6.12.41, 6.13-6.15.9, 6.16 - NULL Pointer Dereference in STM32 SPI Driver
Title source: llmDescription
In the Linux kernel, the following vulnerability has been resolved: spi: stm32: Check for cfg availability in stm32_spi_probe The stm32_spi_probe function now includes a check to ensure that the pointer returned by of_device_get_match_data is not NULL before accessing its members. This resolves a warning where a potential NULL pointer dereference could occur when accessing cfg->has_device_mode. Before accessing the 'has_device_mode' member, we verify that 'cfg' is not NULL. If 'cfg' is NULL, an error message is logged. This change ensures that the driver does not attempt to access configuration data if it is not available, thus preventing a potential system crash due to a NULL pointer dereference.
References (5)
Core 5
Core References
Scores
CVSS v3
5.5
EPSS
0.0014
EPSS Percentile
4.1%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Details
CWE
CWE-476
Status
published
Products (17)
linux/Kernel
6.13.0 - 6.15.10linux
linux/Kernel
6.16.0 - 6.16.1linux
linux/Kernel
6.6.0 - 6.6.102linux
linux/Kernel
6.7.0 - 6.12.42linux
Linux/Linux
< 6.6
Linux/Linux
6.12.42 - 6.12.*
Linux/Linux
6.15.10 - 6.15.*
Linux/Linux
6.16.1 - 6.16.*
Linux/Linux
6.17
Linux/Linux
6.6
... and 7 more
Published
Aug 22, 2025
Tracked Since
Feb 18, 2026