CVE-2024-27023
md: Fix missing release of 'active_io' for flush
Check your servers for CVE-2024-27023
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-27023 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:
md: Fix missing release of 'active_io' for flush
submit_flushes atomic_set(&mddev->flush_pending, 1); rdev_for_each_rcu(rdev, mddev) atomic_inc(&mddev->flush_pending); bi->bi_end_io = md_end_flush submit_bio(bi); /* flush io is done first */ md_end_flush if (atomic_dec_and_test(&mddev->flush_pending)) percpu_ref_put(&mddev->active_io) -> active_io is not released
if (atomic_dec_and_test(&mddev->flush_pending)) -> missing release of active_io
For consequence, mddev_suspend() will wait for 'active_io' to be zero forever.
Fix this problem by releasing 'active_io' in submit_flushes() if 'flush_pending' is decreased to zero.
Exploitation
EPSS 0.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 20.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 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 f9f2d957a8ea93c73182aebf7de30935a58c027d, before 6b2ff10390b19a2364af622b6666b690443f9f3f affected from 530cec617f5a8ba6f26bcbf0d64d75c951d17730, before 02dad157ba11064d073f5499dc33552b227d5d3a affected from c4c2345214b66e2505a26fd2ea58839dd7a1d48d, before 11f81438927f84edfaaeb5d5f10856c3a1c1fc82 affected from fa2bbff7b0b4e211fec5e5686ef96350690597b5, before 855678ed8534518e2b428bcbcec695de9ba248e8
Other versions: unaffected
|
| Linux |
affected from 6.1.75, before 6.1.80 affected from 6.6.14, before 6.6.19 affected from 6.7.2, before 6.7.7
Other versions: unaffected
|
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-27023 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-27023
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-27023
trivy image --scanners vuln IMAGE | grep CVE-2024-27023
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/6b2ff10390b19a2364af622b6666b690443f9f3f git.kernel.org
- https://git.kernel.org/stable/c/02dad157ba11064d073f5499dc33552b227d5d3a git.kernel.org
- https://git.kernel.org/stable/c/11f81438927f84edfaaeb5d5f10856c3a1c1fc82 git.kernel.org
- https://git.kernel.org/stable/c/855678ed8534518e2b428bcbcec695de9ba248e8 git.kernel.org
Source: the record CVE-2024-27023 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