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 713A3302151 for ; Tue, 13 Jan 2026 15:36:32 +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=1768318592; cv=none; b=jt5fG4+S2rUr6Qi0+9Y6xpJ7hObIw184Q1QNiLeepPTRoiABrv/41RNttx0CFSD4Whq9pOGxwXfmwdYkCxHp1FFUZz+0E1uyjfUFtATPu3vXTBJQKuiyDMajD6bt4Wp7fCQFAfXZxIRDNVkK/ELdgPw685EkdiLDatwrIoRv3oQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318592; c=relaxed/simple; bh=SIWS7yRhn97P3N1w99tLsVuNWqjLBZ89Rilzex8ULr0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tIIARRAHv9ovECJ4NWeUCRrEjy72A0lTsJBVL1pLoX7l/lwjZ0j9yUY8sc0yDvKSMcveuQu4GdSa6gCh7YCaHeUy9Ugg0f98GEoYYija9ubrssp6PrHBpN0oW+KpUnC4eUEXD5PYrHH9tdyrnqLMrumGLPHeD+slIxLRoA4RLvE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p1gUQJ19; 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="p1gUQJ19" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF65CC19421; Tue, 13 Jan 2026 15:36:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768318592; bh=SIWS7yRhn97P3N1w99tLsVuNWqjLBZ89Rilzex8ULr0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=p1gUQJ19TsNVifFEoTjRGmTVJLkplJrhDQHOdi0t5/WjU6AX9mJuc7m4RrEdZjqqG swpe4IJHPPcqhD+3mAXLLy0BVLIqd5296eceXMe+AZXd7X/Q8tW36V9yg0hJEErAC8 APrM4eaF/7Cn+kMF4QfitteZKSHQxIHxLvWu45N4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71099: drm/xe/oa: Fix potential UAF in xe_oa_add_config_ioctl() Date: Tue, 13 Jan 2026 16:35:58 +0100 Message-ID: <2026011345-CVE-2025-71099-b6f8@gregkh> X-Mailer: git-send-email 2.52.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=2567; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FEsa2dI1vDvjgN2zHGcuQM/UqCNUrnoUpJGhMDWkC98=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlpaYE/g1t+zL9hON1ZUUbhMcOyT0/bv2s2aTrcfNds5 1O75HFRRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwkQZRhwY6CdwkJ/5YnFETc j/dJLmXbfUJVjWHBepG7Dm3Jr7ctscn36v9zgz8hv3MdAA== 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/oa: Fix potential UAF in xe_oa_add_config_ioctl() In xe_oa_add_config_ioctl(), we accessed oa_config->id after dropping metrics_lock. Since this lock protects the lifetime of oa_config, an attacker could guess the id and call xe_oa_remove_config_ioctl() with perfect timing, freeing oa_config before we dereference it, leading to a potential use-after-free. Fix this by caching the id in a local variable while holding the lock. v2: (Matt A) - Dropped mutex_unlock(&oa->metrics_lock) ordering change from xe_oa_remove_config_ioctl() (cherry picked from commit 28aeaed130e8e587fd1b73b6d66ca41ccc5a1a31) The Linux kernel CVE team has assigned CVE-2025-71099 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit cdf02fe1a94a768cbcd20f5c4e1a1d805f4a06c0 and fixed in 6.12.64 with commit c6d30b65b7a44dac52ad49513268adbf19eab4a2 Issue introduced in 6.11 with commit cdf02fe1a94a768cbcd20f5c4e1a1d805f4a06c0 and fixed in 6.18.4 with commit 7cdb9a9da935c687563cc682155461fef5f9b48d Issue introduced in 6.11 with commit cdf02fe1a94a768cbcd20f5c4e1a1d805f4a06c0 and fixed in 6.19-rc1 with commit dcb171931954c51a1a7250d558f02b8f36570783 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-2025-71099 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_oa.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/c6d30b65b7a44dac52ad49513268adbf19eab4a2 https://git.kernel.org/stable/c/7cdb9a9da935c687563cc682155461fef5f9b48d https://git.kernel.org/stable/c/dcb171931954c51a1a7250d558f02b8f36570783