CVE-2026-53030: i3c: master: renesas: Fix memory leak in renesas_i3c_i3c_xfers()
In the Linux kernel, the following vulnerability has been resolved:
i3c: master: renesas: Fix memory leak in renesasi3ci3cxfers()
The xfer structure allocated by renesasi3callocxfer() was never freed in the renesasi3ci3cxfers() function. Use the free(kfree) cleanup attribute to automatically free the memory when the variable goes out of scope.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
In renesas_i3c_i3c_xfers(), declare the xfer allocated by renesas_i3c_alloc_xfer() with the __free(kfree) cleanup attribute (Use the __free(kfree) cleanup attribute to automatically free the memory when the variable goes out of scope).
Linux kernel (renesas i3c driver) __free(kfree) cleanup attribute for xfer variable in renesas_i3c_i3c_xfers() = Enable __free(kfree) cleanup so xfer is automatically freed when it goes out of scope