CVE-2024-49927

x86/ioapic: Handle allocation failures gracefully

State
Published
Severity
Not scored
Published
Oct 21, 2024
Updated
May 11, 2026
Reserved
Oct 21, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

x86/ioapic: Handle allocation failures gracefully

Breno observed panics when using failslab under certain conditions during runtime:

can not alloc irq_pin_list (-1,0,20) Kernel panic - not syncing: IO-APIC: failed to add irq-pin. Can not proceed

panic+0x4e9/0x590 mp_irqdomain_alloc+0x9ab/0xa80 irq_domain_alloc_irqs_locked+0x25d/0x8d0 __irq_domain_alloc_irqs+0x80/0x110 mp_map_pin_to_irq+0x645/0x890 acpi_register_gsi_ioapic+0xe6/0x150 hpet_open+0x313/0x480

That's a pointless panic which is a leftover of the historic IO/APIC code which panic'ed during early boot when the interrupt allocation failed.

The only place which might justify panic is the PIT/HPET timer_check() code which tries to figure out whether the timer interrupt is delivered through the IO/APIC. But that code does not require to handle interrupt allocation failures. If the interrupt cannot be allocated then timer delivery fails and it either panics due to that or falls back to legacy mode.

Cure this by removing the panic wrapper around __add_pin_to_irq_node() and making mp_irqdomain_alloc() aware of the failure condition and handle it as any other failure in this function gracefully.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 49c7e60022912d10da88ba67e8eb2927f1143f6a to before e479cb835feeb2abff97f25766e23b96a6eabe28Affected
  • 49c7e60022912d10da88ba67e8eb2927f1143f6a to before ec862cd843faa6f0e84a7a07362f2786446bf697Affected
  • 49c7e60022912d10da88ba67e8eb2927f1143f6a to before 077e1b7cd521163ded545987bbbd389519aeed71Affected
  • 49c7e60022912d10da88ba67e8eb2927f1143f6a to before 649a5c2ffae797ce792023a70e84c7fe4b6fb8e0Affected
  • 49c7e60022912d10da88ba67e8eb2927f1143f6a to before f17efbeb2922327ea01a9efa8829fea9a30e547dAffected
  • 49c7e60022912d10da88ba67e8eb2927f1143f6a to before 830802a0fea8fb39d3dc9fb7d6b5581e1343eb1fAffected
LinuxLinux
  • 4.2Affected
  • before 4.2Not affected
  • 5.15.168 through 5.15.*Not affected
  • 6.1.113 through 6.1.*Not affected
  • 6.6.55 through 6.6.*Not affected
  • 6.10.14 through 6.10.*Not affected
  • 6.11.3 through 6.11.*Not affected
  • 6.12 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.