CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's dm-pcache component, specifically in its handling of optional arguments during parsing. An attacker could exploit this flaw by providing malformed option groups without values, leading to a NULL pointer dereference and potential system instability. Organizations using Linux systems with dm-pcache should prioritize addressing this issue to prevent exploitation and ensure system reliability.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: dm-pcache: reject option groups without values The pcache target parses optional arguments as name/value pairs. A table that advertises one optional argument and supplies only a recognized option name, for example "cache_mode", reaches parse_cache_opts() with argc == 1. The parser consumes the name, decrements argc to zero, then calls dm_shift_arg() again for the value. dm_shift_arg() returns NULL when no arguments remain, and the following strcmp() dereferences that NULL pointer. Check that each recognized option has a value before consuming it. This keeps valid "cache_mode writeback" and "data_crc true/false" tables unchanged while making malformed tables fail during target construction with a precise missing-value error.