{"id":"CVE-2026-139659","state":"PUBLISHED","title":"i3c: mipi-i3c-hci: Stop rings gracefully when suspending","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ni3c: mipi-i3c-hci: Stop rings gracefully when suspending\n\nhci_dma_suspend() tore the rings down with a single write of zero to\nRH_RING_CONTROL, clearing the RS and ENABLE fields together and without\nwaiting for the ring to stop.  I3C HCI v1.1 section 6.1.2 separates those\nsteps: clear RS for all running Ring Bundles, and only then clear ENABLE\nfor all enabled Ring Bundles.\n\nThe ring registers were also written outside hci->lock, while the\ninterrupt handler, which takes that lock, could still be running on\nanother CPU.  i3c_hci_sync_irq_inactive() was called only afterwards.\n\nFinally, an IBI can still be sitting in the IBI Status Ring when suspend\nruns.  Clearing HC_CONTROL.BUS_ENABLE is deferred: per the description of\nthat field, if a disable request occurs while receiving an IBI, the\nactual disabling does not occur until reception of the IBI is complete.\n\nInstead, clear RS under hci->lock, wait for RING_STATUS_RUNNING to clear,\nand make the interrupt handler inactive.  Only then disable the ring\ninterrupt signals, drain anything left in the IBI ring, and clear ENABLE.","publishedAt":"2026-11-30T13:36:47.894Z","updatedAt":"2026-11-30T13:36:47.894Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8169587204431ce23df9522c2e859b5238934c42","status":"affected","lessThan":"daa154dea176fa5f95bcc5a989b9b09a06dd8341","versionType":"git"},{"version":"8169587204431ce23df9522c2e859b5238934c42","status":"affected","lessThan":"9796ccba1254f6bd3b7e6b650ad28ffc56daf6e9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i3c/master/mipi-i3c-hci/dma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.0","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/i3c/master/mipi-i3c-hci/dma.c"]}],"references":["https://git.kernel.org/stable/c/daa154dea176fa5f95bcc5a989b9b09a06dd8341","https://git.kernel.org/stable/c/9796ccba1254f6bd3b7e6b650ad28ffc56daf6e9"],"weaknesses":[],"ingestedAt":"2026-11-30T13:54:04.526Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139659.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139659","state":"PUBLISHED","datePublished":"2026-11-30T13:36:47.894Z","dateUpdated":"2026-11-30T13:36:47.894Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.946Z"},"containers":{"cna":{"title":"i3c: mipi-i3c-hci: Stop rings gracefully when suspending","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ni3c: mipi-i3c-hci: Stop rings gracefully when suspending\n\nhci_dma_suspend() tore the rings down with a single write of zero to\nRH_RING_CONTROL, clearing the RS and ENABLE fields together and without\nwaiting for the ring to stop.  I3C HCI v1.1 section 6.1.2 separates those\nsteps: clear RS for all running Ring Bundles, and only then clear ENABLE\nfor all enabled Ring Bundles.\n\nThe ring registers were also written outside hci->lock, while the\ninterrupt handler, which takes that lock, could still be running on\nanother CPU.  i3c_hci_sync_irq_inactive() was called only afterwards.\n\nFinally, an IBI can still be sitting in the IBI Status Ring when suspend\nruns.  Clearing HC_CONTROL.BUS_ENABLE is deferred: per the description of\nthat field, if a disable request occurs while receiving an IBI, the\nactual disabling does not occur until reception of the IBI is complete.\n\nInstead, clear RS under hci->lock, wait for RING_STATUS_RUNNING to clear,\nand make the interrupt handler inactive.  Only then disable the ring\ninterrupt signals, drain anything left in the IBI ring, and clear ENABLE."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8169587204431ce23df9522c2e859b5238934c42","status":"affected","lessThan":"daa154dea176fa5f95bcc5a989b9b09a06dd8341","versionType":"git"},{"version":"8169587204431ce23df9522c2e859b5238934c42","status":"affected","lessThan":"9796ccba1254f6bd3b7e6b650ad28ffc56daf6e9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i3c/master/mipi-i3c-hci/dma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.0","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/i3c/master/mipi-i3c-hci/dma.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/daa154dea176fa5f95bcc5a989b9b09a06dd8341"},{"url":"https://git.kernel.org/stable/c/9796ccba1254f6bd3b7e6b650ad28ffc56daf6e9"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:36:47.894Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}