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 506F729BDAA for ; Wed, 27 May 2026 12:20:18 +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=1779884419; cv=none; b=m0OrfQoYslw+IvzIVp3tgoLI/dcB+B93FPHKSiU5SOyDYt07mx995QTa6hQeVXgCbX6iPEjyd5o0fNpSM4WtNzBQnwQ7i0K2UI3uzBEEPgJBJ/d0FHE+peJk9gf1HhQC+qYWh9cerNT78G2XfaISmCe9QEyol/eRkORu2pqrep8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884419; c=relaxed/simple; bh=WjjRfT6ENdkcVmAlAUIZp4nDra1zonFvmh/hFbCOTpc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Dzl+atbC0zbl0z1kNT1CU94PADb28yvAAC0ji/BGC0clirnoZiEy+9O+6/kO3lk2/NvUSziq6rKMkMrvi5pK9g3lMfj+d+x+3FE3yoRk3YILZDmqBOeDzy0PpdBTTjeOy1+Gwh8LR79qv00srYfNrwPmqP2qz1OxpOyhNDGqrp0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EjhJX8O6; 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="EjhJX8O6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FD851F000E9; Wed, 27 May 2026 12:20:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884418; bh=oWERzcP5aBdGhCx7RhOCF4PuK/tHRxkTjGU1wgO2tns=; h=From:To:Cc:Subject:Date:Reply-To; b=EjhJX8O6YRZH37CaG+/q5GwSyYdMCmuI5M0aeAJeMNx2jDPY4xsO3OE/tIS+JN8eT i6euY2dI9sFj+6dbRhJOshlhvWITfjtNkQp9pWAnCLrQJImEDojDyrdlRwE+iT8cdP jH2NN2Cs3+7i1bgr0hFOKVJiKYPKGpbp36AP/EBI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71303: accel/amdxdna: Fix race condition when checking rpm_on Date: Wed, 27 May 2026 14:18:02 +0200 Message-ID: <2026052702-CVE-2025-71303-9b84@gregkh> X-Mailer: git-send-email 2.54.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=2831; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=91XFw9YJhyZq0M/TsPoOabAbwLeu2lMiG9ucNcW86Bs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliD36/ehDdLTfv7BuT86w7kz9YBiWa+anZhkhdn3117 sILu4O7O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAix1MY5ll9iLn+JHqR6H/d 9oUnli28wHY0X4RhnsXXpR9PP0+dvspFMTvDYZ/HZYb7ZwA= 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 race condition when checking rpm_on When autosuspend is triggered, driver rpm_on flag is set to indicate that a suspend/resume is already in progress. However, when a userspace application submits a command during this narrow window, amdxdna_pm_resume_get() may incorrectly skip the resume operation because the rpm_on flag is still set. This results in commands being submitted while the device has not actually resumed, causing unexpected behavior. The set_dpm() is called by suspend/resume, it relied on rpm_on flag to avoid calling into rpm suspend/resume recursivly. So to fix this, remove the use of the rpm_on flag entirely. Instead, introduce aie2_pm_set_dpm() which explicitly resumes the device before invoking set_dpm(). With this change, set_dpm() is called directly inside the suspend or resume execution path. Otherwise, aie2_pm_set_dpm() is called. The Linux kernel CVE team has assigned CVE-2025-71303 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 063db451832b8849faf1b0b8404b3a6a39995b29 and fixed in 6.19.4 with commit e7cb75b6a5127d78298e39750b4f3185eca0dafc Issue introduced in 6.19 with commit 063db451832b8849faf1b0b8404b3a6a39995b29 and fixed in 7.0 with commit 00ffe45ece80160aef446d74ded906352f21dd72 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-71303 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/aie2_message.c drivers/accel/amdxdna/aie2_pci.c drivers/accel/amdxdna/aie2_pci.h drivers/accel/amdxdna/aie2_pm.c drivers/accel/amdxdna/aie2_smu.c drivers/accel/amdxdna/amdxdna_pci_drv.h drivers/accel/amdxdna/amdxdna_pm.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/e7cb75b6a5127d78298e39750b4f3185eca0dafc https://git.kernel.org/stable/c/00ffe45ece80160aef446d74ded906352f21dd72