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

md/raid10: fix divide-by-zero in setup_geo() with zero far_copies

setup_geo() extracts near_copies (nc) and far_copies (fc) from the
user-provided layout parameter without checking for zero. When fc=0
with the "improved" far set layout selected, 'geo->far_set_size =
disks / fc' triggers a divide-by-zero.

Validate nc and fc immediately after extraction, returning -1 if
either is zero.
Published: 2026-05-28
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the md driver for RAID10. The setup_geo function extracts near and far copy counts from a user‑supplied layout description but fails to validate that the far copy count (fc) is non‑zero. If the improved far set layout is selected and fc equals zero, the code performs disks / fc, causing a divide‑by‑zero that triggers a kernel fault and leads to a crash. This results in a denial of service on the affected system.

Affected Systems

All Linux kernel implementations that include the old md/raid10 driver prior to the remediation commit are affected. The issue was addressed in the kernel source commits referenced in the advisory, therefore any kernel version older than those changes is vulnerable.

Risk and Exploitability

The vulnerability requires the attacker to create or modify a RAID10 configuration. Based on the description, it is inferred that this normally requires privileged access. The CVSS score is 5.5, and the EPSS score indicates a very low likelihood of exploitation, being below 1%. It is not listed in the CISA KEV catalog. The potential for a kernel panic makes it highly undesirable. Exploitability hinges on the ability to supply a malicious layout that sets far_copies to zero; once the array is created, a boot‑time or runtime panic can be triggered, disrupting system availability. No public exploit is known, but the bug could be leveraged in a targeted attack where the attacker owns or can influence the array configuration.

Generated by OpenCVE AI on May 29, 2026 at 03:27 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the patch referenced in the advisory commits.
  • If an upgrade cannot be applied immediately, avoid creating RAID10 arrays with the improved far set layout when zero far_copies could be supplied; validate copy counts yourself or use an alternative layout until the kernel is updated.
  • Continuously monitor system logs for kernel panics or errors related to RAID10 metadata, and reboot promptly if a crash occurs.

Generated by OpenCVE AI on May 29, 2026 at 03:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 09 Jun 2026 21:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:o:linux:linux_kernel:3.9:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:3.9:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:3.9:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:3.9:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:3.9:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:3.9:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:3.9:rc7:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:3.9:rc8:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*

Mon, 01 Jun 2026 17:00:00 +0000


Fri, 29 May 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Thu, 28 May 2026 12:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-369

Thu, 28 May 2026 10:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: md/raid10: fix divide-by-zero in setup_geo() with zero far_copies setup_geo() extracts near_copies (nc) and far_copies (fc) from the user-provided layout parameter without checking for zero. When fc=0 with the "improved" far set layout selected, 'geo->far_set_size = disks / fc' triggers a divide-by-zero. Validate nc and fc immediately after extraction, returning -1 if either is zero.
Title md/raid10: fix divide-by-zero in setup_geo() with zero far_copies
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-14T17:59:07.789Z

Reserved: 2026-05-13T15:03:33.102Z

Link: CVE-2026-46161

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-05-28T10:16:31.770

Modified: 2026-06-09T21:06:33.227

Link: CVE-2026-46161

cve-icon Redhat

Severity : Low

Publid Date: 2026-05-28T00:00:00Z

Links: CVE-2026-46161 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-29T03:30:26Z

Weaknesses