platform/x86: think-lmi: Fix reference leak (Linux Linux)

CVE-2023-52520
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.24 % · percentile 15 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: platform/x86: think-lmi: Fix reference leak If a duplicate attribute is found using kset_find_obj(), a reference to that attribute is returned which needs to be disposed accordingly using kobject_put(). Move the setting name validation into a separate function to allow for this change without having to duplicate the cleanup code for this setting. As a side note, a very similar bug was fixed in commit 7295a996fdab ("platform/x86: dell-sysman: Fix reference leak"), so it seems that the bug was copied from that driver. Compile-tested only.

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 1bcad8e510b27ad843315ab2c27ccf459e3acded < 124cf0ea4b82e1444ec8c7420af4e7db5558c293 ; affected 1bcad8e510b27ad843315ab2c27ccf459e3acded < af21c9119a37cecb7ff27ce0c2f3cf721e9d0ec4 ; affected 1bcad8e510b27ad843315ab2c27ccf459e3acded < c6e3023579de8d33256771ac0745239029e81106 ; affected 1bcad8e510b27ad843315ab2c27ccf459e3acded < 528ab3e605cabf2f9c9bd5944d3bfe15f6e94f81
Linux · Linuxaffected 5.14 ; unaffected 0 < 5.14 ; unaffected 5.15.136 ≤ 5.15.* ; unaffected 6.1.59 ≤ 6.1.* ; unaffected 6.5.8 ≤ 6.5.* ; unaffected 6.6 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD