CVE-2025-40015
JSON

Not scored

media: stm32-csi: Fix dereference before NULL check

Severity
Not scored
Exploit likelihood
0.24% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom e7bad98c205d17c745de9d83ebf73e53cbf99d48 before 1f053d82e59c785b2b939cbed12f13657f84b296, from e7bad98c205d17c745de9d83ebf73e53cbf99d48 before 4eeafff163e80d576c5efc1360ae310c0ceedd02, from e7bad98c205d17c745de9d83ebf73e53cbf99d48 before 80eaf32672871bd2623ce6ba13ffc1f018756580, 6.15
Not affected: before 6.15, from 6.16.11 up to 6.16.*, from 6.17.1 up to 6.17.*, from 6.18 up to *
CVE List

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: media: stm32-csi: Corregir desreferencia antes de la comprobación de NULL En 'stm32_csi_start', 'csidev->s_subdev' es desreferenciado directamente mientras se asigna un valor a 'src_pad'. Sin embargo, el mismo valor se comprueba contra NULL en un momento posterior, lo que indica que existen posibilidades de que el valor sea NULL. Mover la desreferencia después de la comprobación de NULL.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-40015 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-40015 changed 2026-10-19Public domain