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.
Advisories

No advisories yet.

Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Mon, 20 Oct 2025 15:45:00 +0000

Type Values Removed Values Added
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.
Title media: stm32-csi: Fix dereference before NULL check
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2025-10-20T15:29:09.728Z

Reserved: 2025-04-16T07:20:57.151Z

Link: CVE-2025-40015

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2025-10-20T16:15:38.250

Modified: 2025-10-20T16:15:38.250

Link: CVE-2025-40015

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.