# CVE-2026-46161: md/raid10: fix divide-by-zero in setup_geo() with zero far_copies

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-28T09:36:16.428Z
- Modified: 2026-11-06T17:17:41.563Z
- Weaknesses: CWE-369
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 475901aff15841fb0a81e7546517407779a9b061 before 0b43a70394ce492274e67463326be03e0a9897c5; from 475901aff15841fb0a81e7546517407779a9b061 before c716ab3034f84f8a6c226814247b8c5ac9f95da1; from 475901aff15841fb0a81e7546517407779a9b061 before 553e32adfa1a96b217651139a3f8c3b92b9984ac; from 475901aff15841fb0a81e7546517407779a9b061 before 4af2e558e6fdfb972c61350653fd55d1f62b60a5; from 475901aff15841fb0a81e7546517407779a9b061 before 9d8e03b9a2b1e8ce5c198bf3a409a629f4d02cda; from 475901aff15841fb0a81e7546517407779a9b061 before 913d556e4bd1b56ed822815655b82c7bb54edc51; from 475901aff15841fb0a81e7546517407779a9b061 before f9ddb621b2325eb69c95692958daf2bab4dea2c4; from 475901aff15841fb0a81e7546517407779a9b061 before 9aa6d860b0930e2f72795665c42c44252a558a0c; 3.9 (not affected: before 3.9; from 5.10.258 up to 5.10.*; from 5.15.209 up to 5.15.*; from 6.1.175 up to 6.1.*; from 6.6.140 up to 6.6.*; from 6.12.88 up to 6.12.*; from 6.18.30 up to 6.18.*; from 7.0.7 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 3.9.1 before 5.10.258; from 5.11 before 5.15.209; from 5.16 before 6.1.175; from 6.2 before 6.6.140; from 6.7 before 6.12.88; from 6.13 before 6.18.30; from 6.19 before 7.0.7; 3.9; 7.1

## References

- <https://git.kernel.org/stable/c/0b43a70394ce492274e67463326be03e0a9897c5> (patch)
- <https://git.kernel.org/stable/c/c716ab3034f84f8a6c226814247b8c5ac9f95da1> (patch)
- <https://git.kernel.org/stable/c/553e32adfa1a96b217651139a3f8c3b92b9984ac> (patch)
- <https://git.kernel.org/stable/c/4af2e558e6fdfb972c61350653fd55d1f62b60a5> (patch)
- <https://git.kernel.org/stable/c/9d8e03b9a2b1e8ce5c198bf3a409a629f4d02cda> (patch)
- <https://git.kernel.org/stable/c/913d556e4bd1b56ed822815655b82c7bb54edc51> (patch)
- <https://git.kernel.org/stable/c/f9ddb621b2325eb69c95692958daf2bab4dea2c4> (patch)
- <https://git.kernel.org/stable/c/9aa6d860b0930e2f72795665c42c44252a558a0c> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Sources

- CVE List: [CVE-2026-46161](https://www.cve.org/CVERecord?id=CVE-2026-46161), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-46161](https://nvd.nist.gov/vuln/detail/CVE-2026-46161), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-46161 · Whole record: https://cve.day/CVE-2026-46161.json · Rebuilt by cve.day 2026-11-25T22:59:22.826Z
