{"id":"CVE-2021-47617","aliases":["CVE-2021-47617"],"related":[],"kind":"vulnerability","state":"published","title":"PCI: pciehp: Fix infinite loop in IRQ handler upon power fault","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: pciehp: Fix infinite loop in IRQ handler upon power fault\n\nThe Power Fault Detected bit in the Slot Status register differs from\nall other hotplug events in that it is sticky:  It can only be cleared\nafter turning off slot power.  Per PCIe r5.0, sec. 6.7.1.8:\n\n  If a power controller detects a main power fault on the hot-plug slot,\n  it must automatically set its internal main power fault latch [...].\n  The main power fault latch is cleared when software turns off power to\n  the hot-plug slot.\n\nThe stickiness used to cause interrupt storms and infinite loops which\nwere fixed in 2009 by commits 5651c48cfafe (\"PCI pciehp: fix power fault\ninterrupt storm problem\") and 99f0169c17f3 (\"PCI: pciehp: enable\nsoftware notification on empty slots\").\n\nUnfortunately in 2020 the infinite loop issue was inadvertently\nreintroduced by commit 8edf5332c393 (\"PCI: pciehp: Fix MSI interrupt\nrace\"):  The hardirq handler pciehp_isr() clears the PFD bit until\npciehp's power_fault_detected flag is set.  That happens in the IRQ\nthread pciehp_ist(), which never learns of the event because the hardirq\nhandler is stuck in an infinite loop.  Fix by setting the\npower_fault_detected flag already in the hardirq handler.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: pciehp: Fix infinite loop in IRQ handler upon power fault\n\nThe Power Fault Detected bit in the Slot Status register differs from\nall other hotplug events in that it is sticky:  It can only be cleared\nafter turning off slot power.  Per PCIe r5.0, sec. 6.7.1.8:\n\n  If a power controller detects a main power fault on the hot-plug slot,\n  it must automatically set its internal main power fault latch [...].\n  The main power fault latch is cleared when software turns off power to\n  the hot-plug slot.\n\nThe stickiness used to cause interrupt storms and infinite loops which\nwere fixed in 2009 by commits 5651c48cfafe (\"PCI pciehp: fix power fault\ninterrupt storm problem\") and 99f0169c17f3 (\"PCI: pciehp: enable\nsoftware notification on empty slots\").\n\nUnfortunately in 2020 the infinite loop issue was inadvertently\nreintroduced by commit 8edf5332c393 (\"PCI: pciehp: Fix MSI interrupt\nrace\"):  The hardirq handler pciehp_isr() clears the PFD bit until\npciehp's power_fault_detected flag is set.  That happens in the IRQ\nthread pciehp_ist(), which never learns of the event because the hardirq\nhandler is stuck in an infinite loop.  Fix by setting the\npower_fault_detected flag already in the hardirq handler.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: PCI: pciehp: soluciona el bucle infinito en el controlador IRQ ante un fallo de alimentación. El bit de fallo de alimentación detectado en el registro de estado de la ranura se diferencia de todos los demás eventos de conexión en caliente en que es fijo: solo puede borrarse después de apagar la alimentación de la ranura. Por PCIe r5.0, seg. 6.7.1.8: Si un controlador de energía detecta una falla de energía principal en la ranura de conexión en caliente, debe configurar automáticamente su pestillo interno de falla de energía principal [...]. El bloqueo de fallo de alimentación principal se borra cuando el software corta la alimentación a la ranura de conexión en caliente. La rigidez solía causar tormentas de interrupción y bucles infinitos que se solucionaron en 2009 mediante los commits 5651c48cfafe (\"PCI pciehp: solucionar el problema de la tormenta de interrupción por falla de energía\") y 99f0169c17f3 (\"PCI: pciehp: habilitar la notificación de software en ranuras vacías\"). Desafortunadamente, en 2020, el problema del bucle infinito se reintrodujo inadvertidamente mediante el commit 8edf5332c393 (\"PCI: pciehp: arreglar carrera de interrupción MSI\"): el controlador hardirq pciehp_isr() borra el bit PFD hasta que se establece el indicador power_fault_detected de pciehp. Eso sucede en el hilo IRQ pciehp_ist(), que nunca se entera del evento porque el controlador hardirq está atrapado en un bucle infinito. Para solucionarlo, configure el indicador power_fault_detected que ya está en el controlador hardirq.","source":"nvd"}],"published":"2024-06-20T10:57:01.508Z","modified":"2026-06-17T04:18:10.317Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-835"],"affected":[{"ranges":[{"type":"git","introduced":"a8cc52270f3d8e8f4faf01ffd6c4a95bbfb55ba4","fixed":"ff27f7d0333cff89ec85c419f431aca1b38fb16a","status":"affected"},{"type":"git","introduced":"4667358dab9cc07da044d5bc087065545b1000df","fixed":"464da38ba827f670deac6500a1de9a4f0f44c41d","status":"affected"},{"type":"git","introduced":"8edf5332c39340b9583cf9cba659eb7ec71f75b5","fixed":"3b4c966fb156ff3e70b2526d964952ff7c1574d9","status":"affected"},{"type":"git","introduced":"8edf5332c39340b9583cf9cba659eb7ec71f75b5","fixed":"1db58c6584a72102e98af2e600ea184ddaf2b8af","status":"affected"},{"type":"git","introduced":"8edf5332c39340b9583cf9cba659eb7ec71f75b5","fixed":"6d6f1f0dac3e3441ecdb1103d4efb11b9ed24dd5","status":"affected"},{"type":"git","introduced":"8edf5332c39340b9583cf9cba659eb7ec71f75b5","fixed":"23584c1ed3e15a6f4bfab8dc5a88d94ab929ee12","status":"affected"},{"type":"semver","introduced":"4.19.149","fixed":"4.19.233","status":"affected"},{"type":"semver","introduced":"5.4.69","fixed":"5.4.177","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.7","status":"unaffected"},{"type":"semver","introduced":"4.19.233","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.177","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.97","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.20","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.6","lastAffected":"5.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.19.149","fixed":"4.19.233"},{"status":"affected","introduced":"5.4.69","fixed":"5.4.177"},{"status":"affected","introduced":"5.7","fixed":"5.10.97"},{"status":"affected","introduced":"5.11","fixed":"5.15.20"},{"status":"affected","introduced":"5.16","fixed":"5.16.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ff27f7d0333cff89ec85c419f431aca1b38fb16a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/464da38ba827f670deac6500a1de9a4f0f44c41d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3b4c966fb156ff3e70b2526d964952ff7c1574d9","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1db58c6584a72102e98af2e600ea184ddaf2b8af","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6d6f1f0dac3e3441ecdb1103d4efb11b9ed24dd5","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/23584c1ed3e15a6f4bfab8dc5a88d94ab929ee12","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T17:11:38.706Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47617","url":"https://www.cve.org/CVERecord?id=CVE-2021-47617","licence":"CVE Terms of Use","modified":"2026-05-23T15:20:19.921Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47617","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47617","licence":"Public domain","modified":"2026-06-17T04:18:10.317Z"}],"updatedAt":"2026-11-25T22:58:08.946Z","epss":{"score":0.0021,"percentile":0.11916,"date":"2026-12-01T12:00:22.000Z"}}