Skip to content
Fencer Vulns
high 7.1

CVE-2022-50211 json

md-raid10: fix KASAN warning

published 2025-06-18 16 mo ago modified 2026-06-17 4 mo ago also EUVD-2022-55473

cvss
7.1
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 15%
public exploits
0
none known

Summary

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

Patch / fix

  • Linux Linux 4.9.326, 4.14.291, 4.19.256, 5.4.211, 5.10.137, 5.15.61, 5.18.18, 5.19.2, 6.0
  • linux Debian 14, Debian 13, Debian 12 6.0.2-1

debian advisories DEBIAN-CVE-2022-50211

  • linux Ubuntu 18.04 LTS 4.15.0-197.208
  • linux Ubuntu 20.04 LTS 5.4.0-132.148
  • linux Ubuntu 22.04 LTS 5.15.0-53.59
  • linux-aws Ubuntu 18.04 LTS 4.15.0-1143.155
  • linux-aws Ubuntu 20.04 LTS 5.4.0-1089.97
  • linux-aws Ubuntu 22.04 LTS 5.15.0-1023.27
  • linux-gcp Ubuntu 20.04 LTS 5.4.0-1093.102
  • linux-gcp Ubuntu 22.04 LTS 5.15.0-1022.29

ubuntu advisories UBUNTU-CVE-2022-50211

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • kernel RHEL 9 5.14.0-284.11.1.el9_2
  • perf RHEL 9 5.14.0-284.11.1.el9_2
  • rtla RHEL 9 5.14.0-284.11.1.el9_2
  • bpftool RHEL 9 7.0.0-284.11.1.el9_2
  • kernel-64k RHEL 9 5.14.0-284.11.1.el9_2
  • kernel-core RHEL 9 5.14.0-284.11.1.el9_2
  • kernel-tools RHEL 9 5.14.0-284.11.1.el9_2
  • python3-perf RHEL 9 5.14.0-284.11.1.el9_2

red hat advisories RHSA-2025:22752RHSA-2025:17192RHSA-2025:17159RHSA-2025:17161RHSA-2025:17124RHSA-2025:17109

  • kernel-64kb SLES 15 SP3-LTSS, Enterprise Storage 7.1 5.3.18-150300.59.215.1
  • kernel-syms SLES 15 SP3-LTSS, Enterprise Storage 7.1 5.3.18-150300.59.215.1
  • kernel-source SLES 15 SP3-LTSS, Enterprise Storage 7.1 5.3.18-150300.59.215.1
  • kernel-default SLES 15 SP3-LTSS, SLE Micro 5.2, SLE Micro 5.1 +3 more 5.3.18-150300.59.215.1
  • kernel-preempt SLES 15 SP3-LTSS, Enterprise Storage 7.1 5.3.18-150300.59.215.1
  • kernel-obs-build SLES 15 SP3-LTSS, Enterprise Storage 7.1 5.3.18-150300.59.215.1
  • kernel-default-base SLES 15 SP3-LTSS, SLE Micro 5.2, SLE Micro 5.1 +1 more 5.3.18-150300.59.215.1.150300.18.128.1
  • kernel-64kb SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS, SLE High Performance Computing 15 SP4-ESPOS 5.14.21-150400.24.170.2

suse advisories SUSE-SU-2025:02844-1SUSE-SU-2025:02844-2SUSE-SU-2025:02848-1SUSE-SU-2025:02537-1SUSE-SU-2025:02334-1SUSE-SU-2025:02322-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-50211 updated cvss 7.0

