CVE-2024-36950
firewire: ohci: mask bus reset interrupts between ISR and bottom half
Check your servers for CVE-2024-36950
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-36950 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- high: the attacker needs an administrative account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 4 Jun 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from a007bb857e0b26f5d8b73c2ff90782d9c0972620, before b3948c69d60279fce5b2eeda92a07d66296c8130 affected from a007bb857e0b26f5d8b73c2ff90782d9c0972620, before 31279bbca40d2f40cb3bbb6d538ec9620a645dec affected from a007bb857e0b26f5d8b73c2ff90782d9c0972620, before fa273f312334246c909475c5868e6daab889cc8c affected from a007bb857e0b26f5d8b73c2ff90782d9c0972620, before 4f9cc355c328fc4f41cbd9c4cd58b235184fa420 affected from a007bb857e0b26f5d8b73c2ff90782d9c0972620, before 6fafe3661712b143d9c69a7322294bd53f559d5d affected from a007bb857e0b26f5d8b73c2ff90782d9c0972620, before 5982887de60c1b84f9c0ca07c835814d07fd1da0 affected from a007bb857e0b26f5d8b73c2ff90782d9c0972620, before 8643332aac0576581cfdf01798ea3e4e0d624b61 affected from a007bb857e0b26f5d8b73c2ff90782d9c0972620, before 752e3c53de0fa3b7d817a83050b6699b8e9c6ec9
Other versions: unaffected
|
| Linux |
affected 2.6.26 unaffected before 2.6.26 unaffected from 4.19.314 up to and including 4.19.* unaffected from 5.4.276 up to and including 5.4.* unaffected from 5.10.217 up to and including 5.10.* unaffected from 5.15.159 up to and including 5.15.* unaffected from 6.1.91 up to and including 6.1.* unaffected from 6.6.31 up to and including 6.6.* unaffected from 6.8.10 up to and including 6.8.* unaffected 6.9 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-36950 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-36950
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-36950
trivy image --scanners vuln IMAGE | grep CVE-2024-36950
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/b3948c69d60279fce5b2eeda92a07d66296c8130 git.kernel.org
- https://git.kernel.org/stable/c/31279bbca40d2f40cb3bbb6d538ec9620a645dec git.kernel.org
- https://git.kernel.org/stable/c/fa273f312334246c909475c5868e6daab889cc8c git.kernel.org
- https://git.kernel.org/stable/c/4f9cc355c328fc4f41cbd9c4cd58b235184fa420 git.kernel.org
- https://git.kernel.org/stable/c/6fafe3661712b143d9c69a7322294bd53f559d5d git.kernel.org
- https://git.kernel.org/stable/c/5982887de60c1b84f9c0ca07c835814d07fd1da0 git.kernel.org
- https://git.kernel.org/stable/c/8643332aac0576581cfdf01798ea3e4e0d624b61 git.kernel.org
- https://git.kernel.org/stable/c/752e3c53de0fa3b7d817a83050b6699b8e9c6ec9 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html lists.debian.org
Source: the record CVE-2024-36950 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse