CVE-2025-40015 Details
Description
In the Linux kernel, the following vulnerability has been resolved: media: stm32-csi: Fix dereference before NULL check In 'stm32_csi_start', 'csidev->s_subdev' is dereferenced directly while assigning a value to the 'src_pad'. However the same value is being checked against NULL at a later point of time indicating that there are chances that the value can be NULL. Move the dereference after the NULL check.
A vulnerability in the Linux kernel's media subsystem for STM32 cameras has been addressed. The issue involved a direct dereference of 'csidev->s_subdev' in the 'stm32_csi_start' function, which could lead to a NULL pointer dereference. Although the code later checks for NULL, the initial dereference could still cause issues. The vulnerability has been fixed by rearranging the code to perform the NULL check before dereferencing.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. The specific commit addressing this issue is available in the Linux kernel stable tree.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 20, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1f053d82e59c785b2b939cbed12f13657f84b296 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/4eeafff163e80d576c5efc1360ae310c0ceedd02 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/80eaf32672871bd2623ce6ba13ffc1f018756580 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
| STMicroelectronics STM32-Camera-Serial-Interface | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 20, 2025 | New CVE Received | kernel.org |
Volerion