CVE-2026-46161 md/raid10: fix divide-by-zero in setup_geo() with zero far_copies
A divide-by-zero error in the Linux kernel's RAID10 setup allows local attackers to cause a system crash by providing specific layout parameters.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-46161?
CVE-2026-46161 is a medium-severity denial of service vulnerability in Linux kernel, published on 28 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-369
Which versions are affected by CVE-2026-46161?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2026-46161?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-46161 being exploited?
There is no known exploitation of CVE-2026-46161 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-89046, BELL-CVE-2026-46161, DEBIAN-CVE-2026-46161, GHSA-fx5x-q37w-xxvr, ROOT-OS-DEBIAN-11-CVE-2026-46161, ROOT-OS-DEBIAN-12-CVE-2026-46161 and 3 more.