Skip to content

CVE-2024-36950 firewire: ohci: mask bus reset interrupts between ISR and bottom half

MediumCVSS 4.4 EPSS 0.26%
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:

firewire: ohci: mask bus reset interrupts between ISR and bottom half

In the FireWire OHCI interrupt handler, if a bus reset interrupt has
occurred, mask bus reset interrupts until bus_reset_work has serviced and
cleared the interrupt.

Normally, we always leave bus reset interrupts masked. We infer the bus
reset from the self-ID interrupt that happens shortly thereafter. A
scenario where we unmask bus reset interrupts was introduced in 2008 in
a007bb857e0b26f5d8b73c2ff90782d9c0972620: If
OHCI_PARAM_DEBUG_BUSRESETS (8) is set in the debug parameter bitmask, we
will unmask bus reset interrupts so we can log them.

irq_handler logs the bus reset interrupt. However, we can't clear the bus
reset event flag in irq_handler, because we won't service the event until
later. irq_handler exits with the event flag still set. If the
corresponding interrupt is still unmasked, the first bus reset will
usually freeze the system due to irq_handler being called again each
time it exits. This freeze can be reproduced by loading firewire_ohci
with "modprobe firewire_ohci debug=-1" (to enable all debugging output).
Apparently there are also some cases where bus_reset_work will get called
soon enough to clear the event, and operation will continue normally.

This freeze was first reported a few months after a007bb85 was committed,
but until now it was never fixed. The debug level could safely be set
to -1 through sysfs after the module was loaded, but this would be
ineffectual in logging bus reset interrupts since they were only
unmasked during initialization.

irq_handler will now leave the event flag set but mask bus reset
interrupts, so irq_handler won't be called again and there will be no
freeze. If OHCI_PARAM_DEBUG_BUSRESETS is enabled, bus_reset_work will
unmask the interrupt after servicing the event, so future interrupts
will be caught as desired.

As a side effect to this change, OHCI_PARAM_DEBUG_BUSRESETS can now be
enabled through sysfs in addition to during initial module loading.
However, when enabled through sysfs, logging of bus reset interrupts will
be effective only starting with the second bus reset, after
bus_reset_work has executed.

Upgrade path

10 packages: 9 fixed.

