From mboxrd@z Thu Jan 1 00:00:00 1970 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 5A3613E16A0 for ; Sat, 22 Aug 2026 15:40:45 +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=1787413246; cv=none; b=GUV8F1/aFdO5XijCz0rNg5khCkL572g/TK/jO65AVssZx0WumftcbVB/qtbN9RU2/C/E1MBvqzG8DXlSS2GRxk4290xrpzxnu6T/QW0cg+mhoE8FS7ZNGDbOxh7VuwWncU5bn9ByGHcOwwu/AHKJqjneIyPP+K/0VCsbNx4NV0U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787413246; c=relaxed/simple; bh=03KqsFf5dHvSCJ9WKncb4LYGg1TnMXu1idv1hIacBiM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=C5X2LOpp7sMNfLvxEAW0fKI/OIufxGMrtlqqFrK6DJMpb7P9lptLOrLK1ylBuD266JMiWKdQAhPtSjxZiHyQ0+JnlfAKXcBeEMRtX7Bx9+0lG7ErkLKEW6+ikYplL4QBMkoH/HJO0cz5wpf7w0Fmk8Q/TGJudak1D1nQqq8zZAo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RQWpUIq9; 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="RQWpUIq9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A57001F000E9; Sat, 22 Aug 2026 15:40:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787413245; bh=V21R9s/iJRU9O+OsEYiRw862WO1vXqLd9vlkIGKz8Tw=; h=From:To:Cc:Subject:Date:Reply-To; b=RQWpUIq9Wc+Qpdx8+4DfR/ofCoaZIm+xQxbuOGNF8QZRTarQ9yuBwJ46jN1fH/Yt+ dUd/LKsqVvjYQCLk/bmmL+BzvbHOX0/TVUZtGS+TzdMiYPGiYREEUO+hQYMLVHOvcy LRCICkZMkHSqz4x4hUGOxt33H6sq8+llem8QQS64= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74716: accel/amdxdna: Fix locally exploitable BUG_ON in amdxdna_insert_pages() Date: Sat, 22 Aug 2026 17:33:20 +0200 Message-ID: <2026082239-CVE-2026-74716-b277@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=2678; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hkxOs+YPyq4cNIzHzp3G0GUULkeczoD5j3QSg/6AZ8o=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmdB26Lv5rKs0Bn/7vomXW+9zK3rpM+mdAdkdLh/yAk0 uHAZPHcjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIRyHDgjkzJ3IF6j8qaOXa 8tDy/+qlPXUcvQwLFrMcDf27a8Xer9qLO6bONb4ftkKREwA= 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: accel/amdxdna: Fix locally exploitable BUG_ON in amdxdna_insert_pages() In amdxdna_insert_pages(), vm_flags_mod() sets VM_MIXEDMAP and clears VM_PFNMAP. If an unprivileged userspace process mmaps a non-imported GEM object and then calls madvise(MADV_DONTNEED), the PTEs will be successfully cleared because VM_MIXEDMAP allows this (unlike VM_PFNMAP). When userspace subsequently accesses the memory, drm_gem_shmem_fault() handles the page fault and attempts to map the backing shmem page via vmf_insert_pfn() which calls vmf_insert_pfn_prot(). Because the backing shmem page is normal system memory (pfn_valid(pfn) is true) and the VMA now has VM_MIXEDMAP set, won't this predictably trigger the explicit assertion BUG_ON((vma->vm_flags & VM_MIXEDMAP) && pfn_valid(pfn)) Fix by removing the vm_flags_mod() call and replacing the vm_insert_pages() pre-population with the handle_mm_fault() loop that was already used for the import (dma-buf) path. The Linux kernel CVE team has assigned CVE-2026-74716 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit e486147c912f653ef4b60a6c7dbd4168a4c56a9f and fixed in 7.1.9 with commit 13339132d89d00b513dff0730bff3a313b9b13b5 Issue introduced in 6.16 with commit e486147c912f653ef4b60a6c7dbd4168a4c56a9f and fixed in 7.2 with commit 4a19f7ab5972ef608b31ae921419bc3e04b3f8ad 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-74716 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/accel/amdxdna/amdxdna_gem.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/13339132d89d00b513dff0730bff3a313b9b13b5 https://git.kernel.org/stable/c/4a19f7ab5972ef608b31ae921419bc3e04b3f8ad