Skip to content
Fencer Vulns
high 7.1

CVE-2022-49674 json

dm raid: fix accesses beyond end of raid member array

published 2025-02-26 20 mo ago modified 2026-06-17 4 mo ago also EUVD-2022-54559

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

Summary

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

dm raid: fix accesses beyond end of raid member array

On dm-raid table load (using raid_ctr), dm-raid allocates an array rs->devs[rs->raid_disks] for the raid device members. rs->raid_disks is defined by the number of raid metadata and image tupples passed into the target's constructor.

In the case of RAID layout changes being requested, that number can be different from the current number of members for existing raid sets as defined in their superblocks. Example RAID layout changes include: - raid1 legs being added/removed - raid4/5/6/10 number of stripes changed (stripe reshaping) - takeover to higher raid level (e.g. raid5 -> raid6)

When accessing array members, rs->raid_disks must be used in control loops instead of the potentially larger value in rs->md.raid_disks. Otherwise it will cause memory access beyond the end of the rs->devs array.

Fix this by changing code that is prone to out-of-bounds access. Also fix validate_raid_redundancy() to validate all devices that are added. Also, use braces to help clean up raid_iterate_devices().

The out-of-bounds memory accesses was discovered using KASAN.

This commit was verified to pass all LVM2 RAID tests (with KASAN enabled).

Patch / fix

  • Linux Linux 4.14.287, 4.19.251, 5.4.204, 5.10.129, 5.15.53, 5.18.10, 5.19
  • linux Debian 14, Debian 13, Debian 12 5.18.14-1

debian advisories DEBIAN-CVE-2022-49674

  • linux Ubuntu 18.04 LTS 4.15.0-194.205
  • linux Ubuntu 20.04 LTS 5.4.0-128.144
  • linux Ubuntu 22.04 LTS 5.15.0-48.54
  • linux-aws Ubuntu 18.04 LTS 4.15.0-1142.154
  • linux-aws Ubuntu 20.04 LTS 5.4.0-1086.93
  • linux-aws Ubuntu 22.04 LTS 5.15.0-1020.24
  • linux-gcp Ubuntu 20.04 LTS 5.4.0-1090.98
  • linux-gcp Ubuntu 22.04 LTS 5.15.0-1018.24

ubuntu advisories UBUNTU-CVE-2022-49674

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 8 4.18.0-425.3.1.el8
  • perf RHEL 8 4.18.0-425.3.1.el8
  • bpftool RHEL 8 4.18.0-425.3.1.el8
  • kernel-core RHEL 8 4.18.0-425.3.1.el8
  • kernel-tools RHEL 8 4.18.0-425.3.1.el8
  • python3-perf RHEL 8 4.18.0-425.3.1.el8
  • kernel-modules RHEL 8 4.18.0-425.3.1.el8
  • kernel-zfcpdump RHEL 8 4.18.0-425.3.1.el8

red hat advisories RHSA-2026:7003RHSA-2026:6961RHSA-2026:6953RHSA-2022:7683

  • kernel-64kb SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS, Enterprise Storage 7.1 5.3.18-150300.59.201.1
  • kernel-syms SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.201.1
  • kernel-source SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.201.1
  • kernel-default SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +5 more 5.3.18-150300.59.201.1
  • kernel-preempt SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.201.1
  • kernel-obs-build SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.201.1
  • kernel-default-base SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +3 more 5.3.18-150300.59.201.1.150300.18.120.1
  • kernel-64kb SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS, SLE High Performance Computing 15 SP5-ESPOS 5.14.21-150500.55.100.1

suse advisories SUSE-SU-2025:1293-1SUSE-SU-2025:1263-1SUSE-SU-2025:1241-1SUSE-SU-2025:1194-1SUSE-SU-2025:1183-1SUSE-SU-2025:1176-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-49674 updated cvss 6.1

kernel: Linux kernel: Device Mapper RAID out-of-bounds access

  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more 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
    affected: no fix planned “Out of support scope”
  • Red Hat CodeReady Linux Builder (v. 8) kernel-debuginfo-common-x86_64 4.18.0-425.3.1.el8, kernel-debuginfo-common-aarch64 4.18.0-425.3.1.el8, kernel-debuginfo-common-ppc64le 4.18.0-425.3.1.el8 Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-425.3.1.el8, kernel 4.18.0-425.3.1.el8, bpftool 4.18.0-425.3.1.el8, kernel-core 4.18.0-425.3.1.el8, kernel-tools 4.18.0-425.3.1.el8, python3-perf 4.18.0-425.3.1.el8, +15 more
    fixed: vendor fix RHSA-2022:7683
  • Red Hat Enterprise Linux BaseOS AUS (v. 8.2) perf 4.18.0-193.193.1.el8_2, kernel 4.18.0-193.193.1.el8_2, bpftool 4.18.0-193.193.1.el8_2, kernel-core 4.18.0-193.193.1.el8_2, kernel-tools 4.18.0-193.193.1.el8_2, python3-perf 4.18.0-193.193.1.el8_2, +8 more
    fixed: vendor fix RHSA-2026:6953
  • Red Hat Enterprise Linux BaseOS AUS (v.8.4) perf 4.18.0-305.188.1.el8_4, kernel 4.18.0-305.188.1.el8_4, bpftool 4.18.0-305.188.1.el8_4, kernel-core 4.18.0-305.188.1.el8_4, kernel-tools 4.18.0-305.188.1.el8_4, python3-perf 4.18.0-305.188.1.el8_4, +8 more
    fixed: vendor fix RHSA-2026:7003
  • Red Hat Enterprise Linux BaseOS AUS (v.8.6) perf 4.18.0-372.187.1.el8_6, kernel 4.18.0-372.187.1.el8_6, bpftool 4.18.0-372.187.1.el8_6, kernel-core 4.18.0-372.187.1.el8_6, kernel-tools 4.18.0-372.187.1.el8_6, python3-perf 4.18.0-372.187.1.el8_6, +8 more Red Hat Enterprise Linux BaseOS E4S (v.8.6) perf 4.18.0-372.187.1.el8_6, kernel 4.18.0-372.187.1.el8_6, bpftool 4.18.0-372.187.1.el8_6, kernel-core 4.18.0-372.187.1.el8_6, kernel-tools 4.18.0-372.187.1.el8_6, python3-perf 4.18.0-372.187.1.el8_6, +15 more
    fixed: vendor fix RHSA-2026:6961
  • Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) perf 4.18.0-305.188.1.el8_4, kernel 4.18.0-305.188.1.el8_4, bpftool 4.18.0-305.188.1.el8_4, kernel-core 4.18.0-305.188.1.el8_4, kernel-tools 4.18.0-305.188.1.el8_4, python3-perf 4.18.0-305.188.1.el8_4, +8 more
    fixed: vendor fix RHSA-2026:7003
  • Red Hat Enterprise Linux BaseOS TUS (v.8.6) perf 4.18.0-372.187.1.el8_6, kernel 4.18.0-372.187.1.el8_6, bpftool 4.18.0-372.187.1.el8_6, kernel-core 4.18.0-372.187.1.el8_6, kernel-tools 4.18.0-372.187.1.el8_6, python3-perf 4.18.0-372.187.1.el8_6, +8 more
    fixed: vendor fix RHSA-2026:6961
  • Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernel
    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.29% chance of exploitation in the next 30 days, higher than 21% 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.