{"id":"CVE-2026-139035","state":"PUBLISHED","title":"media: stm32: csi: unregister async notifier on cleanup","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: stm32: csi: unregister async notifier on cleanup\n\nstm32_csi_parse_dt() registers the async notifier before probe finishes.\nIf a later operation fails, the error path only cleans up the notifier's\nconnections.  It does not unregister the notifier, leaving its entry on\nthe global notifier list after the devm-allocated csidev is freed.\n\nThe remove path has the same problem.  A later async operation can then\nwalk the stale notifier entry and access freed memory.\n\nUnregister the notifier before cleaning up its resources on both paths.","publishedAt":"2026-11-30T13:27:15.985Z","updatedAt":"2026-11-30T13:27:15.985Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"dcb0f4c16be5df6881a952dc510ce3ec01570144","status":"affected","lessThan":"ea3a418d73b0ccf15e6b60efee1606484acf91de","versionType":"git"},{"version":"dcb0f4c16be5df6881a952dc510ce3ec01570144","status":"affected","lessThan":"979d7a2f16eb311f9fe809a024e004232d8ecd8c","versionType":"git"},{"version":"dcb0f4c16be5df6881a952dc510ce3ec01570144","status":"affected","lessThan":"4957d480a0c87cf3d024e6ff1f57d1222f9212cb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/st/stm32/stm32-csi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/st/stm32/stm32-csi.c"]}],"references":["https://git.kernel.org/stable/c/ea3a418d73b0ccf15e6b60efee1606484acf91de","https://git.kernel.org/stable/c/979d7a2f16eb311f9fe809a024e004232d8ecd8c","https://git.kernel.org/stable/c/4957d480a0c87cf3d024e6ff1f57d1222f9212cb"],"weaknesses":[],"ingestedAt":"2026-11-30T13:40:04.421Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139035.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139035","state":"PUBLISHED","datePublished":"2026-11-30T13:27:15.985Z","dateUpdated":"2026-11-30T13:27:15.985Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.910Z"},"containers":{"cna":{"title":"media: stm32: csi: unregister async notifier on cleanup","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: stm32: csi: unregister async notifier on cleanup\n\nstm32_csi_parse_dt() registers the async notifier before probe finishes.\nIf a later operation fails, the error path only cleans up the notifier's\nconnections.  It does not unregister the notifier, leaving its entry on\nthe global notifier list after the devm-allocated csidev is freed.\n\nThe remove path has the same problem.  A later async operation can then\nwalk the stale notifier entry and access freed memory.\n\nUnregister the notifier before cleaning up its resources on both paths."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"dcb0f4c16be5df6881a952dc510ce3ec01570144","status":"affected","lessThan":"ea3a418d73b0ccf15e6b60efee1606484acf91de","versionType":"git"},{"version":"dcb0f4c16be5df6881a952dc510ce3ec01570144","status":"affected","lessThan":"979d7a2f16eb311f9fe809a024e004232d8ecd8c","versionType":"git"},{"version":"dcb0f4c16be5df6881a952dc510ce3ec01570144","status":"affected","lessThan":"4957d480a0c87cf3d024e6ff1f57d1222f9212cb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/st/stm32/stm32-csi.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/st/stm32/stm32-csi.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ea3a418d73b0ccf15e6b60efee1606484acf91de"},{"url":"https://git.kernel.org/stable/c/979d7a2f16eb311f9fe809a024e004232d8ecd8c"},{"url":"https://git.kernel.org/stable/c/4957d480a0c87cf3d024e6ff1f57d1222f9212cb"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:27:15.985Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}