CVE-2025-38648
Last modified
CVE-2025-38648 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.14% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| 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 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-38648?
How severe is CVE-2025-38648?
How do I fix CVE-2025-38648?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-38642In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38643In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38644In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38645In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38646In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38647In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38649In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38650In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38651In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38652In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-38653In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38654In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-38648?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
