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.
[
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"269891344034882558207772096141374625483",
"233399429343891947160540021998376572563",
"250711367895391098755127775784785127454",
"328120215731571655838435789075463182367",
"96554509887825360262448642489846509382",
"277251734151003135723072388400825151268",
"335030337722207475111868803448334344904",
"337251248509956964414162931910939444931",
"168231598904068392726890354953550935219",
"82606684258699002169299147255065679924"
]
},
"target": {
"file": "drivers/platform/x86/think-lmi.c"
},
"signature_version": "v1",
"id": "CVE-2023-52520-369e1dc4",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@528ab3e605cabf2f9c9bd5944d3bfe15f6e94f81"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "261714395976833344097981661545070519039",
"length": 3550.0
},
"target": {
"file": "drivers/platform/x86/think-lmi.c",
"function": "tlmi_sysfs_init"
},
"signature_version": "v1",
"id": "CVE-2023-52520-4d8a78bd",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c6e3023579de8d33256771ac0745239029e81106"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"86831362756794553421498688235455016191",
"233399429343891947160540021998376572563",
"250711367895391098755127775784785127454",
"328120215731571655838435789075463182367",
"96554509887825360262448642489846509382",
"277251734151003135723072388400825151268",
"335030337722207475111868803448334344904",
"337251248509956964414162931910939444931",
"168231598904068392726890354953550935219",
"82606684258699002169299147255065679924"
]
},
"target": {
"file": "drivers/platform/x86/think-lmi.c"
},
"signature_version": "v1",
"id": "CVE-2023-52520-68e06f4e",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@124cf0ea4b82e1444ec8c7420af4e7db5558c293"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "277059684754451504879985871466252980186",
"length": 2639.0
},
"target": {
"file": "drivers/platform/x86/think-lmi.c",
"function": "tlmi_sysfs_init"
},
"signature_version": "v1",
"id": "CVE-2023-52520-99089f63",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@124cf0ea4b82e1444ec8c7420af4e7db5558c293"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"269891344034882558207772096141374625483",
"233399429343891947160540021998376572563",
"250711367895391098755127775784785127454",
"328120215731571655838435789075463182367",
"96554509887825360262448642489846509382",
"277251734151003135723072388400825151268",
"335030337722207475111868803448334344904",
"337251248509956964414162931910939444931",
"168231598904068392726890354953550935219",
"82606684258699002169299147255065679924"
]
},
"target": {
"file": "drivers/platform/x86/think-lmi.c"
},
"signature_version": "v1",
"id": "CVE-2023-52520-a2a9f3a4",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c6e3023579de8d33256771ac0745239029e81106"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"269891344034882558207772096141374625483",
"233399429343891947160540021998376572563",
"250711367895391098755127775784785127454",
"328120215731571655838435789075463182367",
"96554509887825360262448642489846509382",
"277251734151003135723072388400825151268",
"335030337722207475111868803448334344904",
"337251248509956964414162931910939444931",
"168231598904068392726890354953550935219",
"82606684258699002169299147255065679924"
]
},
"target": {
"file": "drivers/platform/x86/think-lmi.c"
},
"signature_version": "v1",
"id": "CVE-2023-52520-b051ad98",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@af21c9119a37cecb7ff27ce0c2f3cf721e9d0ec4"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "261714395976833344097981661545070519039",
"length": 3550.0
},
"target": {
"file": "drivers/platform/x86/think-lmi.c",
"function": "tlmi_sysfs_init"
},
"signature_version": "v1",
"id": "CVE-2023-52520-c0fcd5c6",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@af21c9119a37cecb7ff27ce0c2f3cf721e9d0ec4"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "261714395976833344097981661545070519039",
"length": 3550.0
},
"target": {
"file": "drivers/platform/x86/think-lmi.c",
"function": "tlmi_sysfs_init"
},
"signature_version": "v1",
"id": "CVE-2023-52520-fa463206",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@528ab3e605cabf2f9c9bd5944d3bfe15f6e94f81"
}
]