CVE-2024-37078
nilfs2: fix potential kernel bug due to lack of writeback flag waiting
Check your servers for CVE-2024-37078
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-37078 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:
nilfs2: fix potential kernel bug due to lack of writeback flag waiting
Destructive writes to a block device on which nilfs2 is mounted can cause a kernel bug in the folio/page writeback start routine or writeback end routine (__folio_start_writeback in the log below):
kernel BUG at mm/page-writeback.c:3070! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI ... RIP: 0010:__folio_start_writeback+0xbaa/0x10e0 Code: 25 ff 0f 00 00 0f 84 18 01 00 00 e8 40 ca c6 ff e9 17 f6 ff ff e8 36 ca c6 ff 4c 89 f7 48 c7 c6 80 c0 12 84 e8 e7 b3 0f 00 90 <0f> 0b e8 1f ca c6 ff 4c 89 f7 48 c7 c6 a0 c6 12 84 e8 d0 b3 0f 00 ... Call Trace: <TASK> nilfs_segctor_do_construct+0x4654/0x69d0 [nilfs2] nilfs_segctor_construct+0x181/0x6b0 [nilfs2] nilfs_segctor_thread+0x548/0x11c0 [nilfs2] kthread+0x2f0/0x390 ret_from_fork+0x4b/0x80 ret_from_fork_asm+0x1a/0x30 </TASK>
This is because when the log writer starts a writeback for segment summary blocks or a super root block that use the backing device's page cache, it does not wait for the ongoing folio/page writeback, resulting in an inconsistent writeback state.
Fix this issue by waiting for ongoing writebacks when putting folios/pages on the backing device into writeback state.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, 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.4% 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 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453, before 95f6f81e50d858a7c9aa7c795ec14a0ac3819118 affected from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453, before a75b8f493dfc48aa38c518430bd9e03b53bffebe affected from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453, before 0ecfe3a92869a59668d27228dabbd7965e83567f affected from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453, before 33900d7eae616647e179eee1c66ebe654ee39627 affected from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453, before 271dcd977ccda8c7a26e360425ae7b4db7d2ecc0 affected from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453, before 614d397be0cf43412b3f94a0f6460eddced8ce92 affected from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453, before 1f3bff69f1214fe03a02bc650d5bbfaa6e65ae7d affected from 9ff05123e3bfbb1d2b68ba1d9bf1f7d1dffc1453, before a4ca369ca221bb7e06c725792ac107f0e48e82e7
Other versions: unaffected
|
| Linux |
affected 2.6.30 unaffected before 2.6.30 unaffected from 4.19.317 up to and including 4.19.* unaffected from 5.4.279 up to and including 5.4.* unaffected from 5.10.221 up to and including 5.10.* unaffected from 5.15.162 up to and including 5.15.* unaffected from 6.1.95 up to and including 6.1.* unaffected from 6.6.35 up to and including 6.6.* unaffected from 6.9.5 up to and including 6.9.* unaffected 6.10 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-37078 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-37078
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-37078
trivy image --scanners vuln IMAGE | grep CVE-2024-37078
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/95f6f81e50d858a7c9aa7c795ec14a0ac3819118 git.kernel.org
- https://git.kernel.org/stable/c/a75b8f493dfc48aa38c518430bd9e03b53bffebe git.kernel.org
- https://git.kernel.org/stable/c/0ecfe3a92869a59668d27228dabbd7965e83567f git.kernel.org
- https://git.kernel.org/stable/c/33900d7eae616647e179eee1c66ebe654ee39627 git.kernel.org
- https://git.kernel.org/stable/c/271dcd977ccda8c7a26e360425ae7b4db7d2ecc0 git.kernel.org
- https://git.kernel.org/stable/c/614d397be0cf43412b3f94a0f6460eddced8ce92 git.kernel.org
- https://git.kernel.org/stable/c/1f3bff69f1214fe03a02bc650d5bbfaa6e65ae7d git.kernel.org
- https://git.kernel.org/stable/c/a4ca369ca221bb7e06c725792ac107f0e48e82e7 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
Source: the record CVE-2024-37078 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