CVE-2026-46161

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

MEDIUM
5.5
CVSS Score
Published: May 28, 2026 at 09:36 AM UTC
Updated: October 15, 2026 at 02:19 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.1%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.9.1 ≤ v < 5.10.2585.11 ≤ v < 5.15.2095.16 ≤ v < 6.1.1756.13 ≤ v < 6.18.306.19 ≤ v < 7.0.76.2 ≤ v < 6.6.1406.7 ≤ v < 6.12.883.93.9 rc23.9 rc33.9 rc43.9 rc53.9 rc63.9 rc73.9 rc8475901aff15841fb0a81e7546517407779a9b0617.17.1 rc1
Vendor states this is fixed in 0b43a70394ce492274e67463326be03e0a9897c5 (fixed)
Vendor states this is fixed in 4af2e558e6fdfb972c61350653fd55d1f62b60a5 (fixed)
Vendor states this is fixed in 553e32adfa1a96b217651139a3f8c3b92b9984ac (fixed)
Vendor states this is fixed in 913d556e4bd1b56ed822815655b82c7bb54edc51 (fixed)
Vendor states this is fixed in 9aa6d860b0930e2f72795665c42c44252a558a0c (fixed)
Vendor states this is fixed in 9d8e03b9a2b1e8ce5c198bf3a409a629f4d02cda (fixed)
Vendor states this is fixed in c716ab3034f84f8a6c226814247b8c5ac9f95da1 (fixed)
Vendor states this is fixed in f9ddb621b2325eb69c95692958daf2bab4dea2c4 (fixed)
Vendor states this is fixed in 3.9 (unaffected)
Vendor states this is fixed in 5.10.258 (unaffected)
Vendor states this is fixed in 5.15.209 (unaffected)
Vendor states this is fixed in 6.1.175 (unaffected)
Vendor states this is fixed in 6.12.88 (unaffected)
Vendor states this is fixed in 6.18.30 (unaffected)
Vendor states this is fixed in 6.6.140 (unaffected)
Vendor states this is fixed in 7.0.7 (unaffected)
Vendor states this is fixed in 7.1 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-369

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card