{"id":"CVE-2026-139000","state":"PUBLISHED","title":"i3c: master: Fix out-of-bounds read in DMA bounce buffer setup","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ni3c: master: Fix out-of-bounds read in DMA bounce buffer setup\n\nWhen a bounce buffer is required for DMA_TO_DEVICE transfers,\ni3c_master_dma_map_single() rounds the DMA mapping length up to a\ncache-line boundary:\n\n\tmap_len = ALIGN(len, cache_line_size());\n\nIt then allocates the bounce buffer with:\n\n\tkmemdup(buf, map_len, GFP_KERNEL);\n\nkmemdup() copies the full allocation size, causing it to read map_len\nbytes from buf even though only len bytes are valid.  This results in an\nout-of-bounds read of up to cache_line_size() - 1 bytes past the end of\nthe caller's buffer.\n\nFix the issue by allocating the bounce buffer with kzalloc() and copying\nonly len bytes from the original buffer.  The remaining bytes up to\nmap_len stay zero-filled, avoiding both the out-of-bounds read and\nexposure of unrelated memory contents to the DMA engine.","publishedAt":"2026-11-30T13:26:56.791Z","updatedAt":"2026-11-30T13:26:56.791Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f8d9e56aeb87ce82ce8636cd176cc59b69aa0e41","status":"affected","lessThan":"2f6a32c7a313e7d826642a57343cbba0ab202494","versionType":"git"},{"version":"f8d9e56aeb87ce82ce8636cd176cc59b69aa0e41","status":"affected","lessThan":"3ce1ae37eeb6a2f9206d2a0d1b6c29cdfd8a4e14","versionType":"git"},{"version":"f8d9e56aeb87ce82ce8636cd176cc59b69aa0e41","status":"affected","lessThan":"35b028b25451e17d63b2cd36a11a86c5e18df1b9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i3c/master.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","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/i3c/master.c"]}],"references":["https://git.kernel.org/stable/c/2f6a32c7a313e7d826642a57343cbba0ab202494","https://git.kernel.org/stable/c/3ce1ae37eeb6a2f9206d2a0d1b6c29cdfd8a4e14","https://git.kernel.org/stable/c/35b028b25451e17d63b2cd36a11a86c5e18df1b9"],"weaknesses":[],"ingestedAt":"2026-11-30T13:40:04.421Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139000.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139000","state":"PUBLISHED","datePublished":"2026-11-30T13:26:56.791Z","dateUpdated":"2026-11-30T13:26:56.791Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.908Z"},"containers":{"cna":{"title":"i3c: master: Fix out-of-bounds read in DMA bounce buffer setup","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ni3c: master: Fix out-of-bounds read in DMA bounce buffer setup\n\nWhen a bounce buffer is required for DMA_TO_DEVICE transfers,\ni3c_master_dma_map_single() rounds the DMA mapping length up to a\ncache-line boundary:\n\n\tmap_len = ALIGN(len, cache_line_size());\n\nIt then allocates the bounce buffer with:\n\n\tkmemdup(buf, map_len, GFP_KERNEL);\n\nkmemdup() copies the full allocation size, causing it to read map_len\nbytes from buf even though only len bytes are valid.  This results in an\nout-of-bounds read of up to cache_line_size() - 1 bytes past the end of\nthe caller's buffer.\n\nFix the issue by allocating the bounce buffer with kzalloc() and copying\nonly len bytes from the original buffer.  The remaining bytes up to\nmap_len stay zero-filled, avoiding both the out-of-bounds read and\nexposure of unrelated memory contents to the DMA engine."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f8d9e56aeb87ce82ce8636cd176cc59b69aa0e41","status":"affected","lessThan":"2f6a32c7a313e7d826642a57343cbba0ab202494","versionType":"git"},{"version":"f8d9e56aeb87ce82ce8636cd176cc59b69aa0e41","status":"affected","lessThan":"3ce1ae37eeb6a2f9206d2a0d1b6c29cdfd8a4e14","versionType":"git"},{"version":"f8d9e56aeb87ce82ce8636cd176cc59b69aa0e41","status":"affected","lessThan":"35b028b25451e17d63b2cd36a11a86c5e18df1b9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/i3c/master.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","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/i3c/master.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/2f6a32c7a313e7d826642a57343cbba0ab202494"},{"url":"https://git.kernel.org/stable/c/3ce1ae37eeb6a2f9206d2a0d1b6c29cdfd8a4e14"},{"url":"https://git.kernel.org/stable/c/35b028b25451e17d63b2cd36a11a86c5e18df1b9"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:26:56.791Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}