{"id":"CVE-2026-139000","summary":"i3c: master: Fix out-of-bounds read in DMA bounce buffer setup","details":"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.","modified":"2026-12-01T21:02:35.620098276Z","published":"2026-11-30T13:26:56.791Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139000.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2f6a32c7a313e7d826642a57343cbba0ab202494"},{"type":"WEB","url":"https://git.kernel.org/stable/c/35b028b25451e17d63b2cd36a11a86c5e18df1b9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3ce1ae37eeb6a2f9206d2a0d1b6c29cdfd8a4e14"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139000.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139000"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f8d9e56aeb87ce82ce8636cd176cc59b69aa0e41"},{"fixed":"2f6a32c7a313e7d826642a57343cbba0ab202494"},{"fixed":"3ce1ae37eeb6a2f9206d2a0d1b6c29cdfd8a4e14"},{"fixed":"35b028b25451e17d63b2cd36a11a86c5e18df1b9"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139000.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.18.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139000.json"}}],"schema_version":"1.9.2"}