Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-21712

HIGH 7.8EPSS 16%

md/md-bitmap: Synchronize bitmap_get_stats() with bitmap lifetime

Mitigation

  • Upgrade Linux to 8d28d0ddb986f56920ac97ae704cc3340a699a30 or later.

Who should check

  • Anyone running Linux >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < eb2f9d98cd3e94a79fbf8fb90637c5b12e805428; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 032fa54f486eac5507976e7e31f079a767bc13a8; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 52848a095b55a302af92f52ca0de5b3112059bb8; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 237e19519c8ff6949f0ef57c4a0243f5b2b0fa18; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 4e9316eee3885bfb311b4759513f2ccf37891c09; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 8d28d0ddb986f56920ac97ae704cc3340a699a30
  • Anyone running Linux 2.6.13

Vulnerability facts

Affected
Linux >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < eb2f9d98cd3e94a79fbf8fb90637c5b12e805428; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 032fa54f486eac5507976e7e31f079a767bc13a8; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 52848a095b55a302af92f52ca0de5b3112059bb8; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 237e19519c8ff6949f0ef57c4a0243f5b2b0fa18; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 4e9316eee3885bfb311b4759513f2ccf37891c09; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 8d28d0ddb986f56920ac97ae704cc3340a699a30; Linux 2.6.13
Fixed in
Linux 032fa54f486eac5507976e7e31f079a767bc13a8, Linux 52848a095b55a302af92f52ca0de5b3112059bb8, Linux 237e19519c8ff6949f0ef57c4a0243f5b2b0fa18, Linux 4e9316eee3885bfb311b4759513f2ccf37891c09, Linux 8d28d0ddb986f56920ac97ae704cc3340a699a30
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: md/md-bitmap: Synchronize bitmap_get_stats() with bitmap lifetime After commit ec6bb299c7c3 ("md/md-bitmap: add 'sync_size' into struct md_bitmap_stats"), following panic is reported: Oops: general protection fault, probably for non-canonical address RIP: 0010:bitmap_get_stats+0x2b/0xa0 Call Trace: <TASK> md_seq_show+0x2d2/0x5b0 seq_read_iter+0x2b9/0x470 seq_read+0x12f/0x180 proc_reg_read+0x57/0xb0 vfs_read+0xf6/0x380 ksys_read+0x6c/0xf0 do_syscall_64+0x82/0x170 entry_SYSCALL_64_after_hwframe+0x76/0x7e Root cause is that bitmap_get_stats() can be called at anytime if mddev is still there, even if bitmap is destroyed, or not fully initialized. Deferenceing bitmap in this case can crash the kernel. Meanwhile, the above commit start to deferencing bitmap->storage, make the problem easier to trigger. Fix the problem by protecting bitmap_get_stats() with bitmap_info.mutex.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < eb2f9d98cd3e94a79fbf8fb90637c5b12e805428; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 032fa54f486eac5507976e7e31f079a767bc13a8; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 52848a095b55a302af92f52ca0de5b3112059bb8; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 237e19519c8ff6949f0ef57c4a0243f5b2b0fa18; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 4e9316eee3885bfb311b4759513f2ccf37891c09; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 8d28d0ddb986f56920ac97ae704cc3340a699a30—cvelist
Linux2.6.13—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-21712. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21712.md
Affected: Linux >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < eb2f9d98cd3e94a79fbf8fb90637c5b12e805428; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 032fa54f486eac5507976e7e31f079a767bc13a8; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 52848a095b55a302af92f52ca0de5b3112059bb8; >= 32a7627cf3a35396a8e834f…
Fixed in: Linux 032fa54f486eac5507976e7e31f079a767bc13a8, Linux 52848a095b55a302af92f52ca0de5b3112059bb8, Linux 237e19519c8ff6949f0ef57c4a0243f5b2b0fa18, Linux 4e9316eee3885bfb311b4759513f2ccf37891c09, Linux 8d28d0ddb986f56920ac97ae704cc3340a699a30

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-21712 being exploited?

There is no confirmed exploitation: CVE-2025-21712 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-21712?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-21712?

Linux >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < eb2f9d98cd3e94a79fbf8fb90637c5b12e805428; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 032fa54f486eac5507976e7e31f079a767bc13a8; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 52848a095b55a302af92f52ca0de5b3112059bb8; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 237e19519c8ff6949f0ef57c4a0243f5b2b0fa18; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 4e9316eee3885bfb311b4759513f2ccf37891c09; >= 32a7627cf3a35396a8e834faf34e38ae9f3b1309, < 8d28d0ddb986f56920ac97ae704cc3340a699a30; Linux 2.6.13.

Is there a fix for CVE-2025-21712?

Yes. Fixed in Linux 032fa54f486eac5507976e7e31f079a767bc13a8, Linux 52848a095b55a302af92f52ca0de5b3112059bb8, Linux 237e19519c8ff6949f0ef57c4a0243f5b2b0fa18, Linux 4e9316eee3885bfb311b4759513f2ccf37891c09, Linux 8d28d0ddb986f56920ac97ae704cc3340a699a30. Upgrade Linux to 8d28d0ddb986f56920ac97ae704cc3340a699a30 or later.

How do I check if I'm affected by CVE-2025-21712?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors