{"id":"CVE-2025-40015","aliases":["CVE-2025-40015"],"related":[],"kind":"vulnerability","state":"published","title":"media: stm32-csi: Fix dereference before NULL check","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: stm32-csi: Fix dereference before NULL check\n\nIn 'stm32_csi_start', 'csidev->s_subdev' is dereferenced directly while\nassigning a value to the 'src_pad'. However the same value is being\nchecked against NULL at a later point of time indicating that there\nare chances that the value can be NULL.\n\nMove the dereference after the NULL check.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: stm32-csi: Fix dereference before NULL check\n\nIn 'stm32_csi_start', 'csidev->s_subdev' is dereferenced directly while\nassigning a value to the 'src_pad'. However the same value is being\nchecked against NULL at a later point of time indicating that there\nare chances that the value can be NULL.\n\nMove the dereference after the NULL check.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmedia: stm32-csi: Corregir desreferencia antes de la comprobación de NULL\n\nEn 'stm32_csi_start', 'csidev->s_subdev' es desreferenciado directamente mientras\nse asigna un valor a 'src_pad'. Sin embargo, el mismo valor se comprueba\ncontra NULL en un momento posterior, lo que indica que existen posibilidades\nde que el valor sea NULL.\n\nMover la desreferencia después de la comprobación de NULL.","source":"nvd"}],"published":"2025-10-20T15:29:09.728Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e7bad98c205d17c745de9d83ebf73e53cbf99d48","fixed":"1f053d82e59c785b2b939cbed12f13657f84b296","status":"affected"},{"type":"git","introduced":"e7bad98c205d17c745de9d83ebf73e53cbf99d48","fixed":"4eeafff163e80d576c5efc1360ae310c0ceedd02","status":"affected"},{"type":"git","introduced":"e7bad98c205d17c745de9d83ebf73e53cbf99d48","fixed":"80eaf32672871bd2623ce6ba13ffc1f018756580","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.15","status":"unaffected"},{"type":"semver","introduced":"6.16.11","lastAffected":"6.16.*","status":"unaffected"},{"type":"semver","introduced":"6.17.1","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/1f053d82e59c785b2b939cbed12f13657f84b296","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4eeafff163e80d576c5efc1360ae310c0ceedd02","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/80eaf32672871bd2623ce6ba13ffc1f018756580","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40015","url":"https://www.cve.org/CVERecord?id=CVE-2025-40015","licence":"CVE Terms of Use","modified":"2026-05-11T21:40:49.933Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40015","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40015","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:06.579Z","epss":{"score":0.00235,"percentile":0.1544,"date":"2026-12-01T12:00:22.000Z"}}