CyberRota Analysis
AI-GeneratedA use-after-free vulnerability exists in the Linux kernel's mlxbf_i2c_init_resource() function, which can occur if the devm_platform_get_and_ioremap_resource() function fails, leading to potential exploitation. This flaw could allow attackers to manipulate memory, potentially leading to system crashes or arbitrary code execution. Linux system administrators and developers utilizing the affected kernel version should prioritize applying the patch to mitigate risks associated with this vulnerability.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: i2c: mlxbf: Fix use-after-free in mlxbf_i2c_init_resource() If devm_platform_get_and_ioremap_resource() returns an error, mlxbf_i2c_init_resource() frees tmp_res before reading tmp_res->io to get the error code. This results in a use-after-free. Save the error code before freeing tmp_res.