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