{"api_version":"1","generated_at":"2026-11-30T18:22:12+00:00","cve":"CVE-2026-139360","urls":{"html":"https://cve.report/CVE-2026-139360","api":"https://cve.report/api/cve/CVE-2026-139360.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139360","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139360"},"summary":{"title":"spi: omap2-mcspi: handle DMA setup failures","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: omap2-mcspi: handle DMA setup failures\n\nThe DMA paths ignore failures from dmaengine_slave_config(), descriptor\npreparation and dmaengine_submit(), and carry FIXME comments about\nfalling back to PIO. A failed setup can leave a half-started transfer\nor wait for a completion that never arrives.\n\nCheck each step and clean up with dmaengine_terminate_sync() on error.\nPrepare both descriptors before issuing either channel. Fall back to\nPIO only for host-mode transfers that have a TX buffer, when no DMA has\nbeen started and cleanup succeeded. RX-only and target-mode transfers\nreturn the error instead, since the bus may already be clocking.\n\nThe FIFO is enabled before the DMA attempt, but the PIO path polls\nper-word TXS/RXS and does not expect FIFO mode. Disable the FIFO, with\nthe channel off while its bits change, before falling back.\n\nTested on an AM642 board with a TI 6.12.57 vendor kernel built with\nthis patch and booted from RAM. On a McSPI bus using DMA, 200\niterations of 4096-byte TX and 1024-byte RX spidev transfers completed\nwith no errors, timeouts or kernel warnings. With a temporary change\nthat fails every DMA-sized TX setup, 60 spidev writes fell back to PIO\nwith no errors or timeouts. That test used a bus with no device\nattached and did not show a difference with and without the FIFO\ndisable, which is based on reading the code.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:02","updated_at":"2026-11-30 14:19:02"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/c126e07bde21c518f1356937ac240500d1bc81c0","name":"https://git.kernel.org/stable/c/c126e07bde21c518f1356937ac240500d1bc81c0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/968589dd84df706f7671d94ecc719821c8f61729","name":"https://git.kernel.org/stable/c/968589dd84df706f7671d94ecc719821c8f61729","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/945a413d47ac6565747b802ab35efb8ce668e099","name":"https://git.kernel.org/stable/c/945a413d47ac6565747b802ab35efb8ce668e099","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2edf2a5f293fb927f3a0b997d7f652770ca12ca7","name":"https://git.kernel.org/stable/c/2edf2a5f293fb927f3a0b997d7f652770ca12ca7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/121e6311647d331f48e0baee5824293a7d1f53ba","name":"https://git.kernel.org/stable/c/121e6311647d331f48e0baee5824293a7d1f53ba","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139360","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139360","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 53741ed8f0a3fc646576b6d7adf563f403ba6c03 945a413d47ac6565747b802ab35efb8ce668e099 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 53741ed8f0a3fc646576b6d7adf563f403ba6c03 968589dd84df706f7671d94ecc719821c8f61729 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 53741ed8f0a3fc646576b6d7adf563f403ba6c03 2edf2a5f293fb927f3a0b997d7f652770ca12ca7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 53741ed8f0a3fc646576b6d7adf563f403ba6c03 121e6311647d331f48e0baee5824293a7d1f53ba git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 53741ed8f0a3fc646576b6d7adf563f403ba6c03 c126e07bde21c518f1356937ac240500d1bc81c0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.6","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.6 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/spi/spi-omap2-mcspi.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"945a413d47ac6565747b802ab35efb8ce668e099","status":"affected","version":"53741ed8f0a3fc646576b6d7adf563f403ba6c03","versionType":"git"},{"lessThan":"968589dd84df706f7671d94ecc719821c8f61729","status":"affected","version":"53741ed8f0a3fc646576b6d7adf563f403ba6c03","versionType":"git"},{"lessThan":"2edf2a5f293fb927f3a0b997d7f652770ca12ca7","status":"affected","version":"53741ed8f0a3fc646576b6d7adf563f403ba6c03","versionType":"git"},{"lessThan":"121e6311647d331f48e0baee5824293a7d1f53ba","status":"affected","version":"53741ed8f0a3fc646576b6d7adf563f403ba6c03","versionType":"git"},{"lessThan":"c126e07bde21c518f1356937ac240500d1bc81c0","status":"affected","version":"53741ed8f0a3fc646576b6d7adf563f403ba6c03","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/spi/spi-omap2-mcspi.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.6"},{"lessThan":"3.6","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"3.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"3.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"3.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"3.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"3.6","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: omap2-mcspi: handle DMA setup failures\n\nThe DMA paths ignore failures from dmaengine_slave_config(), descriptor\npreparation and dmaengine_submit(), and carry FIXME comments about\nfalling back to PIO. A failed setup can leave a half-started transfer\nor wait for a completion that never arrives.\n\nCheck each step and clean up with dmaengine_terminate_sync() on error.\nPrepare both descriptors before issuing either channel. Fall back to\nPIO only for host-mode transfers that have a TX buffer, when no DMA has\nbeen started and cleanup succeeded. RX-only and target-mode transfers\nreturn the error instead, since the bus may already be clocking.\n\nThe FIFO is enabled before the DMA attempt, but the PIO path polls\nper-word TXS/RXS and does not expect FIFO mode. Disable the FIFO, with\nthe channel off while its bits change, before falling back.\n\nTested on an AM642 board with a TI 6.12.57 vendor kernel built with\nthis patch and booted from RAM. On a McSPI bus using DMA, 200\niterations of 4096-byte TX and 1024-byte RX spidev transfers completed\nwith no errors, timeouts or kernel warnings. With a temporary change\nthat fails every DMA-sized TX setup, 60 spidev writes fell back to PIO\nwith no errors or timeouts. That test used a bus with no device\nattached and did not show a difference with and without the FIFO\ndisable, which is based on reading the code."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:34:02.397Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/945a413d47ac6565747b802ab35efb8ce668e099"},{"url":"https://git.kernel.org/stable/c/968589dd84df706f7671d94ecc719821c8f61729"},{"url":"https://git.kernel.org/stable/c/2edf2a5f293fb927f3a0b997d7f652770ca12ca7"},{"url":"https://git.kernel.org/stable/c/121e6311647d331f48e0baee5824293a7d1f53ba"},{"url":"https://git.kernel.org/stable/c/c126e07bde21c518f1356937ac240500d1bc81c0"}],"title":"spi: omap2-mcspi: handle DMA setup failures","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139360","datePublished":"2026-11-30T13:34:02.397Z","dateReserved":"2026-11-30T13:22:15.929Z","dateUpdated":"2026-11-30T13:34:02.397Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:02","lastModifiedDate":"2026-11-30 14:19:02","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139360","Ordinal":"1","Title":"spi: omap2-mcspi: handle DMA setup failures","CVE":"CVE-2026-139360","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139360","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: omap2-mcspi: handle DMA setup failures\n\nThe DMA paths ignore failures from dmaengine_slave_config(), descriptor\npreparation and dmaengine_submit(), and carry FIXME comments about\nfalling back to PIO. A failed setup can leave a half-started transfer\nor wait for a completion that never arrives.\n\nCheck each step and clean up with dmaengine_terminate_sync() on error.\nPrepare both descriptors before issuing either channel. Fall back to\nPIO only for host-mode transfers that have a TX buffer, when no DMA has\nbeen started and cleanup succeeded. RX-only and target-mode transfers\nreturn the error instead, since the bus may already be clocking.\n\nThe FIFO is enabled before the DMA attempt, but the PIO path polls\nper-word TXS/RXS and does not expect FIFO mode. Disable the FIFO, with\nthe channel off while its bits change, before falling back.\n\nTested on an AM642 board with a TI 6.12.57 vendor kernel built with\nthis patch and booted from RAM. On a McSPI bus using DMA, 200\niterations of 4096-byte TX and 1024-byte RX spidev transfers completed\nwith no errors, timeouts or kernel warnings. With a temporary change\nthat fails every DMA-sized TX setup, 60 spidev writes fell back to PIO\nwith no errors or timeouts. That test used a bus with no device\nattached and did not show a difference with and without the FIFO\ndisable, which is based on reading the code.","Type":"Description","Title":"spi: omap2-mcspi: handle DMA setup failures"}]}}}