In the Linux kernel, the following vulnerability has been resolved:
platform/x86: think-lmi: Fix reference leak
If a duplicate attribute is found using ksetfindobj(), 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.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52520.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52520.json"
[
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"line_hashes": [
"269891344034882558207772096141374625483",
"233399429343891947160540021998376572563",
"250711367895391098755127775784785127454",
"328120215731571655838435789075463182367",
"96554509887825360262448642489846509382",
"277251734151003135723072388400825151268",
"335030337722207475111868803448334344904",
"337251248509956964414162931910939444931",
"168231598904068392726890354953550935219",
"82606684258699002169299147255065679924"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2023-52520-369e1dc4",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@528ab3e605cabf2f9c9bd5944d3bfe15f6e94f81",
"target": {
"file": "drivers/platform/x86/think-lmi.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"length": 3550.0,
"function_hash": "261714395976833344097981661545070519039"
},
"signature_type": "Function",
"id": "CVE-2023-52520-4d8a78bd",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c6e3023579de8d33256771ac0745239029e81106",
"target": {
"function": "tlmi_sysfs_init",
"file": "drivers/platform/x86/think-lmi.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"line_hashes": [
"269891344034882558207772096141374625483",
"233399429343891947160540021998376572563",
"250711367895391098755127775784785127454",
"328120215731571655838435789075463182367",
"96554509887825360262448642489846509382",
"277251734151003135723072388400825151268",
"335030337722207475111868803448334344904",
"337251248509956964414162931910939444931",
"168231598904068392726890354953550935219",
"82606684258699002169299147255065679924"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2023-52520-a2a9f3a4",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c6e3023579de8d33256771ac0745239029e81106",
"target": {
"file": "drivers/platform/x86/think-lmi.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"line_hashes": [
"269891344034882558207772096141374625483",
"233399429343891947160540021998376572563",
"250711367895391098755127775784785127454",
"328120215731571655838435789075463182367",
"96554509887825360262448642489846509382",
"277251734151003135723072388400825151268",
"335030337722207475111868803448334344904",
"337251248509956964414162931910939444931",
"168231598904068392726890354953550935219",
"82606684258699002169299147255065679924"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2023-52520-b051ad98",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@af21c9119a37cecb7ff27ce0c2f3cf721e9d0ec4",
"target": {
"file": "drivers/platform/x86/think-lmi.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"length": 3550.0,
"function_hash": "261714395976833344097981661545070519039"
},
"signature_type": "Function",
"id": "CVE-2023-52520-c0fcd5c6",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@af21c9119a37cecb7ff27ce0c2f3cf721e9d0ec4",
"target": {
"function": "tlmi_sysfs_init",
"file": "drivers/platform/x86/think-lmi.c"
}
},
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"length": 3550.0,
"function_hash": "261714395976833344097981661545070519039"
},
"signature_type": "Function",
"id": "CVE-2023-52520-fa463206",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@528ab3e605cabf2f9c9bd5944d3bfe15f6e94f81",
"target": {
"function": "tlmi_sysfs_init",
"file": "drivers/platform/x86/think-lmi.c"
}
}
]