CVE-2025-40015 media: stm32-csi: Fix dereference before NULL check
A null pointer dereference in the STM32 CSI driver can cause a kernel crash, requiring local access to exploit.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-40015?
CVE-2025-40015 is a vulnerability in Linux, published on 20 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2025-40015?
How do I fix CVE-2025-40015?
Apply the vendor's patch.
Is CVE-2025-40015 being exploited?
There is no known exploitation of CVE-2025-40015 in the wild and no public exploit code.
Sources
Also known as BELL-CVE-2025-40015, DEBIAN-CVE-2025-40015, GHSA-6ggw-vcg3-gj6g, UBUNTU-CVE-2025-40015.