PackageAffectedFixed inStatus
debian/linux(Debian 12) < 6.1.94-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +20 more 6.1.94-1 Fixed
debian/linux(Debian 13) < 6.8.11-1 6.8.11-1 Fixed
debian/linux(Debian 14) < 6.8.11-1 6.8.11-1 Fixed
Linux kernel < 4.19.314; < 5.4.276; < 5.10.217; < 5.15.159 +21 more 4.19.314, 4f9cc355c328fc4f41cbd9c4cd58b235184fa420, 5.4.276, 5.10.217, 5.15.159, 6.1.91, 6.6.31, 6.8.10, 6.9, 6fafe3661712b143d9c69a7322294bd53f559d5d, 752e3c53de0fa3b7d817a83050b6699b8e9c6ec9, 31279bbca40d2f40cb3bbb6d538ec9620a645dec, 5982887de60c1b84f9c0ca07c835814d07fd1da0, 8643332aac0576581cfdf01798ea3e4e0d624b61, b3948c69d60279fce5b2eeda92a07d66296c8130, fa273f312334246c909475c5868e6daab889cc8c Fixed
ubuntu/linux(Ubuntu 22.04) < 5.15.0-118.128 5.15.0-118.128 Fixed
ubuntu/linux(Ubuntu 24.04) < 6.8.0-40.40 6.8.0-40.40 Fixed
ubuntu/linux-kvm(Ubuntu 22.04) < 5.15.0-1064.69 5.15.0-1064.69 Fixed
ubuntu/linux-raspi(Ubuntu 22.04) < 5.15.0-1060.63 5.15.0-1060.63 Fixed
ubuntu/linux-raspi(Ubuntu 24.04) < 6.8.0-1009.10 6.8.0-1009.10 Fixed
debian linux = 10.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/linux(Debian:12) < 6.1.94-1 6.1.94-1
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
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~bpo11+1 No fix listed
debian/linux(Debian:13) < 6.8.11-1 6.8.11-1
Show 32 more
ProductAffected versionsFixed in
debian/linux(Debian:14) < 6.8.11-1 6.8.11-1
ubuntu/linux(Ubuntu:22.04) < 5.15.0-118.128 5.15.0-118.128
ubuntu/linux-kvm(Ubuntu:22.04) < 5.15.0-1064.69 5.15.0-1064.69
ubuntu/linux-raspi(Ubuntu:22.04) < 5.15.0-1060.63 5.15.0-1060.63
Linux kernel >= a007bb857e0b26f5d8b73c2ff90782d9c0972620, < b3948c69d60279fce5b2eeda92a07d66296c8130 b3948c69d60279fce5b2eeda92a07d66296c8130
Linux kernel >= a007bb857e0b26f5d8b73c2ff90782d9c0972620, < 31279bbca40d2f40cb3bbb6d538ec9620a645dec 31279bbca40d2f40cb3bbb6d538ec9620a645dec
Linux kernel >= a007bb857e0b26f5d8b73c2ff90782d9c0972620, < fa273f312334246c909475c5868e6daab889cc8c fa273f312334246c909475c5868e6daab889cc8c
Linux kernel >= a007bb857e0b26f5d8b73c2ff90782d9c0972620, < 4f9cc355c328fc4f41cbd9c4cd58b235184fa420 4f9cc355c328fc4f41cbd9c4cd58b235184fa420
Linux kernel >= a007bb857e0b26f5d8b73c2ff90782d9c0972620, < 6fafe3661712b143d9c69a7322294bd53f559d5d 6fafe3661712b143d9c69a7322294bd53f559d5d
Linux kernel >= a007bb857e0b26f5d8b73c2ff90782d9c0972620, < 5982887de60c1b84f9c0ca07c835814d07fd1da0 5982887de60c1b84f9c0ca07c835814d07fd1da0
Linux kernel >= a007bb857e0b26f5d8b73c2ff90782d9c0972620, < 8643332aac0576581cfdf01798ea3e4e0d624b61 8643332aac0576581cfdf01798ea3e4e0d624b61
Linux kernel >= a007bb857e0b26f5d8b73c2ff90782d9c0972620, < 752e3c53de0fa3b7d817a83050b6699b8e9c6ec9 752e3c53de0fa3b7d817a83050b6699b8e9c6ec9
Linux kernel = 2.6.26 No fix listed
Linux kernel < 4.19.314 4.19.314
Linux kernel < 5.4.276 5.4.276
Linux kernel < 5.10.217 5.10.217
Linux kernel < 5.15.159 5.15.159
Linux kernel < 6.1.91 6.1.91
Linux kernel < 6.6.31 6.6.31
Linux kernel < 6.8.10 6.8.10
Linux kernel < 6.9 6.9
ubuntu/linux(Ubuntu:24.04) < 6.8.0-40.40 6.8.0-40.40
ubuntu/linux-raspi(Ubuntu:24.04) < 6.8.0-1009.10 6.8.0-1009.10
Linux kernel >= 4.20, < 5.4.276 5.4.276
Linux kernel >= 5.5, < 5.10.217 5.10.217
Linux kernel >= 5.11, < 5.15.159 5.15.159
Linux kernel >= 5.16, < 6.1.91 6.1.91
Linux kernel >= 6.2, < 6.6.31 6.6.31
Linux kernel >= 6.7, < 6.8.10 6.8.10
Linux kernel = 6.9-rc1 No fix listed
Linux kernel = 6.9-rc2 No fix listed
debian linux = 10.0 No fix listed

References