CVE-2023-53631: platform/x86: dell-sysman: Fix reference leak
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
platform/x86: dell-sysman: Fix reference leak
If a duplicate attribute is found using kset_find_obj(), a reference to that attribute is returned. This means that we need to dispose it accordingly. Use kobject_put() to dispose the duplicate attribute in such a case.
Compile-tested only.
The Linux kernel CVE team has assigned CVE-2023-53631 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.11 with commit e8a60aa7404bfef37705da5607c97737073ac38d and fixed in 5.15.132 with commit d079a3e1ccdd183b75db4f5289be347980b45284 Issue introduced in 5.11 with commit e8a60aa7404bfef37705da5607c97737073ac38d and fixed in 6.1.53 with commit 6ced15ff1746006476f1407fe722911a45a7874d Issue introduced in 5.11 with commit e8a60aa7404bfef37705da5607c97737073ac38d and fixed in 6.4.16 with commit c5402011992bcc2b5614fe7fef24f9cdaec7473b Issue introduced in 5.11 with commit e8a60aa7404bfef37705da5607c97737073ac38d and fixed in 6.5.3 with commit 9d9e03bec147407826266580e7d6ec427241d859 Issue introduced in 5.11 with commit e8a60aa7404bfef37705da5607c97737073ac38d and fixed in 6.6 with commit 7295a996fdab7bf83dc3d4078fa8b139b8e0a1bf
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-53631
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/platform/x86/dell/dell-wmi-sysman/sysman.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/d079a3e1ccdd183b75db4f5289be347980b45284 https://git.kernel.org/stable/c/6ced15ff1746006476f1407fe722911a45a7874d https://git.kernel.org/stable/c/c5402011992bcc2b5614fe7fef24f9cdaec7473b https://git.kernel.org/stable/c/9d9e03bec147407826266580e7d6ec427241d859 https://git.kernel.org/stable/c/7295a996fdab7bf83dc3d4078fa8b139b8e0a1bf