In the Linux kernel, the following vulnerability has been resolved:
clk: mediatek: fix of_iomap memory leak
Smatch reports: drivers/clk/mediatek/clk-mtk.c:583 mtkclksimpleprobe() warn: 'base' from ofiomap() not released on lines: 496.
This problem was also found in linux-next. In mtkclksimpleprobe(), base is not released when handling errors if clkdata is not existed, which may cause a leak. So free_base should be added here to release base.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@47234e19b00816a8a7b278c7173f6d4e928c43c7",
"id": "CVE-2023-53424-0807a703",
"deprecated": false,
"signature_version": "v1",
"target": {
"function": "__mtk_clk_simple_probe",
"file": "drivers/clk/mediatek/clk-mtk.c"
},
"signature_type": "Function",
"digest": {
"length": 2853.0,
"function_hash": "147231182092552176565610807026169124011"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2cae6a28d8c12c597e8656962271520434c61c48",
"id": "CVE-2023-53424-7012825d",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/clk/mediatek/clk-mtk.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"269924169436937863664576394914186019679",
"326261822586937228625545408631298417788",
"134768238568706175191811114258436576567",
"48389019004993919067243831360354218109",
"105964316576547347996959007959275554310",
"273935583618961644236796309134514398353",
"93881511983265543513011901088454395423",
"204905946082405819981979469940204545216",
"94972990219383577257007338441295508376"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3db7285e044144fd88a356f5b641b9cd4b231a77",
"id": "CVE-2023-53424-7f9cc701",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/clk/mediatek/clk-mtk.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"238961272032759726035923306953331360776",
"41788767702329452724931486189603228376",
"134768238568706175191811114258436576567",
"48389019004993919067243831360354218109",
"105964316576547347996959007959275554310",
"273935583618961644236796309134514398353",
"93881511983265543513011901088454395423",
"204905946082405819981979469940204545216",
"94972990219383577257007338441295508376"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3db7285e044144fd88a356f5b641b9cd4b231a77",
"id": "CVE-2023-53424-9b081475",
"deprecated": false,
"signature_version": "v1",
"target": {
"function": "__mtk_clk_simple_probe",
"file": "drivers/clk/mediatek/clk-mtk.c"
},
"signature_type": "Function",
"digest": {
"length": 2853.0,
"function_hash": "147231182092552176565610807026169124011"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2cae6a28d8c12c597e8656962271520434c61c48",
"id": "CVE-2023-53424-bf7dded2",
"deprecated": false,
"signature_version": "v1",
"target": {
"function": "mtk_clk_simple_probe",
"file": "drivers/clk/mediatek/clk-mtk.c"
},
"signature_type": "Function",
"digest": {
"length": 2416.0,
"function_hash": "174936084003408815000128489463534621172"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@47234e19b00816a8a7b278c7173f6d4e928c43c7",
"id": "CVE-2023-53424-e7e0ddc1",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/clk/mediatek/clk-mtk.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"238961272032759726035923306953331360776",
"41788767702329452724931486189603228376",
"134768238568706175191811114258436576567",
"48389019004993919067243831360354218109",
"105964316576547347996959007959275554310",
"273935583618961644236796309134514398353",
"93881511983265543513011901088454395423",
"204905946082405819981979469940204545216",
"94972990219383577257007338441295508376"
]
}
}
]