{"id":"CVE-2026-143336","state":"PUBLISHED","title":"vdpa_sim: serialize IOTLB updates with dataplane access","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nvdpa_sim: serialize IOTLB updates with dataplane access\n\nThe simulator translates IOTLB entries into iovecs or bvecs under\niommu_lock, then drops the lock before copying data. A concurrent DMA\nunmap can delete the mapping and release its pinned backing pages while\nthe copy is still in progress, leading to a UAF in _copy_from_iter().\n\nUse the existing simulator mutex to serialize DMA map changes with the\nfull backend work function. Also make vhost-vdpa stop device access before\nunpinning the backing pages. Otherwise, waiting in the simulator DMA unmap\ncallback happens after the pages have already been released and cannot\nprotect their lifetime.\n\nKeep iommu_lock for the IOTLB table itself and avoid adding a second\nlong-lived lock to the simulator.\n\nI found this bug myself, though the patch was written with AI assistance.","publishedAt":"2026-12-03T09:21:58.779Z","updatedAt":"2026-12-03T09:21:58.779Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2c53d0f64c06f4580588ef16f50f63a112117a02","status":"affected","lessThan":"41f27ed9ecf5c552a7ecacac3b878aaa51150447","versionType":"git"},{"version":"2c53d0f64c06f4580588ef16f50f63a112117a02","status":"affected","lessThan":"57b7e461d4dda2cb26e8fc5a0fe76dce6db0bf3d","versionType":"git"},{"version":"2c53d0f64c06f4580588ef16f50f63a112117a02","status":"affected","lessThan":"1f2cc552643f5b5d20e506b6651c8a552bf09f4c","versionType":"git"},{"version":"2c53d0f64c06f4580588ef16f50f63a112117a02","status":"affected","lessThan":"8517ed4429a2eefd002dce00ea46e23e6714350b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vdpa/vdpa_sim/vdpa_sim.c","drivers/vhost/vdpa.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.7","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vdpa/vdpa_sim/vdpa_sim.c","drivers/vhost/vdpa.c"]}],"references":["https://git.kernel.org/stable/c/41f27ed9ecf5c552a7ecacac3b878aaa51150447","https://git.kernel.org/stable/c/57b7e461d4dda2cb26e8fc5a0fe76dce6db0bf3d","https://git.kernel.org/stable/c/1f2cc552643f5b5d20e506b6651c8a552bf09f4c","https://git.kernel.org/stable/c/8517ed4429a2eefd002dce00ea46e23e6714350b"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143336.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143336","state":"PUBLISHED","datePublished":"2026-12-03T09:21:58.779Z","dateUpdated":"2026-12-03T09:21:58.779Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.367Z"},"containers":{"cna":{"title":"vdpa_sim: serialize IOTLB updates with dataplane access","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nvdpa_sim: serialize IOTLB updates with dataplane access\n\nThe simulator translates IOTLB entries into iovecs or bvecs under\niommu_lock, then drops the lock before copying data. A concurrent DMA\nunmap can delete the mapping and release its pinned backing pages while\nthe copy is still in progress, leading to a UAF in _copy_from_iter().\n\nUse the existing simulator mutex to serialize DMA map changes with the\nfull backend work function. Also make vhost-vdpa stop device access before\nunpinning the backing pages. Otherwise, waiting in the simulator DMA unmap\ncallback happens after the pages have already been released and cannot\nprotect their lifetime.\n\nKeep iommu_lock for the IOTLB table itself and avoid adding a second\nlong-lived lock to the simulator.\n\nI found this bug myself, though the patch was written with AI assistance."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2c53d0f64c06f4580588ef16f50f63a112117a02","status":"affected","lessThan":"41f27ed9ecf5c552a7ecacac3b878aaa51150447","versionType":"git"},{"version":"2c53d0f64c06f4580588ef16f50f63a112117a02","status":"affected","lessThan":"57b7e461d4dda2cb26e8fc5a0fe76dce6db0bf3d","versionType":"git"},{"version":"2c53d0f64c06f4580588ef16f50f63a112117a02","status":"affected","lessThan":"1f2cc552643f5b5d20e506b6651c8a552bf09f4c","versionType":"git"},{"version":"2c53d0f64c06f4580588ef16f50f63a112117a02","status":"affected","lessThan":"8517ed4429a2eefd002dce00ea46e23e6714350b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vdpa/vdpa_sim/vdpa_sim.c","drivers/vhost/vdpa.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.7","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vdpa/vdpa_sim/vdpa_sim.c","drivers/vhost/vdpa.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/41f27ed9ecf5c552a7ecacac3b878aaa51150447"},{"url":"https://git.kernel.org/stable/c/57b7e461d4dda2cb26e8fc5a0fe76dce6db0bf3d"},{"url":"https://git.kernel.org/stable/c/1f2cc552643f5b5d20e506b6651c8a552bf09f4c"},{"url":"https://git.kernel.org/stable/c/8517ed4429a2eefd002dce00ea46e23e6714350b"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:21:58.779Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"7.4-rc2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}