CVE-2023-52993
JSON

5.5medium

x86/i8259: Mark legacy PIC interrupts with IRQ_LEVEL

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.27% (higher than 20% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: x86/i8259: Mark legacy PIC interrupts with IRQ_LEVEL Baoquan reported that after triggering a crash the subsequent crash-kernel fails to boot about half of the time. It triggers a NULL pointer dereference in the periodic tick code. This happens because the legacy timer interrupt (IRQ0) is resent in software which happens in soft interrupt (tasklet) context. In this context get_irq_regs() returns NULL which leads to the NULL pointer dereference. The reason for the resend is a spurious APIC interrupt on the IRQ0 vector which is captured and leads to a resend when the legacy timer interrupt is enabled. This is wrong because the legacy PIC interrupts are level triggered and therefore should never be resent in software, but nothing ever sets the IRQ_LEVEL flag on those interrupts, so the core code does not know about their trigger type. Ensure that IRQ_LEVEL is set when the legacy PCI interrupts are set up.

Affected

Product or packageVersionsReported by
Linux Linuxfrom a4633adcdbc15ac51afcd0e1395de58cee27cf92 before 744fe9be9665227335539b7a77ece8d9ff62b6c0, from a4633adcdbc15ac51afcd0e1395de58cee27cf92 before 496975d1a2937f4baadf3d985991b13fc4fc4f27, from a4633adcdbc15ac51afcd0e1395de58cee27cf92 before 8770cd9d7c14aa99c255a0d08186f0be953e1638, from a4633adcdbc15ac51afcd0e1395de58cee27cf92 before e284c273dbb4c1ed68d4204bff94d0b10e4a90f5, from a4633adcdbc15ac51afcd0e1395de58cee27cf92 before 0b08201158f177aab469e356b4d6af24fdd118df, from a4633adcdbc15ac51afcd0e1395de58cee27cf92 before 137f1b47da5f58805da42c1b7811e28c1e353f39, from a4633adcdbc15ac51afcd0e1395de58cee27cf92 before 5fa55950729d0762a787451dc52862c3f850f859, 2.6.18
Not affected: before 2.6.18, from 4.14.305 up to 4.14.*, from 4.19.272 up to 4.19.*, from 5.4.231 up to 5.4.*, from 5.10.166 up to 5.10.*, from 5.15.91 up to 5.15.*
CVE List
linux linux_kernelfrom 2.6.18 before 4.14.305, from 4.15 before 4.19.272, from 4.20 before 5.4.231, from 5.5 before 5.10.166, from 5.11 before 5.15.91, from 5.16 before 6.1.9, 6.2NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: x86/i8259: Mark legacy PIC interrupts with IRQ_LEVEL Baoquan reported that after triggering a crash the subsequent crash-kernel fails to boot about half of the time. It triggers a NULL pointer dereference in the periodic tick code. This happens because the legacy timer interrupt (IRQ0) is resent in software which happens in soft interrupt (tasklet) context. In this context get_irq_regs() returns NULL which leads to the NULL pointer dereference. The reason for the resend is a spurious APIC interrupt on the IRQ0 vector which is captured and leads to a resend when the legacy timer interrupt is enabled. This is wrong because the legacy PIC interrupts are level triggered and therefore should never be resent in software, but nothing ever sets the IRQ_LEVEL flag on those interrupts, so the core code does not know about their trigger type. Ensure that IRQ_LEVEL is set when the legacy PCI interrupts are set up.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: x86/i8259: Marcar interrupciones PIC heredadas con IRQ_LEVEL. Baoquan informó que, tras desencadenar un fallo, el kernel posterior al fallo no arranca aproximadamente la mitad de las veces. Esto desencadena una desreferencia de puntero NULL en el código de tick periódico. Esto sucede porque la interrupción del temporizador heredada (IRQ0) se reenvía por software, lo que ocurre en el contexto de una interrupción suave (tasklet). En este contexto, get_irq_regs() devuelve NULL, lo que provoca la desreferencia de puntero NULL. El motivo del reenvío es una interrupción APIC espuria en el vector IRQ0, que se captura y provoca un reenvío cuando se habilita la interrupción del temporizador heredada. Esto es incorrecto porque las interrupciones PIC heredadas se activan por nivel y, por lo tanto, nunca deberían reenviarse por software; sin embargo, nada activa el indicador IRQ_LEVEL en esas interrupciones, por lo que el código principal desconoce su tipo de activación. Asegúrese de que IRQ_LEVEL esté activado al configurar las interrupciones PCI heredadas.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-52993 changed 2026-05-11CVE Terms of Use
NVDCVE-2023-52993 changed 2026-06-17Public domain