{"id":"CVE-2023-52766","state":"PUBLISHED","title":"i3c: mipi-i3c-hci: Fix out of bounds access in hci_dma_irq_handler","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ni3c: mipi-i3c-hci: Fix out of bounds access in hci_dma_irq_handler\n\nDo not loop over ring headers in hci_dma_irq_handler() that are not\nallocated and enabled in hci_dma_init(). Otherwise out of bounds access\nwill occur from rings->headers[i] access when i >= number of allocated\nring headers.","publishedAt":"2024-05-21T15:30:50.343Z","updatedAt":"2026-08-05T09:11:18.108Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"d23ad76f240c0f597b7a9eb79905d246f27d40df","versionType":"git"},{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"8be39f66915b40d26ea2c18ba84b5c3d5da6809b","versionType":"git"},{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"7c2b91b30d74d7c407118ad72502d4ca28af1af6","versionType":"git"},{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"4c86cb2321bd9c72d3b945ce7f747961beda8e65","versionType":"git"},{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"45a832f989e520095429589d5b01b0c65da9b574","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":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"5.15.140","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.64","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.5.13","status":"unaffected","lessThanOrEqual":"6.5.*","versionType":"semver"},{"version":"6.6.3","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7","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/d23ad76f240c0f597b7a9eb79905d246f27d40df","https://git.kernel.org/stable/c/8be39f66915b40d26ea2c18ba84b5c3d5da6809b","https://git.kernel.org/stable/c/7c2b91b30d74d7c407118ad72502d4ca28af1af6","https://git.kernel.org/stable/c/4c86cb2321bd9c72d3b945ce7f747961beda8e65","https://git.kernel.org/stable/c/45a832f989e520095429589d5b01b0c65da9b574"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52766.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52766","state":"PUBLISHED","datePublished":"2024-05-21T15:30:50.343Z","dateUpdated":"2026-08-05T09:11:18.108Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-21T15:19:24.238Z"},"containers":{"cna":{"title":"i3c: mipi-i3c-hci: Fix out of bounds access in hci_dma_irq_handler","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ni3c: mipi-i3c-hci: Fix out of bounds access in hci_dma_irq_handler\n\nDo not loop over ring headers in hci_dma_irq_handler() that are not\nallocated and enabled in hci_dma_init(). Otherwise out of bounds access\nwill occur from rings->headers[i] access when i >= number of allocated\nring headers."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"d23ad76f240c0f597b7a9eb79905d246f27d40df","versionType":"git"},{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"8be39f66915b40d26ea2c18ba84b5c3d5da6809b","versionType":"git"},{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"7c2b91b30d74d7c407118ad72502d4ca28af1af6","versionType":"git"},{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"4c86cb2321bd9c72d3b945ce7f747961beda8e65","versionType":"git"},{"version":"3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0","status":"affected","lessThan":"45a832f989e520095429589d5b01b0c65da9b574","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":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"5.15.140","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.64","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.5.13","status":"unaffected","lessThanOrEqual":"6.5.*","versionType":"semver"},{"version":"6.6.3","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7","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/d23ad76f240c0f597b7a9eb79905d246f27d40df"},{"url":"https://git.kernel.org/stable/c/8be39f66915b40d26ea2c18ba84b5c3d5da6809b"},{"url":"https://git.kernel.org/stable/c/7c2b91b30d74d7c407118ad72502d4ca28af1af6"},{"url":"https://git.kernel.org/stable/c/4c86cb2321bd9c72d3b945ce7f747961beda8e65"},{"url":"https://git.kernel.org/stable/c/45a832f989e520095429589d5b01b0c65da9b574"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable path is the platform driver's hard-IRQ handler (i3c_hci_irq_handler → hci_dma_irq_handler), reached when local I3C/I2C bus activity raises host-controller ring interrupts. There is no network or adjacent-link packet path into this HCI master driver.\nAC:L - On multi-ring-capable HCI hardware the interrupt mask can present bits beyond the single software-enabled ring, and a local attacker can reliably induce those IRQs via I3C/I2C client transfers; no attacker-uncontrollable race or layout precondition is required to hit the OOB once those bits are set.\nPR:L - The IRQ handler itself has no capability check, and bus traffic that raises ring interrupts is reachable through ordinary local I3C/I2C client paths (sensors, i2c-adapter users) without real init-namespace root or CAP_SYS_MODULE.\nUI:N - Once the attacker can generate the relevant bus traffic, the host controller delivers the interrupt and the handler runs with no separate victim action required.\nS:U - The OOB access and resulting MMIO/memory corruption stay inside the host kernel's I3C HCI authority and do not cross a VM, IOMMU, or sandbox boundary.\nC:H - The handler out-of-bounds-reads adjacent heap as struct hci_rh_data and then performs MMIO reads and IBI/xfer processing through those corrupted pointers, which is a high-impact disclosure/memory-corruption read primitive.\nI:H - The same corrupted rh->regs is used for rh_reg_write(), and hci_dma_xfer_done()/hci_dma_process_ibi() write through OOB-sourced pointers, yielding an arbitrary MMIO/memory write primitive exploitable for control-flow hijacking.\nA:H - Dereferencing an out-of-bounds or garbage rh in hard-IRQ context causes kernel oops/panic or persistent controller failure, which is full availability loss."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:11:18.108Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.15.140"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.1.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.5.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.6.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"6.7"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-52766","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-05-22T18:26:12.286527Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:23:28.810Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/d23ad76f240c0f597b7a9eb79905d246f27d40df","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/8be39f66915b40d26ea2c18ba84b5c3d5da6809b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/7c2b91b30d74d7c407118ad72502d4ca28af1af6","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/4c86cb2321bd9c72d3b945ce7f747961beda8e65","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/45a832f989e520095429589d5b01b0c65da9b574","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T23:11:35.533Z"}}]}}}