{"id":"CVE-2026-98758","state":"PUBLISHED","title":"usb: typec: ucsi: glink: fix use-after-free of ucsi on remove","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: typec: ucsi: glink: fix use-after-free of ucsi on remove\n\nThe pmic_glink client is released by the devres cleanup, which runs\nafter pmic_glink_ucsi_remove() has returned, so its notification\ncallbacks can queue work until then. Work that runs after\nucsi_unregister() has been called touches freed state: it dereferences\nthe connector array that ucsi_unregister() freed, or registers and\nunregisters the instance a second time.\n\nDisable both work items with disable_work_sync() before unregistering,\nand unregister only if the instance is still registered.\n\nThis issue was found by an in-house static analysis tool.","publishedAt":"2026-10-18T15:47:46.209Z","updatedAt":"2026-10-19T09:25:11.783Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"62b5412b1f4afab27d8df90ddcabb8e1e11a00ad","status":"affected","lessThan":"432b58cd959e594909a581b4974396cdbc9d4ca1","versionType":"git"},{"version":"62b5412b1f4afab27d8df90ddcabb8e1e11a00ad","status":"affected","lessThan":"41934f92e7a54d4080ac0b17aacc83224946785c","versionType":"git"},{"version":"62b5412b1f4afab27d8df90ddcabb8e1e11a00ad","status":"affected","lessThan":"ee8577de01c6b6c7dd1d76b52242c54d37a989f4","versionType":"git"},{"version":"62b5412b1f4afab27d8df90ddcabb8e1e11a00ad","status":"affected","lessThan":"63b269ec537dc0fd26d0bd64872c26860d108c9d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/typec/ucsi/ucsi_glink.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.12.113","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.56","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.10","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/typec/ucsi/ucsi_glink.c"]}],"references":["https://git.kernel.org/stable/c/432b58cd959e594909a581b4974396cdbc9d4ca1","https://git.kernel.org/stable/c/41934f92e7a54d4080ac0b17aacc83224946785c","https://git.kernel.org/stable/c/ee8577de01c6b6c7dd1d76b52242c54d37a989f4","https://git.kernel.org/stable/c/63b269ec537dc0fd26d0bd64872c26860d108c9d"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98758.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98758","state":"PUBLISHED","datePublished":"2026-10-18T15:47:46.209Z","dateUpdated":"2026-10-19T09:25:11.783Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.368Z"},"containers":{"cna":{"title":"usb: typec: ucsi: glink: fix use-after-free of ucsi on remove","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: typec: ucsi: glink: fix use-after-free of ucsi on remove\n\nThe pmic_glink client is released by the devres cleanup, which runs\nafter pmic_glink_ucsi_remove() has returned, so its notification\ncallbacks can queue work until then. Work that runs after\nucsi_unregister() has been called touches freed state: it dereferences\nthe connector array that ucsi_unregister() freed, or registers and\nunregisters the instance a second time.\n\nDisable both work items with disable_work_sync() before unregistering,\nand unregister only if the instance is still registered.\n\nThis issue was found by an in-house static analysis tool."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"62b5412b1f4afab27d8df90ddcabb8e1e11a00ad","status":"affected","lessThan":"432b58cd959e594909a581b4974396cdbc9d4ca1","versionType":"git"},{"version":"62b5412b1f4afab27d8df90ddcabb8e1e11a00ad","status":"affected","lessThan":"41934f92e7a54d4080ac0b17aacc83224946785c","versionType":"git"},{"version":"62b5412b1f4afab27d8df90ddcabb8e1e11a00ad","status":"affected","lessThan":"ee8577de01c6b6c7dd1d76b52242c54d37a989f4","versionType":"git"},{"version":"62b5412b1f4afab27d8df90ddcabb8e1e11a00ad","status":"affected","lessThan":"63b269ec537dc0fd26d0bd64872c26860d108c9d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/typec/ucsi/ucsi_glink.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.12.113","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.56","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.10","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/usb/typec/ucsi/ucsi_glink.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/432b58cd959e594909a581b4974396cdbc9d4ca1"},{"url":"https://git.kernel.org/stable/c/41934f92e7a54d4080ac0b17aacc83224946785c"},{"url":"https://git.kernel.org/stable/c/ee8577de01c6b6c7dd1d76b52242c54d37a989f4"},{"url":"https://git.kernel.org/stable/c/63b269ec537dc0fd26d0bd64872c26860d108c9d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:25:11.783Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.12.113"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.18.56"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"7.2.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}