CVE-2023-53617: soc: aspeed: socinfo: Add kfree for kstrdup
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
soc: aspeed: socinfo: Add kfree for kstrdup
Add kfree() in the later error handling in order to avoid memory leak.
The Linux kernel CVE team has assigned CVE-2023-53617 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.11 with commit e0218dca5787c851b403fcbc33cdfec795446fca and fixed in 5.15.128 with commit dfb9676ed25be25ca7cd198d0f0e093b76b7bc7f Issue introduced in 5.11 with commit e0218dca5787c851b403fcbc33cdfec795446fca and fixed in 6.1.47 with commit b662856b71343d9e731c1cd4bbe54758c7791abb Issue introduced in 5.11 with commit e0218dca5787c851b403fcbc33cdfec795446fca and fixed in 6.4.12 with commit d9a5ad4477d2a11e9b03f00c52694451e9332228 Issue introduced in 5.11 with commit e0218dca5787c851b403fcbc33cdfec795446fca and fixed in 6.5 with commit 6e6d847a8ce18ab2fbec4f579f682486a82d2c6b
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2023-53617
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/soc/aspeed/aspeed-socinfo.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/dfb9676ed25be25ca7cd198d0f0e093b76b7bc7f https://git.kernel.org/stable/c/b662856b71343d9e731c1cd4bbe54758c7791abb https://git.kernel.org/stable/c/d9a5ad4477d2a11e9b03f00c52694451e9332228 https://git.kernel.org/stable/c/6e6d847a8ce18ab2fbec4f579f682486a82d2c6b