CVE-2026-143026: dm mpath: fix buffer overflow in parse_hw_handler()
dm mpath: fix buffer overflow in parsehwhandler()
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.276 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.227 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In dm mpath's parse_hw_handler(), size the buffer from the actual string length instead of using a fixed length.
Event History
Frequently Asked Questions
What input is required to trigger the overflow?
The hardware-handler argument group must contain enough arguments that the stored count, hw_argc - 1, is 1000 or greater. This requires at least 1001 arguments and is within the parser's accepted maximum of 1024 arguments.
How large is the overwrite?
When the decimal argument count requires four digits, sprintf() writes the fourth digit plus the terminating NUL into a buffer that only reserved room for three digits and the NUL. The described result is a one-byte write past the allocation.
How can I identify configurations that may trigger this issue?
Review device-mapper multipath hardware-handler parameter groups for exceptionally large argument lists. Groups with 1001 through 1024 arguments can cause the count written by parse_hw_handler() to be 1000 or more.