kernel: md-raid10: fix KASAN warning

  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +6 more Red Hat Enterprise Linux 9 kernel-rt, kernel-rt-kvm, kernel-rt-core, kernel-rt-modules, kernel-rt-debug-kvm, kernel-rt-debug-core, +12 more
    affected: no fix available
  • Red Hat Enterprise Linux AppStream (v. 9) perf 5.14.0-284.11.1.el9_2, rtla 5.14.0-284.11.1.el9_2, kernel-devel-matched 5.14.0-284.11.1.el9_2, kernel-64k-devel-matched 5.14.0-284.11.1.el9_2, kernel-debug-devel-matched 5.14.0-284.11.1.el9_2, kernel-debuginfo-common-s390x 5.14.0-284.11.1.el9_2, +5 more
    fixed: vendor fix RHSA-2023:2458
  • Red Hat Enterprise Linux AppStream E4S (v.9.0) perf 5.14.0-70.148.1.el9_0, kernel-devel-matched 5.14.0-70.148.1.el9_0, kernel-debug-devel-matched 5.14.0-70.148.1.el9_0, kernel-debuginfo-common-s390x 5.14.0-70.148.1.el9_0, kernel-zfcpdump-devel-matched 5.14.0-70.148.1.el9_0, kernel-debuginfo-common-x86_64 5.14.0-70.148.1.el9_0, +2 more
    fixed: vendor fix RHSA-2025:17159
  • Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-477.10.1.el8_8, kernel 4.18.0-477.10.1.el8_8, bpftool 4.18.0-477.10.1.el8_8, kernel-core 4.18.0-477.10.1.el8_8, kernel-tools 4.18.0-477.10.1.el8_8, python3-perf 4.18.0-477.10.1.el8_8, +15 more
    fixed: vendor fix RHSA-2023:2951
  • Red Hat Enterprise Linux BaseOS (v. 9) bpftool 7.0.0-284.11.1.el9_2, kernel 5.14.0-284.11.1.el9_2, kernel-64k 5.14.0-284.11.1.el9_2, kernel-core 5.14.0-284.11.1.el9_2, kernel-tools 5.14.0-284.11.1.el9_2, python3-perf 5.14.0-284.11.1.el9_2, +28 more
    fixed: vendor fix RHSA-2023:2458
  • Red Hat Enterprise Linux BaseOS AUS (v. 8.2) perf 4.18.0-193.168.1.el8_2, kernel 4.18.0-193.168.1.el8_2, bpftool 4.18.0-193.168.1.el8_2, kernel-core 4.18.0-193.168.1.el8_2, kernel-tools 4.18.0-193.168.1.el8_2, python3-perf 4.18.0-193.168.1.el8_2, +8 more
    fixed: vendor fix RHSA-2025:15656
  • Red Hat Enterprise Linux BaseOS AUS (v.8.4) perf 4.18.0-305.179.1.el8_4, kernel 4.18.0-305.179.1.el8_4, bpftool 4.18.0-305.179.1.el8_4, kernel-core 4.18.0-305.179.1.el8_4, kernel-tools 4.18.0-305.179.1.el8_4, python3-perf 4.18.0-305.179.1.el8_4, +8 more
    fixed: vendor fix RHSA-2025:22752
