{"id":"CVE-2026-143335","state":"PUBLISHED","title":"vdpa: invalidate DMA mappings before releasing memory","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nvdpa: invalidate DMA mappings before releasing memory\n\nvdpa can release pinned pages and file references before the device stops\nusing the corresponding mappings, allowing stale DMA to corrupt memory.\n\nInvalidate mappings before dropping their backing references. For set_map\nbackends, publish an IOTLB without the invalidated range and keep the old\nreferences if that fails. Do this immediately even within a batch.\n\nSerialize vdpa_sim set_map updates with its worker so publishing a new map\ncannot race an active transfer. Abort mlx5 map replacement when resumable\nvirtqueues cannot be suspended, since changing the memory region while\nthose queues remain active would preserve the same stale DMA window. Reject\nzero-sized and wrapping invalidations before calculating their inclusive\nrange end.\n\nI found this bug myself, though the patch was written with AI assistance.","publishedAt":"2026-12-03T09:21:58.147Z","updatedAt":"2026-12-03T09:21:58.147Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4c8cf31885f69e86be0b5b9e6677a26797365e1d","status":"affected","lessThan":"3ede1291addc698a179da7d30f146aeaf6a6df60","versionType":"git"},{"version":"4c8cf31885f69e86be0b5b9e6677a26797365e1d","status":"affected","lessThan":"791c9635116680961cfd0d5a59c68e75018ebc8b","versionType":"git"},{"version":"4c8cf31885f69e86be0b5b9e6677a26797365e1d","status":"affected","lessThan":"f4ef474a111791116534703e1def811841aa8d88","versionType":"git"},{"version":"4c8cf31885f69e86be0b5b9e6677a26797365e1d","status":"affected","lessThan":"acbf36deb53d9e14e4768bf58883795a8232aa5b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vdpa/mlx5/net/mlx5_vnet.c","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/mlx5/net/mlx5_vnet.c","drivers/vdpa/vdpa_sim/vdpa_sim.c","drivers/vhost/vdpa.c"]}],"references":["https://git.kernel.org/stable/c/3ede1291addc698a179da7d30f146aeaf6a6df60","https://git.kernel.org/stable/c/791c9635116680961cfd0d5a59c68e75018ebc8b","https://git.kernel.org/stable/c/f4ef474a111791116534703e1def811841aa8d88","https://git.kernel.org/stable/c/acbf36deb53d9e14e4768bf58883795a8232aa5b"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143335.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143335","state":"PUBLISHED","datePublished":"2026-12-03T09:21:58.147Z","dateUpdated":"2026-12-03T09:21:58.147Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.367Z"},"containers":{"cna":{"title":"vdpa: invalidate DMA mappings before releasing memory","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nvdpa: invalidate DMA mappings before releasing memory\n\nvdpa can release pinned pages and file references before the device stops\nusing the corresponding mappings, allowing stale DMA to corrupt memory.\n\nInvalidate mappings before dropping their backing references. For set_map\nbackends, publish an IOTLB without the invalidated range and keep the old\nreferences if that fails. Do this immediately even within a batch.\n\nSerialize vdpa_sim set_map updates with its worker so publishing a new map\ncannot race an active transfer. Abort mlx5 map replacement when resumable\nvirtqueues cannot be suspended, since changing the memory region while\nthose queues remain active would preserve the same stale DMA window. Reject\nzero-sized and wrapping invalidations before calculating their inclusive\nrange end.\n\nI found this bug myself, though the patch was written with AI assistance."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4c8cf31885f69e86be0b5b9e6677a26797365e1d","status":"affected","lessThan":"3ede1291addc698a179da7d30f146aeaf6a6df60","versionType":"git"},{"version":"4c8cf31885f69e86be0b5b9e6677a26797365e1d","status":"affected","lessThan":"791c9635116680961cfd0d5a59c68e75018ebc8b","versionType":"git"},{"version":"4c8cf31885f69e86be0b5b9e6677a26797365e1d","status":"affected","lessThan":"f4ef474a111791116534703e1def811841aa8d88","versionType":"git"},{"version":"4c8cf31885f69e86be0b5b9e6677a26797365e1d","status":"affected","lessThan":"acbf36deb53d9e14e4768bf58883795a8232aa5b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/vdpa/mlx5/net/mlx5_vnet.c","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/mlx5/net/mlx5_vnet.c","drivers/vdpa/vdpa_sim/vdpa_sim.c","drivers/vhost/vdpa.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/3ede1291addc698a179da7d30f146aeaf6a6df60"},{"url":"https://git.kernel.org/stable/c/791c9635116680961cfd0d5a59c68e75018ebc8b"},{"url":"https://git.kernel.org/stable/c/f4ef474a111791116534703e1def811841aa8d88"},{"url":"https://git.kernel.org/stable/c/acbf36deb53d9e14e4768bf58883795a8232aa5b"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:21:58.147Z"},"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"}}}}}