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-livepatch-4.14.287-215.504Upgrade bpftoolUpgrade perfUpgrade bpftool-debuginfoUpgrade kernel-toolsUpgrade python-perfUpgrade perf-debuginfoUpgrade kernel-develUpgrade kernel-debuginfo-common-aarch64Upgrade kernelUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-headersUpgrade kernel-livepatch-5.10.130-118.517Upgrade kernel-tools-debuginfoUpgrade kernel-livepatch-5.15.54-25.126Upgrade kernel-debuginfoUpgrade python-perf-debuginfoUpgrade kernel-tools-devel | May 21, 2025 | Feb 26, 2025 |
| Debian | — | Upgrade linux | Feb 27, 2025 | Feb 27, 2025 |
| Huawei Euleros 2_0_sp10 | — | Upgrade kernel-develUpgrade kernel-headersUpgrade kernelUpgrade kernel-tools-libsUpgrade bpftoolUpgrade kernel-tools-libs-develUpgrade kernel-toolsUpgrade perf | May 13, 2025 | Feb 26, 2025 |
| Huawei Euleros 2_0_sp13 | — | Upgrade python3-perfUpgrade kernelUpgrade kernel-tools-libsUpgrade kernel-toolsUpgrade kernel-abi-stablelistsUpgrade bpftool | Jul 1, 2025 | Feb 26, 2025 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Feb 26, 2025 |
| Ubuntu | — | Upgrade linux-intel-iotg-5.15Upgrade linux-kvmUpgrade linux-lowlatencyUpgrade linux-hwe-5.15Upgrade linux-azure-5.4Upgrade linux-aws-hweUpgrade linux-gcp-4.15Upgrade linux-ibmUpgrade linux-iotUpgrade linux-raspiUpgrade linux-nvidiaUpgrade linux-aws-5.4Upgrade linux-bluefieldUpgrade linux-azure-4.15Upgrade linux-raspi-5.4Upgrade linux-aws-5.15Upgrade linux-gcp-5.15Upgrade linux-oracleUpgrade linux-lowlatency-hwe-5.15Upgrade linux-hweUpgrade linux-oracle-5.15Upgrade linux-realtimeUpgrade linux-azureUpgrade linux-azure-5.15Upgrade linux-aws-fipsUpgrade linux-gcp-fipsUpgrade linux-fipsUpgrade linux-intel-iotgUpgrade linux-gkeUpgrade linux-hwe-5.4Upgrade linux-riscv-5.15Upgrade linux-gcp-5.4Upgrade linux-awsUpgrade linuxUpgrade linux-oracle-5.4Upgrade linux-gkeopUpgrade linux-azure-fipsUpgrade linux-azure-fde-5.15Upgrade linux-gcpUpgrade linux-ibm-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