{"id":"CVE-2025-38648","summary":"spi: stm32: Check for cfg availability in stm32_spi_probe","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: stm32: Check for cfg availability in stm32_spi_probe\n\nThe stm32_spi_probe function now includes a check to ensure that the\npointer returned by of_device_get_match_data is not NULL before\naccessing its members. This resolves a warning where a potential NULL\npointer dereference could occur when accessing cfg-\u003ehas_device_mode.\n\nBefore accessing the 'has_device_mode' member, we verify that 'cfg' is\nnot NULL. If 'cfg' is NULL, an error message is logged.\n\nThis change ensures that the driver does not attempt to access\nconfiguration data if it is not available, thus preventing a potential\nsystem crash due to a NULL pointer dereference.","modified":"2026-04-16T00:01:24.683784164Z","published":"2025-08-22T16:00:52.825Z","related":["SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","openSUSE-SU-2025:20081-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38648.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/21f1c800f6620e43f31dfd76709dbac8ebaa5a16"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3a571a8d52272cc26858ab1bc83d0f66e5dee938"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6031a54f4eac921efe6122a561d44df89b37f2d4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a7645815edf4478f3258bb0db95a08986a77f5c0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cc063d23ad80ef7d201c41b2716b1bae7c662cf9"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38648.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38648"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"fee681646fc831b154619ac0261afedcc7e671e7"},{"fixed":"6031a54f4eac921efe6122a561d44df89b37f2d4"},{"fixed":"a7645815edf4478f3258bb0db95a08986a77f5c0"},{"fixed":"3a571a8d52272cc26858ab1bc83d0f66e5dee938"},{"fixed":"cc063d23ad80ef7d201c41b2716b1bae7c662cf9"},{"fixed":"21f1c800f6620e43f31dfd76709dbac8ebaa5a16"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38648.json"}}],"schema_version":"1.7.5"}