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 9C7AA36F8E1 for ; Sat, 15 Aug 2026 06:21:50 +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=1786774911; cv=none; b=pHjywcebh+1OWatXZOCvfvzsaTivxpgWb7xpTQNDhQVu2sHXud4GVpslG8cBqkeg/NohFdoTJ8uBg5oeA59UfbOld4ArzxexbJU8bUsUAhrk/gtJpL5Ykg3GjUfJG5NIghBhdwv05wJnjGnePUP/WlPqFyf1El5rVxZpTeGQS+8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774911; c=relaxed/simple; bh=5Owc/AfdpThLzypBH7y26S/bkI7lgHH4KH5a9NC3GCU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Nnqb2Sl+dey6dIVRmlbdyYhiqXI8rFFFiyHPeZrjZCbxpmGe+bY5cb2SZ5ISErWiSOsnnIGqNS9Mtqb09cJG/0V79hRUT8k6bmCbIMyGH+QRu74n4Ea2JHMc7p0vM/XUdj/8h7cAx93PV4cibpeCtkFResDDukLrAa7df+UX9JY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=r7vbHhM3; 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="r7vbHhM3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF91C1F000E9; Sat, 15 Aug 2026 06:21:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774910; bh=mys1h+7x9W1pZnnQa0hBBN7SqB0Ezc/97G/o7gjRy0A=; h=From:To:Cc:Subject:Date:Reply-To; b=r7vbHhM3wMyyvNeHxfd4m/i4tgeFd5GOiCwM646/EZL0YK4ZanvfQ+HSnnn19d+iR NuUfPCpdnjp99ajMHklYFsm1R8dnLHzcFGrZ+ptSe2LeKmNBA97DbJL8LsAbF1Mhec v5MAQZqHTi10xZhBPbZqgs2K6mT8KNZhW0a/85C8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72311: drm/xe: free madvise VMA array on L2 flush failure Date: Sat, 15 Aug 2026 15:06:30 +0900 Message-ID: <2026081504-CVE-2026-72311-607c@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=2405; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=S11Vu4lfYGe/Mjv736twdOQp9ieAdCnqIVNPsTlF47M=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDHdm39Kv2Jm/9uniedw6L1Ky/0mbGJdz9fI8ZHZ0f HhWZZF7RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk+ESGuUJGxvOvyPvY9P0K XXMuK+jij7xZsQwLruSKzYw6HPxm9/ap78qDRdge22reBgA= 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: drm/xe: free madvise VMA array on L2 flush failure xe_vm_madvise_ioctl() allocates madvise_range.vmas in get_vmas(). After get_vmas() succeeds with at least one VMA, error paths must go through free_vmas so the array is released before the madvise details are destroyed. The L2 flush validation path added for PAT madvise rejects some SVM/userptr ranges after get_vmas() has succeeded, but jumps directly to madv_fini. This skips kfree(madvise_range.vmas), leaking the VMA array on each failed ioctl. Jump to free_vmas instead, matching the other validation failure paths after get_vmas() has succeeded. (cherry picked from commit c3a1c3579b1250060da73507a4acef712974c78a) The Linux kernel CVE team has assigned CVE-2026-72311 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 4f39a194d41e6b8cb61a91a7bb01b17be59a7d73 and fixed in 7.1.5 with commit bf126747e7bff55e5ba0b1ec10fc5fce99feaed9 Issue introduced in 7.1 with commit 4f39a194d41e6b8cb61a91a7bb01b17be59a7d73 and fixed in 7.2-rc3 with commit 14abbed336a2d1bbd726c25d148d2ec0ff928073 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-72311 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/gpu/drm/xe/xe_vm_madvise.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/bf126747e7bff55e5ba0b1ec10fc5fce99feaed9 https://git.kernel.org/stable/c/14abbed336a2d1bbd726c25d148d2ec0ff928073