Skip to content

CVE-2024-49927 x86/ioapic: Handle allocation failures gracefully

MediumCVSS 5.5 EPSS 0.24%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
Linux KernelUbuntuDebian

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.

Upgrade path

10 packages: 10 fixed.

PackageAffectedFixed inStatus
debian/linux(Debian 12) < 6.1.115-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +27 more 6.1.115-1 Fixed
debian/linux(Debian 13) < 6.11.4-1 6.11.4-1 Fixed
debian/linux(Debian 14) < 6.11.4-1 6.11.4-1 Fixed
Linux kernel < 5.15.168; < 6.1.113; < 6.6.55; < 6.10.14 +13 more 5.15.168, 6.1.113, 6.6.55, 6.10.14, 6.11.3, 6.12, 077e1b7cd521163ded545987bbbd389519aeed71, 649a5c2ffae797ce792023a70e84c7fe4b6fb8e0, 830802a0fea8fb39d3dc9fb7d6b5581e1343eb1f, e479cb835feeb2abff97f25766e23b96a6eabe28, ec862cd843faa6f0e84a7a07362f2786446bf697, f17efbeb2922327ea01a9efa8829fea9a30e547d Fixed
Microsoft cbl mariner < 5.15.173.1-1 5.15.173.1-1 Fixed
ubuntu/linux(Ubuntu 22.04) < 5.15.0-127.137 5.15.0-127.137 Fixed
ubuntu/linux(Ubuntu 24.04) < 6.8.0-54.56 6.8.0-54.56 Fixed
ubuntu/linux-kvm(Ubuntu 22.04) < 5.15.0-1070.75 5.15.0-1070.75 Fixed
ubuntu/linux-raspi(Ubuntu 22.04) < 5.15.0-1066.69 5.15.0-1066.69 Fixed
ubuntu/linux-raspi(Ubuntu 24.04) < 6.8.0-1019.23 6.8.0-1019.23 Fixed

Affected products

ProductAffected versionsFixed in
Microsoft cbl mariner < 5.15.173.1-1 5.15.173.1-1
debian/linux(Debian:12) < 6.1.115-1 6.1.115-1
debian/linux(Debian:12) = 6.1.106-1 No fix listed
debian/linux(Debian:12) = 6.1.106-2 No fix listed
debian/linux(Debian:12) = 6.1.106-3 No fix listed
debian/linux(Debian:12) = 6.1.112-1 No fix listed
debian/linux(Debian:12) = 6.1.27-1 No fix listed
debian/linux(Debian:12) = 6.1.37-1 No fix listed
debian/linux(Debian:12) = 6.1.38-1 No fix listed
debian/linux(Debian:12) = 6.1.38-2 No fix listed
debian/linux(Debian:12) = 6.1.38-2~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.38-3 No fix listed
debian/linux(Debian:12) = 6.1.38-4 No fix listed
debian/linux(Debian:12) = 6.1.38-4~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.52-1 No fix listed
debian/linux(Debian:12) = 6.1.55-1 No fix listed
debian/linux(Debian:12) = 6.1.55-1~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.64-1 No fix listed
debian/linux(Debian:12) = 6.1.66-1 No fix listed
debian/linux(Debian:12) = 6.1.67-1 No fix listed
debian/linux(Debian:12) = 6.1.69-1 No fix listed
debian/linux(Debian:12) = 6.1.69-1~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.76-1 No fix listed
debian/linux(Debian:12) = 6.1.76-1~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.82-1 No fix listed
Show 31 more
ProductAffected versionsFixed in
debian/linux(Debian:12) = 6.1.85-1 No fix listed
debian/linux(Debian:12) = 6.1.90-1 No fix listed
debian/linux(Debian:12) = 6.1.90-1~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.94-1 No fix listed
debian/linux(Debian:12) = 6.1.94-1~bpo11+1 No fix listed
debian/linux(Debian:12) = 6.1.98-1 No fix listed
debian/linux(Debian:12) = 6.1.99-1 No fix listed
debian/linux(Debian:13) < 6.11.4-1 6.11.4-1
debian/linux(Debian:14) < 6.11.4-1 6.11.4-1
ubuntu/linux(Ubuntu:22.04) < 5.15.0-127.137 5.15.0-127.137
ubuntu/linux-kvm(Ubuntu:22.04) < 5.15.0-1070.75 5.15.0-1070.75
ubuntu/linux-raspi(Ubuntu:22.04) < 5.15.0-1066.69 5.15.0-1066.69
Linux kernel >= 49c7e60022912d10da88ba67e8eb2927f1143f6a, < e479cb835feeb2abff97f25766e23b96a6eabe28 e479cb835feeb2abff97f25766e23b96a6eabe28
Linux kernel >= 49c7e60022912d10da88ba67e8eb2927f1143f6a, < ec862cd843faa6f0e84a7a07362f2786446bf697 ec862cd843faa6f0e84a7a07362f2786446bf697
Linux kernel >= 49c7e60022912d10da88ba67e8eb2927f1143f6a, < 077e1b7cd521163ded545987bbbd389519aeed71 077e1b7cd521163ded545987bbbd389519aeed71
Linux kernel >= 49c7e60022912d10da88ba67e8eb2927f1143f6a, < 649a5c2ffae797ce792023a70e84c7fe4b6fb8e0 649a5c2ffae797ce792023a70e84c7fe4b6fb8e0
Linux kernel >= 49c7e60022912d10da88ba67e8eb2927f1143f6a, < f17efbeb2922327ea01a9efa8829fea9a30e547d f17efbeb2922327ea01a9efa8829fea9a30e547d
Linux kernel >= 49c7e60022912d10da88ba67e8eb2927f1143f6a, < 830802a0fea8fb39d3dc9fb7d6b5581e1343eb1f 830802a0fea8fb39d3dc9fb7d6b5581e1343eb1f
Linux kernel = 4.2 No fix listed
Linux kernel < 5.15.168 5.15.168
Linux kernel < 6.1.113 6.1.113
Linux kernel < 6.6.55 6.6.55
Linux kernel < 6.10.14 6.10.14
Linux kernel < 6.11.3 6.11.3
Linux kernel < 6.12 6.12
ubuntu/linux(Ubuntu:24.04) < 6.8.0-54.56 6.8.0-54.56
ubuntu/linux-raspi(Ubuntu:24.04) < 6.8.0-1019.23 6.8.0-1019.23
Linux kernel >= 5.16, < 6.1.113 6.1.113
Linux kernel >= 6.2, < 6.6.55 6.6.55
Linux kernel >= 6.7, < 6.10.14 6.10.14
Linux kernel >= 6.11, < 6.11.3 6.11.3

References