irqchip/sifive-plic: Fix frozen interrupt due to affinity setting (Linux Linux)

CVE-2026-23287
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.13 % · percentile 3 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: irqchip/sifive-plic: Fix frozen interrupt due to affinity setting PLIC ignores interrupt completion message for disabled interrupt, explained by the specification: The PLIC signals it has completed executing an interrupt handler by writing the interrupt ID it received from the claim to the claim/complete register. The PLIC does not check whether the completion ID is the same as the last claim ID for that target. If the completion ID does not match an interrupt source that is currently enabled for the target, the completion is silently ignored. This caused problems in the past, because an interrupt can be disabled while still being handled and plic_irq_eoi() had no effect. That was fixed by checking if the interrupt is disabled, and if so enable it, before sending the completion message. That check is done with irqd_irq_disabled(). However, that is not sufficient because the enable bit for the handling hart can be zero despite irqd_irq_disabled(d) being false. This can happen when affinity setting is changed while a hart is still handling the interrupt. This problem is easily reproducible by dumping a large file to uart (which generates lots of interrupts) and at the same time keep changing the uart interrupt's affinity setting. The uart port becomes frozen almost instantaneously. Fix this by checking PLIC's enable bit instead of irqd_irq_disabled().

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected cc9f04f9a84f745949e325661550ed14bd0ff322 < 8942fb1a5bc2dcbd88f7e656d109d42f778f298f ; affected cc9f04f9a84f745949e325661550ed14bd0ff322 < 2edbd173309165d103be6c73bd83e459dc45ae7b ; affected cc9f04f9a84f745949e325661550ed14bd0ff322 < 686eb378a4a51aa967e08337dd59daade16aec0f ; affected cc9f04f9a84f745949e325661550ed14bd0ff322 < 1883332bf21feb8871af09daf604fc4836a76925 ; affected cc9f04f9a84f745949e325661550ed14bd0ff322 < f611791a927141d05d7030607dea6372311c1413 ; affected cc9f04f9a84f745949e325661550ed14bd0ff322 < 1072020685f4b81f6efad3b412cdae0bd62bb043
Linux · Linuxaffected 5.1 ; unaffected 0 < 5.1 ; unaffected 6.1.167 ≤ 6.1.* ; unaffected 6.6.130 ≤ 6.6.* ; unaffected 6.12.77 ≤ 6.12.* ; unaffected 6.18.17 ≤ 6.18.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD