Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 F37DE3C9432 for ; Fri, 3 Apr 2026 15:27:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775230059; cv=none; b=MU1hM4bB8G1vWXyoCrBQ6Gjh02fn/bf7Tf9GzVCnGIXF211aRnyPd1xYChgDLar/RBTG0RbI3WrNsvKI361gtuZEJzzVtxGC9sibYDidrO2advDXNyvt1hTg+p021TrXK/CiTb++t/M+aVFA/uqPwaiaoO32wDiyz2ESk8vXCwo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775230059; c=relaxed/simple; bh=XGEv10n6XlP1Tbm03aIVmPmUrccYiS17yJ4V0wde8xw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=e4DGsgZRMkUEoHs0Tfzid+IoypcxlOMs74SWb/UmVRSlZz9yjyrM3GUZC07bJVmjqsQq2gkxHl5l0KKl8+NntgI9ZS4nOg/Rmv6l9K+lqN5CUs4+VvaS5/V8G3RKaLsJ5QgaiuiP92MyR8rYdWCjK1qCfktumpnRynO07aPYOcY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OG92PXzD; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OG92PXzD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31D8CC4CEF7; Fri, 3 Apr 2026 15:27:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775230058; bh=XGEv10n6XlP1Tbm03aIVmPmUrccYiS17yJ4V0wde8xw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=OG92PXzDJD0jPxcWCLCZbYt878G/fmOOobPNNSmybvk7g/6PLMrAZ6ijXOVitZig8 IgUSauEqi5Tj2nP3Fonaev6IITLQaQ6c5/fgS8SINgweQcci6s+2Th8Ovafn40fpVt FatO8R7xKnYioZE2Mp6XqqfOOm2/1wKucMgQodMs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31390: drm/xe: Fix memory leak in xe_vm_madvise_ioctl Date: Fri, 3 Apr 2026 17:18:58 +0200 Message-ID: <2026040324-CVE-2026-31390-f363@gregkh> X-Mailer: git-send-email 2.53.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=2248; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vJRLrRZdj6AeIqlVKtFdtfxed2iqRMy3IQp95oSf8aM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnnbzm82FK+Y9eHKeGpJrF78zoyZ7QF2dTMTKwOmf55Z XX1hdfXOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAibJUM82x593bwfnmX9Ha/ W52y0Oz2z25zihjmpy+Zw6Cydeohgb0B265IlufsdE+6AwA= 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: Fix memory leak in xe_vm_madvise_ioctl When check_bo_args_are_sane() validation fails, jump to the new free_vmas cleanup label to properly free the allocated resources. This ensures proper cleanup in this error path. (cherry picked from commit 29bd06faf727a4b76663e4be0f7d770e2d2a7965) The Linux kernel CVE team has assigned CVE-2026-31390 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 293032eec4baa04374d62dd44de61e355296ad32 and fixed in 6.18.20 with commit c3aa7b837920c844d5ae0dd3dbaeb465a461de40 Issue introduced in 6.18 with commit 293032eec4baa04374d62dd44de61e355296ad32 and fixed in 6.19.10 with commit 1c87b48a0ff040723f84a67b32892af7e6a3634f Issue introduced in 6.18 with commit 293032eec4baa04374d62dd44de61e355296ad32 and fixed in 7.0-rc3 with commit 0cfe9c4838f1147713f6b5c02094cd4dc0c598fa 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-31390 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/c3aa7b837920c844d5ae0dd3dbaeb465a461de40 https://git.kernel.org/stable/c/1c87b48a0ff040723f84a67b32892af7e6a3634f https://git.kernel.org/stable/c/0cfe9c4838f1147713f6b5c02094cd4dc0c598fa