Description
In the Linux kernel, the following vulnerability has been resolved: dm mpath: fix buffer overflow in parse_hw_handler() parse_hw_handler() builds the hw_handler parameter string in a buffer sized with len = 4; plus one byte per argument. Those four bytes were meant for the decimal form of the parameter count, three digits plus the terminating NUL. dm_read_arg_group() accepts up to 1024 arguments and the count written is 'hw_argc - 1', so a count of 1000 or more needs four digits plus the NUL and sprintf() writes one byte past the allocation. Size the buffer from the actual string length instead.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
2bfd2e1337f0d8bb6ff45ce12934c45b83d70ee0 to < 7736414b9b731b51760d66ed233abeb0706e506faffected2bfd2e1337f0d8bb6ff45ce12934c45b83d70ee0 to < 80d03a97ae9e5f77b205aee21a95020865247f10affected2bfd2e1337f0d8bb6ff45ce12934c45b83d70ee0 to < 4bd198db209c70c4f89e9243df9b34db413e73deaffected2bfd2e1337f0d8bb6ff45ce12934c45b83d70ee0 to < a375493b05df8ebaba1d1c8b0f3675f02f702516affected2bfd2e1337f0d8bb6ff45ce12934c45b83d70ee0 to < 09661f71e3d7949a1de07703c44294e9bf31187caffected2bfd2e1337f0d8bb6ff45ce12934c45b83d70ee0 to < 8f611fe94a781c6fb658488cc7eab4e4923e6df6affected
Linux Linux
Default version status: affected
2.6.32affected0 to < 2.6.32unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/7736414b9b731b51760d66ed233abeb0706e506f ↗
- https://git.kernel.org/stable/c/80d03a97ae9e5f77b205aee21a95020865247f10 ↗
- https://git.kernel.org/stable/c/4bd198db209c70c4f89e9243df9b34db413e73de ↗
- https://git.kernel.org/stable/c/a375493b05df8ebaba1d1c8b0f3675f02f702516 ↗
- https://git.kernel.org/stable/c/09661f71e3d7949a1de07703c44294e9bf31187c ↗
- https://git.kernel.org/stable/c/8f611fe94a781c6fb658488cc7eab4e4923e6df6 ↗