# CVE-2022-50211: md-raid10: fix KASAN warning

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-06-18T11:03:49.739Z
- **Modified:** 2026-06-17T05:22:59.217Z

## Who should check

- Anyone running Linux \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< 75fbd370a2cec9e92f48285bd90735ed0c837f52; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< bcbdc26a44aba488d2f7122f2d66801bccb74733; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< 7a6ccc8fa192fd357c2d5d4c6ce67c834a179e23; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< ce839b9331c11780470f3d727b6fe3c2794a4620; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< 5fd4ffa2372a41361d2bdd27ea5730e4e673240c; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< 0f4d18cbea4a6e37a05fd8ee2887439f85211110; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< bf30b9ba09b0ac2a10f04dce2b0835ec4d178aa6; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< 5f57843565131bb782388f9d993f9ee8f453dee1; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< d17f744e883b2f8d13cca252d71cfe8ace346f7d
- Anyone running Linux 3.3

## Description

In the Linux kernel, the following vulnerability has been resolved:

md-raid10: fix KASAN warning

There's a KASAN warning in raid10\_remove\_disk when running the lvm
test lvconvert-raid-reshape.sh. We fix this warning by verifying that the
value "number" is valid.

BUG: KASAN: slab-out-of-bounds in raid10\_remove\_disk+0x61/0x2a0 \[raid10\]
Read of size 8 at addr ffff889108f3d300 by task mdX\_raid10/124682

CPU: 3 PID: 124682 Comm: mdX\_raid10 Not tainted 5.19.0-rc6 \#1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0x34/0x44
 print\_report.cold+0x45/0x57a
 ? \_\_lock\_text\_start+0x18/0x18
 ? raid10\_remove\_disk+0x61/0x2a0 \[raid10\]
 kasan\_report+0xa8/0xe0
 ? raid10\_remove\_disk+0x61/0x2a0 \[raid10\]
 raid10\_remove\_disk+0x61/0x2a0 \[raid10\]
Buffer I/O error on dev dm-76, logical block 15344, async page read
 ? \_\_mutex\_unlock\_slowpath.constprop.0+0x1e0/0x1e0
 remove\_and\_add\_spares+0x367/0x8a0 \[md\_mod\]
 ? super\_written+0x1c0/0x1c0 \[md\_mod\]
 ? mutex\_trylock+0xac/0x120
 ? \_raw\_spin\_lock+0x72/0xc0
 ? \_raw\_spin\_lock\_bh+0xc0/0xc0
 md\_check\_recovery+0x848/0x960 \[md\_mod\]
 raid10d+0xcf/0x3360 \[raid10\]
 ? sched\_clock\_cpu+0x185/0x1a0
 ? rb\_erase+0x4d4/0x620
 ? var\_wake\_function+0xe0/0xe0
 ? psi\_group\_change+0x411/0x500
 ? preempt\_count\_sub+0xf/0xc0
 ? \_raw\_spin\_lock\_irqsave+0x78/0xc0
 ? \_\_lock\_text\_start+0x18/0x18
 ? raid10\_sync\_request+0x36c0/0x36c0 \[raid10\]
 ? preempt\_count\_sub+0xf/0xc0
 ? \_raw\_spin\_unlock\_irqrestore+0x19/0x40
 ? del\_timer\_sync+0xa9/0x100
 ? try\_to\_del\_timer\_sync+0xc0/0xc0
 ? \_raw\_spin\_lock\_irqsave+0x78/0xc0
 ? \_\_lock\_text\_start+0x18/0x18
 ? \_raw\_spin\_unlock\_irq+0x11/0x24
 ? \_\_list\_del\_entry\_valid+0x68/0xa0
 ? finish\_wait+0xa3/0x100
 md\_thread+0x161/0x260 \[md\_mod\]
 ? unregister\_md\_personality+0xa0/0xa0 \[md\_mod\]
 ? \_raw\_spin\_lock\_irqsave+0x78/0xc0
 ? prepare\_to\_wait\_event+0x2c0/0x2c0
 ? unregister\_md\_personality+0xa0/0xa0 \[md\_mod\]
 kthread+0x148/0x180
 ? kthread\_complete\_and\_exit+0x20/0x20
 ret\_from\_fork+0x1f/0x30
 \</TASK\>

Allocated by task 124495:
 kasan\_save\_stack+0x1e/0x40
 \_\_kasan\_kmalloc+0x80/0xa0
 setup\_conf+0x140/0x5c0 \[raid10\]
 raid10\_run+0x4cd/0x740 \[raid10\]
 md\_run+0x6f9/0x1300 \[md\_mod\]
 raid\_ctr+0x2531/0x4ac0 \[dm\_raid\]
 dm\_table\_add\_target+0x2b0/0x620 \[dm\_mod\]
 table\_load+0x1c8/0x400 \[dm\_mod\]
 ctl\_ioctl+0x29e/0x560 \[dm\_mod\]
 dm\_compat\_ctl\_ioctl+0x7/0x20 \[dm\_mod\]
 \_\_do\_compat\_sys\_ioctl+0xfa/0x160
 do\_syscall\_64+0x90/0xc0
 entry\_SYSCALL\_64\_after\_hwframe+0x46/0xb0

Last potentially related work creation:
 kasan\_save\_stack+0x1e/0x40
 \_\_kasan\_record\_aux\_stack+0x9e/0xc0
 kvfree\_call\_rcu+0x84/0x480
 timerfd\_release+0x82/0x140
L \_\_fput+0xfa/0x400
 task\_work\_run+0x80/0xc0
 exit\_to\_user\_mode\_prepare+0x155/0x160
 syscall\_exit\_to\_user\_mode+0x12/0x40
 do\_syscall\_64+0x42/0xc0
 entry\_SYSCALL\_64\_after\_hwframe+0x46/0xb0

