{"id":"CVE-2023-52740","state":"PUBLISHED","title":"powerpc/64s/interrupt: Fix interrupt exit race with security mitigation switch","description":"In the Linux kernel, the following vulnerability has been resolved:\n\npowerpc/64s/interrupt: Fix interrupt exit race with security mitigation switch\n\nThe RFI and STF security mitigation options can flip the\ninterrupt_exit_not_reentrant static branch condition concurrently with\nthe interrupt exit code which tests that branch.\n\nInterrupt exit tests this condition to set MSR[EE|RI] for exit, then\nagain in the case a soft-masked interrupt is found pending, to recover\nthe MSR so the interrupt can be replayed before attempting to exit\nagain. If the condition changes between these two tests, the MSR and irq\nsoft-mask state will become corrupted, leading to warnings and possible\ncrashes. For example, if the branch is initially true then false,\nMSR[EE] will be 0 but PACA_IRQ_HARD_DIS clear and EE may not get\nenabled, leading to warnings in irq_64.c.","publishedAt":"2024-05-21T15:23:03.201Z","updatedAt":"2026-05-11T19:32:17.227Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"13799748b957bc5659f97c036224b0f4b42172e2","status":"affected","lessThan":"86f7e423933608d536015a0f2eb9e0338c1227e0","versionType":"git"},{"version":"13799748b957bc5659f97c036224b0f4b42172e2","status":"affected","lessThan":"6f097c24815e67909a1fcc2c605586d02babd673","versionType":"git"},{"version":"13799748b957bc5659f97c036224b0f4b42172e2","status":"affected","lessThan":"2ea31e2e62bbc4d11c411eeb36f1b02841dbcab1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/powerpc/kernel/interrupt.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"5.15.94","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.12","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/powerpc/kernel/interrupt.c"]}],"references":["https://git.kernel.org/stable/c/86f7e423933608d536015a0f2eb9e0338c1227e0","https://git.kernel.org/stable/c/6f097c24815e67909a1fcc2c605586d02babd673","https://git.kernel.org/stable/c/2ea31e2e62bbc4d11c411eeb36f1b02841dbcab1"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52740.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52740","state":"PUBLISHED","datePublished":"2024-05-21T15:23:03.201Z","dateUpdated":"2026-05-11T19:32:17.227Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-21T15:19:24.233Z"},"containers":{"cna":{"title":"powerpc/64s/interrupt: Fix interrupt exit race with security mitigation switch","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\npowerpc/64s/interrupt: Fix interrupt exit race with security mitigation switch\n\nThe RFI and STF security mitigation options can flip the\ninterrupt_exit_not_reentrant static branch condition concurrently with\nthe interrupt exit code which tests that branch.\n\nInterrupt exit tests this condition to set MSR[EE|RI] for exit, then\nagain in the case a soft-masked interrupt is found pending, to recover\nthe MSR so the interrupt can be replayed before attempting to exit\nagain. If the condition changes between these two tests, the MSR and irq\nsoft-mask state will become corrupted, leading to warnings and possible\ncrashes. For example, if the branch is initially true then false,\nMSR[EE] will be 0 but PACA_IRQ_HARD_DIS clear and EE may not get\nenabled, leading to warnings in irq_64.c."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"13799748b957bc5659f97c036224b0f4b42172e2","status":"affected","lessThan":"86f7e423933608d536015a0f2eb9e0338c1227e0","versionType":"git"},{"version":"13799748b957bc5659f97c036224b0f4b42172e2","status":"affected","lessThan":"6f097c24815e67909a1fcc2c605586d02babd673","versionType":"git"},{"version":"13799748b957bc5659f97c036224b0f4b42172e2","status":"affected","lessThan":"2ea31e2e62bbc4d11c411eeb36f1b02841dbcab1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/powerpc/kernel/interrupt.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"5.15.94","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.12","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/powerpc/kernel/interrupt.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/86f7e423933608d536015a0f2eb9e0338c1227e0"},{"url":"https://git.kernel.org/stable/c/6f097c24815e67909a1fcc2c605586d02babd673"},{"url":"https://git.kernel.org/stable/c/2ea31e2e62bbc4d11c411eeb36f1b02841dbcab1"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:32:17.227Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.15.94"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.1.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-52740","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-05-21T18:15:22.000735Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:23:49.892Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/86f7e423933608d536015a0f2eb9e0338c1227e0","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/6f097c24815e67909a1fcc2c605586d02babd673","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/2ea31e2e62bbc4d11c411eeb36f1b02841dbcab1","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T23:11:35.916Z"}}]}}}