{"id":"CVE-2025-71303","state":"PUBLISHED","title":"accel/amdxdna: Fix race condition when checking rpm_on","description":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/amdxdna: Fix race condition when checking rpm_on\n\nWhen autosuspend is triggered, driver rpm_on flag is set to indicate that\na suspend/resume is already in progress. However, when a userspace\napplication submits a command during this narrow window,\namdxdna_pm_resume_get() may incorrectly skip the resume operation because\nthe rpm_on flag is still set. This results in commands being submitted\nwhile the device has not actually resumed, causing unexpected behavior.\n\nThe set_dpm() is called by suspend/resume, it relied on rpm_on flag to\navoid calling into rpm suspend/resume recursivly. So to fix this, remove\nthe use of the rpm_on flag entirely. Instead, introduce aie2_pm_set_dpm()\nwhich explicitly resumes the device before invoking set_dpm(). With this\nchange, set_dpm() is called directly inside the suspend or resume execution\npath. Otherwise, aie2_pm_set_dpm() is called.","publishedAt":"2026-05-27T12:14:51.799Z","updatedAt":"2026-10-15T10:06:52.979Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3bdd26582d026bdd86aa76f03989a1137b2490a0","status":"affected","lessThan":"a82142af837f67a3f0a257a6dc355448ace58926","versionType":"git"},{"version":"063db451832b8849faf1b0b8404b3a6a39995b29","status":"affected","lessThan":"e7cb75b6a5127d78298e39750b4f3185eca0dafc","versionType":"git"},{"version":"063db451832b8849faf1b0b8404b3a6a39995b29","status":"affected","lessThan":"00ffe45ece80160aef446d74ded906352f21dd72","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["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"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"6.19.4","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["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"]}],"references":["https://git.kernel.org/stable/c/a82142af837f67a3f0a257a6dc355448ace58926","https://git.kernel.org/stable/c/e7cb75b6a5127d78298e39750b4f3185eca0dafc","https://git.kernel.org/stable/c/00ffe45ece80160aef446d74ded906352f21dd72"],"weaknesses":[],"ingestedAt":"2026-10-29T20:10:04.440Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/71xxx/CVE-2025-71303.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-71303","state":"PUBLISHED","datePublished":"2026-05-27T12:14:51.799Z","dateUpdated":"2026-10-15T10:06:52.979Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-08T13:14:33.087Z"},"containers":{"cna":{"title":"accel/amdxdna: Fix race condition when checking rpm_on","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/amdxdna: Fix race condition when checking rpm_on\n\nWhen autosuspend is triggered, driver rpm_on flag is set to indicate that\na suspend/resume is already in progress. However, when a userspace\napplication submits a command during this narrow window,\namdxdna_pm_resume_get() may incorrectly skip the resume operation because\nthe rpm_on flag is still set. This results in commands being submitted\nwhile the device has not actually resumed, causing unexpected behavior.\n\nThe set_dpm() is called by suspend/resume, it relied on rpm_on flag to\navoid calling into rpm suspend/resume recursivly. So to fix this, remove\nthe use of the rpm_on flag entirely. Instead, introduce aie2_pm_set_dpm()\nwhich explicitly resumes the device before invoking set_dpm(). With this\nchange, set_dpm() is called directly inside the suspend or resume execution\npath. Otherwise, aie2_pm_set_dpm() is called."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3bdd26582d026bdd86aa76f03989a1137b2490a0","status":"affected","lessThan":"a82142af837f67a3f0a257a6dc355448ace58926","versionType":"git"},{"version":"063db451832b8849faf1b0b8404b3a6a39995b29","status":"affected","lessThan":"e7cb75b6a5127d78298e39750b4f3185eca0dafc","versionType":"git"},{"version":"063db451832b8849faf1b0b8404b3a6a39995b29","status":"affected","lessThan":"00ffe45ece80160aef446d74ded906352f21dd72","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["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"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"6.19.4","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["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"]}],"references":[{"url":"https://git.kernel.org/stable/c/a82142af837f67a3f0a257a6dc355448ace58926"},{"url":"https://git.kernel.org/stable/c/e7cb75b6a5127d78298e39750b4f3185eca0dafc"},{"url":"https://git.kernel.org/stable/c/00ffe45ece80160aef446d74ded906352f21dd72"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-15T10:06:52.979Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"6.19.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}