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).
CVSS Details
- CVSS 3.1 Base Score: 7.1
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon Linux Ami 2 | — | Upgrade kernel-headersUpgrade kernel-livepatch-5.10.130-118.517Upgrade kernel-debuginfo-common-x86_64Upgrade kernel-debuginfoUpgrade kernel-tools-debuginfoUpgrade kernelUpgrade kernel-livepatch-5.15.54-25.126Upgrade python-perf-debuginfoUpgrade kernel-tools-develUpgrade python-perfUpgrade bpftoolUpgrade kernel-develUpgrade kernel-livepatch-4.14.287-215.504Upgrade kernel-toolsUpgrade perf-debuginfoUpgrade bpftool-debuginfoUpgrade perfUpgrade kernel-debuginfo-common-aarch64 | May 21, 2025 | Feb 26, 2025 |
| Debian | — | Upgrade linux | Feb 27, 2025 | Feb 27, 2025 |
| Huawei Euleros 2_0_sp10 | — | Upgrade perfUpgrade kernel-toolsUpgrade bpftoolUpgrade kernel-tools-libs-develUpgrade kernel-tools-libsUpgrade kernel-headersUpgrade kernel-develUpgrade kernel | May 13, 2025 | Feb 26, 2025 |
| Huawei Euleros 2_0_sp13 | — | Upgrade bpftoolUpgrade kernel-abi-stablelistsUpgrade kernel-toolsUpgrade kernelUpgrade python3-perfUpgrade kernel-tools-libs | Jul 1, 2025 | Feb 26, 2025 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Feb 26, 2025 |
| Ubuntu | — | Upgrade linux-kvmUpgrade linux-ibmUpgrade linux-lowlatency-hwe-5.15Upgrade linux-azureUpgrade linux-gcp-5.15Upgrade linux-hwe-5.15Upgrade linux-gcp-4.15Upgrade linux-hweUpgrade linux-intel-iotg-5.15Upgrade linux-oracleUpgrade linux-iotUpgrade linux-bluefieldUpgrade linux-aws-5.4Upgrade linux-lowlatencyUpgrade linux-oracle-5.15Upgrade linux-aws-5.15Upgrade linux-azure-4.15Upgrade linux-realtimeUpgrade linux-raspi-5.4Upgrade linux-azure-5.4Upgrade linux-nvidiaUpgrade linux-aws-hweUpgrade linux-raspiUpgrade linux-hwe-5.4Upgrade linux-ibm-5.4Upgrade linux-riscv-5.15Upgrade linux-aws-fipsUpgrade linux-gcpUpgrade linuxUpgrade linux-azure-fipsUpgrade linux-fipsUpgrade linux-gcp-fipsUpgrade linux-azure-fde-5.15Upgrade linux-azure-5.15Upgrade linux-intel-iotgUpgrade linux-gkeUpgrade linux-oracle-5.4Upgrade linux-gkeopUpgrade linux-awsUpgrade linux-gcp-5.4 | Mar 3, 2025 | Feb 26, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | May 27, 2026 | Feb 26, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub