CVE-2025-38648: spi: stm32: Check for cfg availability in stm32_spi_probe

Published Aug 22, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

spi: stm32: Check for cfg availability in stm32spiprobe

The stm32spiprobe function now includes a check to ensure that the pointer returned by ofdevicegetmatchdata is not NULL before accessing its members. This resolves a warning where a potential NULL pointer dereference could occur when accessing cfg->hasdevicemode.

Before accessing the 'hasdevicemode' 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.

Affected Software

5 affected components
Linux Kernel
Linux Linux kernel>=6.6<6.6.102
Linux Linux kernel>=6.7<6.12.42
Linux Linux kernel>=6.13<6.15.10
Linux Linux kernel>=6.16<6.16.1

Event History

Aug 22, 2025
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38648?

CVE-2025-38648 has a medium severity rating due to the potential for improper access to device members.

2

How do I fix CVE-2025-38648?

To fix CVE-2025-38648, update the Linux kernel to the latest patched version that includes the fix for the stm32_spi_probe function.

3

What systems are affected by CVE-2025-38648?

CVE-2025-38648 affects the Linux kernel particularly in systems utilizing STM32 SPI devices.

4

Are there any known exploits for CVE-2025-38648?

As of now, there are no widely reported exploits for CVE-2025-38648, but it is advisable to apply the patch.

5

What is the impact of CVE-2025-38648 on the Linux kernel?

The impact of CVE-2025-38648 on the Linux kernel includes possible denial of service or unstable behavior if the vulnerability is exploited.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203