Second to last potentially related work creation:
 kasan\_save\_stack+0x1e/0x40
 \_\_kasan\_record\_aux\_stack+0x9e/0xc0
 kvfree\_call\_rcu+0x84/0x480
 timerfd\_release+0x82/0x140
 \_\_fput+0xfa/0x400
 task\_work\_run+0x80/0xc0
 exit\_to\_user\_mode\_prepare+0x155/0x160
 syscall\_exit\_to\_user\_mode+0x12/0x40
 do\_syscall\_64+0x42/0xc0
 entry\_SYSCALL\_64\_after\_hwframe+0x46/0xb0

The buggy address belongs to the object at ffff889108f3d200
 which belongs to the cache kmalloc-256 of size 256
The buggy address is located 0 bytes to the right of
 256-byte region \[ffff889108f3d200, ffff889108f3d300)

The buggy address belongs to the physical page:
page:000000007ef2a34c refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1108f3c
head:000000007ef2a34c order:2 compound\_mapcount:0 compound\_pincount:0
flags: 0x4000000000010200(slab\|head\|zone=2)
raw: 4000000000010200 0000000000000000 dead000000000001 ffff889100042b40
raw: 0000000000000000 0000000080200020 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff889108f3d200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff889108f3d280: 00 00
---truncated---

## Affected and fixed versions

- Linux: \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< 75fbd370a2cec9e92f48285bd90735ed0c837f52; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< bcbdc26a44aba488d2f7122f2d66801bccb74733; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< 7a6ccc8fa192fd357c2d5d4c6ce67c834a179e23; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< ce839b9331c11780470f3d727b6fe3c2794a4620; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< 5fd4ffa2372a41361d2bdd27ea5730e4e673240c; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< 0f4d18cbea4a6e37a05fd8ee2887439f85211110; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< bf30b9ba09b0ac2a10f04dce2b0835ec4d178aa6; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< 5f57843565131bb782388f9d993f9ee8f453dee1; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< d17f744e883b2f8d13cca252d71cfe8ace346f7d (cvelist)
- Linux: 3.3 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50211. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50211.md
Affected: Linux >= b8321b68d1445f308324517e45fb0a5c2b48e271, < 75fbd370a2cec9e92f48285bd90735ed0c837f52; >= b8321b68d1445f308324517e45fb0a5c2b48e271, < bcbdc26a44aba488d2f7122f2d66801bccb74733; >= b8321b68d1445f308324517e45fb0a5c2b48e271, < 7a6ccc8fa192fd357c2d5d4c6ce67c834a179e23; >= b8321b68d1445f308324517…
Fixed in: Linux 75fbd370a2cec9e92f48285bd90735ed0c837f52, Linux 7a6ccc8fa192fd357c2d5d4c6ce67c834a179e23, Linux 5fd4ffa2372a41361d2bdd27ea5730e4e673240c, Linux 0f4d18cbea4a6e37a05fd8ee2887439f85211110, Linux 5f57843565131bb782388f9d993f9ee8f453dee1

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.
```

## FAQ

### Is CVE-2022-50211 being exploited?

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

### How serious is CVE-2022-50211?

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

### Which versions are affected by CVE-2022-50211?

Linux \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< 75fbd370a2cec9e92f48285bd90735ed0c837f52; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< bcbdc26a44aba488d2f7122f2d66801bccb74733; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< 7a6ccc8fa192fd357c2d5d4c6ce67c834a179e23; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< ce839b9331c11780470f3d727b6fe3c2794a4620; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< 5fd4ffa2372a41361d2bdd27ea5730e4e673240c; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< 0f4d18cbea4a6e37a05fd8ee2887439f85211110; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< bf30b9ba09b0ac2a10f04dce2b0835ec4d178aa6; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< 5f57843565131bb782388f9d993f9ee8f453dee1; \>= b8321b68d1445f308324517e45fb0a5c2b48e271, \< d17f744e883b2f8d13cca252d71cfe8ace346f7d; Linux 3.3.

### Is there a fix for CVE-2022-50211?

Yes. Fixed in Linux 75fbd370a2cec9e92f48285bd90735ed0c837f52, Linux 7a6ccc8fa192fd357c2d5d4c6ce67c834a179e23, Linux 5fd4ffa2372a41361d2bdd27ea5730e4e673240c, Linux 0f4d18cbea4a6e37a05fd8ee2887439f85211110, Linux 5f57843565131bb782388f9d993f9ee8f453dee1. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50211?

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.

## References

- patch: <https://git.kernel.org/stable/c/75fbd370a2cec9e92f48285bd90735ed0c837f52>
- patch: <https://git.kernel.org/stable/c/bcbdc26a44aba488d2f7122f2d66801bccb74733>
- patch: <https://git.kernel.org/stable/c/7a6ccc8fa192fd357c2d5d4c6ce67c834a179e23>
- patch: <https://git.kernel.org/stable/c/ce839b9331c11780470f3d727b6fe3c2794a4620>
- patch: <https://git.kernel.org/stable/c/5fd4ffa2372a41361d2bdd27ea5730e4e673240c>
- patch: <https://git.kernel.org/stable/c/0f4d18cbea4a6e37a05fd8ee2887439f85211110>
- patch: <https://git.kernel.org/stable/c/bf30b9ba09b0ac2a10f04dce2b0835ec4d178aa6>
- patch: <https://git.kernel.org/stable/c/5f57843565131bb782388f9d993f9ee8f453dee1>
- patch: <https://git.kernel.org/stable/c/d17f744e883b2f8d13cca252d71cfe8ace346f7d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50211>

HTML: <https://flawdb.com/CVE-2022-50211> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50211>
