CVE-2025-38451
md/md-bitmap: fix GPF in bitmap_get_stats()
Check your servers for CVE-2025-38451
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-2025-38451 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/md-bitmap: fix GPF in bitmap_get_stats()
The commit message of commit 6ec1f0239485 ("md/md-bitmap: fix stats collection for external bitmaps") states:
Remove the external bitmap check as the statistics should be available regardless of bitmap storage location.
Return -EINVAL only for invalid bitmap with no storage (neither in superblock nor in external file).
But, the code does not adhere to the above, as it does only check for a valid super-block for "internal" bitmaps. Hence, we observe:
Oops: GPF, probably for non-canonical address 0x1cd66f1f40000028 RIP: 0010:bitmap_get_stats+0x45/0xd0 Call Trace:
seq_read_iter+0x2b9/0x46a seq_read+0x12f/0x180 proc_reg_read+0x57/0xb0 vfs_read+0xf6/0x380 ksys_read+0x6d/0xf0 do_syscall_64+0x8c/0x1b0 entry_SYSCALL_64_after_hwframe+0x76/0x7e
We fix this by checking the existence of a super-block for both the internal and external case.
Exploitation
EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 8.23% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 065f4b1cd41d03702426af44193894b925607073, before a23b16ba3274961494f5ad236345d238364349ff affected from 0b5390aeaa85eb2f15e0e2ea0731c0995285db5e, before 3d82a729530bd2110ba66e4a1f73461c776edec2 affected from eeeba7f43ae27835718a5f5ad6552a8983e75201, before 3e0542701b37aa25b025d8531583458e4f014c2e affected from 6ec1f0239485028445d213d91cfee5242f3211ba, before a18f9b08c70e10ea3a897058fee8a4f3b4c146ec affected from 6ec1f0239485028445d213d91cfee5242f3211ba, before c17fb542dbd1db745c9feac15617056506dd7195 affected 896a6fbefc9050cf940ed57947eda6dc23aa58b0 affected from 6.1.135, before 6.1.146 affected from 6.6.88, before 6.6.99 affected from 6.12.25, before 6.12.39 affected from 6.14.4, before 6.15
Other versions: unaffected
|
| Linux |
affected 6.15 unaffected before 6.15 unaffected from 6.1.146 up to and including 6.1.* unaffected from 6.6.99 up to and including 6.6.* unaffected from 6.12.39 up to and including 6.12.* unaffected from 6.15.7 up to and including 6.15.* unaffected 6.16 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-2025-38451 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38451
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-2025-38451
trivy image --scanners vuln IMAGE | grep CVE-2025-38451
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/a23b16ba3274961494f5ad236345d238364349ff git.kernel.org
- https://git.kernel.org/stable/c/3d82a729530bd2110ba66e4a1f73461c776edec2 git.kernel.org
- https://git.kernel.org/stable/c/3e0542701b37aa25b025d8531583458e4f014c2e git.kernel.org
- https://git.kernel.org/stable/c/a18f9b08c70e10ea3a897058fee8a4f3b4c146ec git.kernel.org
- https://git.kernel.org/stable/c/c17fb542dbd1db745c9feac15617056506dd7195 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html cert-portal.siemens.com
Source: the record CVE-2025-38451 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse