{"id":"CVE-2026-139672","state":"PUBLISHED","title":"media: ivsc: Fix csi_dev use-after-free in mei_ace_setup_dev_link()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: ivsc: Fix csi_dev use-after-free in mei_ace_setup_dev_link()\n\ndevice_link_add() only takes a reference to the supplier when the\nlink is created successfully.  When it fails it returns NULL without\ntaking one, so the put_device(csi_dev) before the error check can\ndrop the last reference to csi_dev and dev_name(csi_dev) then\ndereferences a freed device.\n\nMove the put_device() below the error check and release the\nreference through the existing err_put label on the failure path so\nthat csi_dev is no longer touched after it has been put.","publishedAt":"2026-11-30T13:36:55.012Z","updatedAt":"2026-11-30T13:36:55.012Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"765abb76f51f217405fe91176c680dff4d7b8c25","status":"affected","lessThan":"b0af3a1c14ac93c51a3061eabd7f69b3723bdd56","versionType":"git"},{"version":"765abb76f51f217405fe91176c680dff4d7b8c25","status":"affected","lessThan":"f9be93338c2fbaffdbda4f89045e879932e827ca","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/pci/intel/ivsc/mei_ace.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"7.3.6","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/pci/intel/ivsc/mei_ace.c"]}],"references":["https://git.kernel.org/stable/c/b0af3a1c14ac93c51a3061eabd7f69b3723bdd56","https://git.kernel.org/stable/c/f9be93338c2fbaffdbda4f89045e879932e827ca"],"weaknesses":[],"ingestedAt":"2026-11-30T13:54:04.526Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139672.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139672","state":"PUBLISHED","datePublished":"2026-11-30T13:36:55.012Z","dateUpdated":"2026-11-30T13:36:55.012Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.946Z"},"containers":{"cna":{"title":"media: ivsc: Fix csi_dev use-after-free in mei_ace_setup_dev_link()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: ivsc: Fix csi_dev use-after-free in mei_ace_setup_dev_link()\n\ndevice_link_add() only takes a reference to the supplier when the\nlink is created successfully.  When it fails it returns NULL without\ntaking one, so the put_device(csi_dev) before the error check can\ndrop the last reference to csi_dev and dev_name(csi_dev) then\ndereferences a freed device.\n\nMove the put_device() below the error check and release the\nreference through the existing err_put label on the failure path so\nthat csi_dev is no longer touched after it has been put."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"765abb76f51f217405fe91176c680dff4d7b8c25","status":"affected","lessThan":"b0af3a1c14ac93c51a3061eabd7f69b3723bdd56","versionType":"git"},{"version":"765abb76f51f217405fe91176c680dff4d7b8c25","status":"affected","lessThan":"f9be93338c2fbaffdbda4f89045e879932e827ca","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/pci/intel/ivsc/mei_ace.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"7.3.6","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/pci/intel/ivsc/mei_ace.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b0af3a1c14ac93c51a3061eabd7f69b3723bdd56"},{"url":"https://git.kernel.org/stable/c/f9be93338c2fbaffdbda4f89045e879932e827ca"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:36:55.012Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}