VDB

CVE-2025-38648

CVE-2025-38648 PUBLISHED

spi: stm32: Check for cfg availability in stm32_spi_probe

Reported by linux · Published August 22, 2025

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.

EPSS 0.18% · 7.1th percentile

Risk scores

EPSS Score
0.18%
7.1th percentile

Affected products

VendorProductVersions
LinuxLinuxfee681646fc831b154619ac0261afedcc7e671e7, fee681646fc831b154619ac0261afedcc7e671e7, fee681646fc831b154619ac0261afedcc7e671e7
LinuxLinux6.6, 0, 6.6.102
linuxlinux_kernel6.6, 6.6, 6.6
LinuxLinux*, *, *

Timeline

  • Aug 22, 2025 Coalition ESS Score (6 in total, the first dated here)
  • Aug 22, 2025 CVE Published
  • Aug 23, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 12, 2025 PoC Published (10 in total, the first dated here)
  • Dec 15, 2025 Security Advisory (222 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (174 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38648
vulnetix vdb fixes CVE-2025-38648

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38648/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›