# CVE-2025-40015: media: stm32-csi: Fix dereference before NULL check

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2025-10-20T15:29:09.728Z
- Modified: 2026-10-19T21:10:00.160Z
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)

## References

- <https://git.kernel.org/stable/c/1f053d82e59c785b2b939cbed12f13657f84b296>
- <https://git.kernel.org/stable/c/4eeafff163e80d576c5efc1360ae310c0ceedd02>
- <https://git.kernel.org/stable/c/80eaf32672871bd2623ce6ba13ffc1f018756580>

## Sources

- CVE List: [CVE-2025-40015](https://www.cve.org/CVERecord?id=CVE-2025-40015), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-40015](https://nvd.nist.gov/vuln/detail/CVE-2025-40015), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40015 · Whole record: https://cve.day/CVE-2025-40015.json · Rebuilt by cve.day 2026-11-25T22:59:06.579Z
