CVE-2025-38451
Medium · 5.5CVSS
5.5
EPSS
0.2%
Published
Jul 25, 2025
CISA due date
—
Cloudanix analysis
A bug in the Linux kernel's handling of certain RAID storage statistics can make the whole system crash when those statistics are read.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- OS kernel
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Missing super-block existence check for external bitmaps in bitmap_get_stats() causes dereference of an invalid pointer (non-canonical address), resulting in a general protection fault and kernel oops during seq_read on procfs stats.
Why it matters to the business
Leads to system crashes and denial of service on Linux servers or devices using md RAID with external bitmaps; widespread kernel exposure increases operational risk across servers, embedded systems, and distributions, though low EPSS and no KEV status indicate limited active exploitation pressure.
How an attack unfolds
A local attacker with unprivileged access reads the bitmap statistics file (via /proc or seq_read paths) on a system configured with an external bitmap lacking a super-block; this triggers the unchecked pointer access and crashes the kernel. Threat actor mentions of Linux kernel privilege escalation campaigns highlight related kernel attack interest but this flaw yields only availability impact.
How to fix it
Upgrade the Linux kernel to 6.1.146 or apply commit a23b16ba3274961494f5ad236345d238364349ff; for affected Debian packages update webkit2gtk/wpewebkit to 2.48.5-1 or the corresponding backports 2.48.5-1~deb12u1 / 2.48.5-1~deb13u1.
How to confirm the fix worked
Verify running kernel version is at or above the listed fixed releases, confirm the patch commit is present in the source tree, and test that bitmap_get_stats no longer oopses on external bitmap configurations.
Typical attack path
- Obtain local user or process access on an affected Linux system
- Configure or encounter an md device using an external bitmap without super-block storage
- Trigger bitmap stats collection through procfs read or seq_read_iter
- Cause kernel GPF and system instability or reboot
How to detect it
Search kernel logs and dmesg for oops messages containing bitmap_get_stats and RIP references to that function; inspect /proc/mdstat or bitmap-related procfs entries on systems with external bitmaps; correlate with threat actor activity around Linux kernel privilege escalation campaigns.
- bitmap_get_stats+0x45/0xd0
- Oops: GPF, probably for non-canonical address
- seq_read_iter.*bitmap_get_stats
What your security team should do
- Apply kernel updates to 6.1.146 or patched commit within standard change windows given moderate CVSS and low EPSS
- Audit systems for md RAID configurations using external bitmaps
- Monitor kernel logs for bitmap-related oopses as an interim detection measure
- Track EPSS trend for any future increase that may warrant expedited patching
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:12 | linux | 0 | 6.1.147-1 |
| Debian:13 | linux | 0 | 6.12.41-1 |
| Debian:14 | linux | 0 | No fix |
| Debian:14 | linux | 0 | 6.16.3-1 |
| Linux | Kernel | 0 | 6.1.146 |
| Mageia:9 | kernel | 0 | 6.6.101-1.mga9 |
| Mageia:9 | kernel-linus | 0 | 6.6.101-1.mga9 |
| Mageia:9 | kmod-virtualbox | 0 | 7.1.10-7.mga9 |
| Mageia:9 | kmod-xtables-addons | 0 | 3.24-83.mga9 |
| Mageia:9 | wireless-regdb | 0 | 20250710-1.mga9 |
| openSUSE:Leap 16.0 | dtb-aarch64 | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-64kb | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-default | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-default-base | 0 | 6.12.0-160000.6.1.160000.2.4 |
| openSUSE:Leap 16.0 | kernel-docs | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-kvmsmall | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-obs-build | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-obs-qa | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-rt | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-source | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-syms | 0 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-zfcpdump | 0 | 6.12.0-160000.6.1 |
Related vulnerabilities
- CVE-2025-39885 In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix recursive… Also affects linux
- CVE-2025-39883 In the Linux kernel, the following vulnerability has been resolved: mm/memory-failure… Also affects linux
- CVE-2025-39886 In the Linux kernel, the following vulnerability has been resolved: bpf: Tell memcg to… Also affects linux
- CVE-2025-39876 In the Linux kernel, the following vulnerability has been resolved: net: fec: Fix… Also affects linux
- CVE-2025-39880 In the Linux kernel, the following vulnerability has been resolved: libceph: fix invalid… Also affects linux
- CVE-2025-39881 In the Linux kernel, the following vulnerability has been resolved: kernfs: Fix UAF in… Also affects linux
- CVE-2025-39877 In the Linux kernel, the following vulnerability has been resolved: mm/damon/sysfs: fix… Also affects linux
- CVE-2025-39871 In the Linux kernel, the following vulnerability has been resolved: dmaengine: idxd… Also affects linux