show 10 more
  • Red Hat Enterprise Linux BaseOS AUS (v.8.6) perf 4.18.0-372.162.1.el8_6, kernel 4.18.0-372.162.1.el8_6, bpftool 4.18.0-372.162.1.el8_6, kernel-core 4.18.0-372.162.1.el8_6, kernel-tools 4.18.0-372.162.1.el8_6, python3-perf 4.18.0-372.162.1.el8_6, +8 more Red Hat Enterprise Linux BaseOS E4S (v.8.6) perf 4.18.0-372.162.1.el8_6, kernel 4.18.0-372.162.1.el8_6, bpftool 4.18.0-372.162.1.el8_6, kernel-core 4.18.0-372.162.1.el8_6, kernel-tools 4.18.0-372.162.1.el8_6, python3-perf 4.18.0-372.162.1.el8_6, +15 more
    fixed: vendor fix RHSA-2025:17124
  • Red Hat Enterprise Linux BaseOS E4S (v.9.0) kernel 5.14.0-70.148.1.el9_0, bpftool 5.14.0-70.148.1.el9_0, kernel-core 5.14.0-70.148.1.el9_0, kernel-tools 5.14.0-70.148.1.el9_0, python3-perf 5.14.0-70.148.1.el9_0, kernel-modules 5.14.0-70.148.1.el9_0, +14 more
    fixed: vendor fix RHSA-2025:17159
  • Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) perf 4.18.0-305.179.1.el8_4, kernel 4.18.0-305.179.1.el8_4, bpftool 4.18.0-305.179.1.el8_4, kernel-core 4.18.0-305.179.1.el8_4, kernel-tools 4.18.0-305.179.1.el8_4, python3-perf 4.18.0-305.179.1.el8_4, +8 more
    fixed: vendor fix RHSA-2025:22752
  • Red Hat Enterprise Linux BaseOS TUS (v.8.6) perf 4.18.0-372.162.1.el8_6, kernel 4.18.0-372.162.1.el8_6, bpftool 4.18.0-372.162.1.el8_6, kernel-core 4.18.0-372.162.1.el8_6, kernel-tools 4.18.0-372.162.1.el8_6, python3-perf 4.18.0-372.162.1.el8_6, +8 more
    fixed: vendor fix RHSA-2025:17124
  • Red Hat Enterprise Linux CRB (v. 8) kernel-debuginfo-common-x86_64 4.18.0-477.10.1.el8_8, kernel-debuginfo-common-aarch64 4.18.0-477.10.1.el8_8, kernel-debuginfo-common-ppc64le 4.18.0-477.10.1.el8_8
    fixed: vendor fix RHSA-2023:2951
  • Red Hat Enterprise Linux CRB (v. 9) kernel-debuginfo-common-s390x 5.14.0-284.11.1.el9_2, kernel-debuginfo-common-x86_64 5.14.0-284.11.1.el9_2, kernel-debuginfo-common-aarch64 5.14.0-284.11.1.el9_2, kernel-debuginfo-common-ppc64le 5.14.0-284.11.1.el9_2
    fixed: vendor fix RHSA-2023:2458
  • Red Hat Enterprise Linux for Real Time (v. 7 ELS) kernel-rt 3.10.0-1160.140.1.rt56.1292.el7, kernel-rt-trace 3.10.0-1160.140.1.rt56.1292.el7, kernel-rt-debuginfo-common-x86_64 3.10.0-1160.140.1.rt56.1292.el7
    fixed: vendor fix RHSA-2025:17109
  • Red Hat Enterprise Linux NFV E4S (v.9.0) kernel-rt 5.14.0-70.148.1.rt21.220.el9_0, kernel-rt-kvm 5.14.0-70.148.1.rt21.220.el9_0, kernel-rt-core 5.14.0-70.148.1.rt21.220.el9_0, kernel-rt-modules 5.14.0-70.148.1.rt21.220.el9_0, kernel-rt-debug-kvm 5.14.0-70.148.1.rt21.220.el9_0, kernel-rt-debug-core 5.14.0-70.148.1.rt21.220.el9_0, +4 more Red Hat Enterprise Linux Real Time E4S (v.9.0) kernel-rt 5.14.0-70.148.1.rt21.220.el9_0, kernel-rt-core 5.14.0-70.148.1.rt21.220.el9_0, kernel-rt-modules 5.14.0-70.148.1.rt21.220.el9_0, kernel-rt-debug-core 5.14.0-70.148.1.rt21.220.el9_0, kernel-rt-debug-modules 5.14.0-70.148.1.rt21.220.el9_0, kernel-rt-modules-extra 5.14.0-70.148.1.rt21.220.el9_0, +2 more
    fixed: vendor fix RHSA-2025:17192
  • Red Hat Enterprise Linux Server (v. 7 ELS) perf 3.10.0-1160.141.1.el7, kernel 3.10.0-1160.141.1.el7, bpftool 3.10.0-1160.141.1.el7, python-perf 3.10.0-1160.141.1.el7, kernel-kdump 3.10.0-1160.141.1.el7, kernel-tools 3.10.0-1160.141.1.el7, +7 more Red Hat Enterprise Linux Server Optional (v. 7 ELS) kernel-debuginfo-common-ppc64 3.10.0-1160.141.1.el7, kernel-debuginfo-common-x86_64 3.10.0-1160.141.1.el7, kernel-debuginfo-common-ppc64le 3.10.0-1160.141.1.el7
    fixed: vendor fix RHSA-2025:17161
  • Red Hat Enterprise Linux 10 kernel Red Hat Enterprise Linux BaseOS AUS (v. 8.2) kernel-doc 4.18.0-193.168.1.el8_2
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.24% chance of exploitation in the next 30 days, higher than 15% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 7.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Affected products

  • Linux Linux

Classification

Weakness
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.