Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A08753E008A for ; Thu, 6 Aug 2026 07:14:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786000455; cv=none; b=I7sectrNg2psPELG03ODqu1gzvKbgLG65oyYNVGMo9rvY3ywJ+42qoGkTyGy3ary7HidiqyhIGnBrvW17/3hrl6THkETGEwH8xV6b9JzXsNK0ZQSYLzaAYnkRM4QheG+44EKiaVNOLCwb1+aQ4vuJjHfxpZ7GCEDNStpj8lB2CI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786000455; c=relaxed/simple; bh=xho5oDcokDnEUvyxmpdVABs2RZzpxyf0dsTQFGFUReQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HRK12aZrt6FBizi3xGQzgmlISxnHARRneeSEYhgo82QUKyLCfU4UoCl75xMUVkGrCvgnJjSfaY0oyzqFaMnuI/txEHp084LTogs8tL8Z8xboAJ7x2oC8LwKA4RQRbiUHT3LADlCK8W9EikHNc8OsZD3QkdePQ0e+FbBxCIOyBLM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y+3Y8qYo; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="y+3Y8qYo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFC971F00A3A; Thu, 6 Aug 2026 07:14:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786000454; bh=C/g6mSGLZlplOBUttCzv9C4Xbqc1dmBW1SpcMOK0jnI=; h=From:To:Cc:Subject:Date:Reply-To; b=y+3Y8qYopRTwy78Uxiw8JoHYCS5DaCrpGhGLqsjbl0GcXTFe41feoaG1pJgSOKBa+ JcbwgtVs/H+ffcuVMV3aAgdBMglNRYT1YgxDQg0MsjOyy6Yc9/FBowJI7IJbBJBEu0 nXs43ETHr5Al+Kv+UJOJJTiUWISB65WNd6AkTqA4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64590: dma-buf/udmabuf: skip redundant cpu sync to fix cacheline EEXIST warning Date: Thu, 6 Aug 2026 09:13:53 +0200 Message-ID: <2026080650-CVE-2026-64590-9eca@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4258; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YVof/fMcgMrNJnSyygy4KQ8jcNSN7inRQothhmnO9B0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFklJnrrZpziCbDb0cGUXNCd83Lx0u8c1uVi7T6Pp9rUP DDdYKzYEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABORzWSYZ2NWdOjAO6Y5/3ee FOILjslXn6oyk2F+aljsoVfSYZ9cN+8L8sywmMGa3bUVAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: dma-buf/udmabuf: skip redundant cpu sync to fix cacheline EEXIST warning When CONFIG_DMA_API_DEBUG_SG is enabled, importing a udmabuf into a DRM driver (e.g. amdgpu for video playback in GNOME Videos / Showtime) triggers a spurious warning: DMA-API: amdgpu 0000:03:00.0: cacheline tracking EEXIST, \ overlapping mappings aren't supported WARNING: kernel/dma/debug.c:619 at add_dma_entry+0x473/0x5f0 The call chain is: amdgpu_cs_ioctl -> amdgpu_ttm_backend_bind -> dma_buf_map_attachment -> [udmabuf] map_udmabuf -> get_sg_table -> dma_map_sgtable(dev, sg, direction, 0) // attrs=0 -> debug_dma_map_sg -> add_dma_entry -> EEXIST This happens because udmabuf builds a per-page scatter-gather list via sg_set_folio(). When begin_cpu_udmabuf() has already created an sg table mapped for the misc device, and an importer such as amdgpu maps the same pages for its own device via map_udmabuf(), the DMA debug infrastructure sees two active mappings whose physical addresses share cacheline boundaries and warns about the overlap. The DMA_ATTR_SKIP_CPU_SYNC flag suppresses this check in add_dma_entry() because it signals that no CPU cache maintenance is performed at map/unmap time, making the cacheline overlap harmless. All other major dma-buf exporters already pass this flag: - drm_gem_map_dma_buf() passes DMA_ATTR_SKIP_CPU_SYNC - amdgpu_dma_buf_map() passes DMA_ATTR_SKIP_CPU_SYNC The CPU sync at map/unmap time is also redundant for udmabuf: begin_cpu_udmabuf() and end_cpu_udmabuf() already perform explicit cache synchronization via dma_sync_sgtable_for_cpu/device() when CPU access is requested through the dma-buf interface. Pass DMA_ATTR_SKIP_CPU_SYNC to dma_map_sgtable() and dma_unmap_sgtable() in udmabuf to suppress the spurious warning and skip the redundant sync. The Linux kernel CVE team has assigned CVE-2026-64590 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 284562e1f34874e267d4f499362c3816f8f6bc3f and fixed in 6.6.148 with commit 0db56e7eae932f8e2f3eb44ad1a63633d8f504f8 Issue introduced in 5.6 with commit 284562e1f34874e267d4f499362c3816f8f6bc3f and fixed in 6.12.96 with commit d6552f5cff795d60e629f37513ecf23d88fd2f82 Issue introduced in 5.6 with commit 284562e1f34874e267d4f499362c3816f8f6bc3f and fixed in 6.18.39 with commit 34696563461c9a23177feb6d8aff43f4c0510278 Issue introduced in 5.6 with commit 284562e1f34874e267d4f499362c3816f8f6bc3f and fixed in 7.1.4 with commit 0449a6583c0ee76778d314e4e82f166fc97fa9d8 Issue introduced in 5.6 with commit 284562e1f34874e267d4f499362c3816f8f6bc3f and fixed in 7.2-rc1 with commit 504e2b4ab97a51d56d966cd36d0997ad30b65b2d Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-64590 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/dma-buf/udmabuf.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/0db56e7eae932f8e2f3eb44ad1a63633d8f504f8 https://git.kernel.org/stable/c/d6552f5cff795d60e629f37513ecf23d88fd2f82 https://git.kernel.org/stable/c/34696563461c9a23177feb6d8aff43f4c0510278 https://git.kernel.org/stable/c/0449a6583c0ee76778d314e4e82f166fc97fa9d8 https://git.kernel.org/stable/c/504e2b4ab97a51d56d966cd36d0997ad30b65b2d