{"id":24700,"date":"2026-09-16T20:32:39","date_gmt":"2026-09-16T12:32:39","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-90012"},"modified":"2026-09-16T20:32:39","modified_gmt":"2026-09-16T12:32:39","slug":"cve-2026-90012","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-90012","title":{"rendered":"CVE-2026-90012 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nspi: Fix DMA mapping"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>spi: Fix DMA mapping ownership on partial map failure<\/p>\n<p>If RX mapping fails after TX mapping succeeds, __spi_map_msg() unmaps<br \/>\nTX but leaves tx_sg_mapped set. If TX mapping fails on a later<br \/>\ntransfer, mappings created for earlier transfers remain active.<\/p>\n<p>In both cases, cur_{tx,rx}_dma_dev have not yet been updated because they<br \/>\nare assigned only after every transfer has been mapped. The subsequent<br \/>\nspi_unmap_msg() may therefore unmap the TX mapping again or release<br \/>\nearlier mappings using a NULL or stale device. Using a NULL device can<br \/>\ntrigger an oops. An empty SG table does not prevent the NULL dereference<br \/>\nbecause dma_unmap_sg_attrs() accesses the device before checking the<br \/>\nentry count.<\/p>\n<p>Publish both mapping devices before mapping starts and unwind all<br \/>\nfailures through __spi_unmap_msg(). This clears the mapping flags and<br \/>\nreleases each mapping once with the device that created it.<\/p>\n<p>Publishing the devices before the loop also refreshes them when no<br \/>\ntransfer needs mapping. No mapping flag is set in that case, so current<br \/>\nusers do not use the pointers as mapping owners.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>spi: Fix DMA mapping ownership on partial map failure<\/p>\n<p>If RX mapping fails after TX mapping succeeds, __spi_map_msg() unmaps<br \/>\nTX but<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-24700","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/24700","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}