🛡️ CVE-2025-22126 on Debian — linux
Description
In the Linux kernel, the following vulnerability has been resolved: md: fix mddev uaf while iterating all_mddevs list While iterating all_mddevs list from md_notify_reboot() and md_exit(), list_for_each_entry_safe is used, and this can race with deletint the next mddev, causing UAF: t1: spin_lock //list_for_each_entry_safe(mddev, n, ...) mddev_get(mddev1) // assume mddev2 is the next entry spin_unlock t2: //remove mddev2 ... mddev_free spin_lock list_del spin_unlock kfree(mddev2) mddev_put(mddev1) spin_lock //continue dereference mddev2->all_mddevs The old helper for_each_mddev() actually grab the reference of mddev2 while holding the lock, to prevent from being freed. This problem can be fixed the same way, however, the code will be complex. Hence switch to use list_for_each_entry, in this case mddev_put() can free the mddev1 and it's not safe as well. Refer to md_seq_show(), also factor out a helper mddev_put_locked() to fix this problem.
Distribution advisory
This page covers CVE-2025-22126 as tracked by Debian, for the package linux. The fix is available in version 6.12.22-1; earlier versions remain affected.
How this vulnerability can be exploited
This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.
Affected software
DEBIAN-CVE-2025-22126 is recorded against 2 packages.
- linux (fixed in 6.12.22-1)
- linux-6.1 (fixed in 6.1.137-1~deb11u1)
Timeline and source
Published on 16 April 2025 and last revised on 4 August 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
CVE-2025-22126 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| linux | — | 6.12.22-1 |
| linux-6.1 | — | 6.1.137-1~deb11u1 |
References
Similar Threats
- Unknown CGA-23jx-hhcx-m389
- Unknown CGA-2qp7-6757-fmgc
- Unknown CGA-2rj5-jc55-r267
- Unknown CGA-3m96-cwq8-6xmx
- Unknown CGA-3qj9-973w-fh9g
More DEBIAN CVE 2025 advisories
Browse all of DEBIAN CVE 2025 in the advisory index.
- DEBIAN-CVE-2025-22118
- DEBIAN-CVE-2025-22119
- DEBIAN-CVE-2025-22120
- DEBIAN-CVE-2025-22121
- DEBIAN-CVE-2025-22122
- DEBIAN-CVE-2025-22123
- DEBIAN-CVE-2025-22124
- DEBIAN-CVE-2025-22125
- DEBIAN-CVE-2025-22127
- DEBIAN-CVE-2025-22128
- DEBIAN-CVE-2025-22134
- DEBIAN-CVE-2025-22145
- DEBIAN-CVE-2025-22150
- DEBIAN-CVE-2025-22153
- DEBIAN-CVE-2025-22233
- DEBIAN-CVE-2025-22247
Site Security Check
Is linux part of your stack?
DEBIAN-CVE-2025-22126 is rated CVSS 7.8 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.