CVE-2025-40015

media: stm32-csi: Fix dereference before NULL check

State
Published
Severity
Not scored
Published
Oct 20, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e7bad98c205d17c745de9d83ebf73e53cbf99d48 to before 1f053d82e59c785b2b939cbed12f13657f84b296Affected
  • e7bad98c205d17c745de9d83ebf73e53cbf99d48 to before 4eeafff163e80d576c5efc1360ae310c0ceedd02Affected
  • e7bad98c205d17c745de9d83ebf73e53cbf99d48 to before 80eaf32672871bd2623ce6ba13ffc1f018756580Affected
LinuxLinux
  • 6.15Affected
  • before 6.15Not affected
  • 6.16.11 through 6.16.*Not affected
  • 6.17.1 through 6.17.*Not affected
  • 6.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.