In the Linux kernel, the following vulnerability has been resolved:
slimbus: qcom-ngd: cleanup in probe error path
Add proper error path in probe() to cleanup resources previously acquired/allocated to fix warnings visible during probe deferral:
notifier callback qcomslimngdssrnotify already registered WARNING: CPU: 6 PID: 70 at kernel/notifier.c:28 notifierchainregister+0x5c/0x90 Modules linked in: CPU: 6 PID: 70 Comm: kworker/u16:1 Not tainted 6.0.0-rc3-next-20220830 #380 Call trace: notifierchainregister+0x5c/0x90 srcunotifierchainregister+0x44/0x90 qcomregisterssrnotifier+0x38/0x4c qcomslimngdctrlprobe+0xd8/0x400 platformprobe+0x6c/0xe0 reallyprobe+0xbc/0x2d4 _driverprobedevice+0x78/0xe0 driverprobedevice+0x3c/0x12c _deviceattachdriver+0xb8/0x120 busforeachdrv+0x78/0xd0 _deviceattach+0xa8/0x1c0 deviceinitialprobe+0x18/0x24 busprobedevice+0xa0/0xac deferredprobeworkfunc+0x88/0xc0 processonework+0x1d4/0x320 workerthread+0x2cc/0x44c kthread+0x110/0x114 retfrom_fork+0x10/0x20
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1d567179f27788925dc90fe5e905cdabfce7d190",
"target": {
"file": "drivers/slimbus/qcom-ngd-ctrl.c"
},
"id": "CVE-2022-50298-048c2c53",
"deprecated": false,
"signature_version": "v1",
"digest": {
"line_hashes": [
"176123447053986674351879458586322572533",
"143740441077113250195239780479267654385",
"1404854676772125641620626127683768825",
"339181739497279929824052012474241018615",
"301252613494954953430369767439756608762",
"283371297190085258360163700425070037745",
"51052731382723641985761181200733164022",
"27938967876862409132322516315336987954",
"48787983454807372200844020558734207747",
"196395443150021170904698912908257376135",
"51683106681645515436450847919658408394",
"331509029682140731753243324113357595420",
"150233304412014934716388073124979936452"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ef5c42e6eb29a86abbcd4b2fd427e5194e51053c",
"target": {
"file": "drivers/slimbus/qcom-ngd-ctrl.c"
},
"id": "CVE-2022-50298-20ea52ab",
"deprecated": false,
"signature_version": "v1",
"digest": {
"line_hashes": [
"176123447053986674351879458586322572533",
"143740441077113250195239780479267654385",
"1404854676772125641620626127683768825",
"339181739497279929824052012474241018615",
"301252613494954953430369767439756608762",
"283371297190085258360163700425070037745",
"51052731382723641985761181200733164022",
"27938967876862409132322516315336987954",
"48787983454807372200844020558734207747",
"196395443150021170904698912908257376135",
"51683106681645515436450847919658408394",
"331509029682140731753243324113357595420",
"150233304412014934716388073124979936452"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@16f14551d0df9e7cd283545d7d748829594d912f",
"target": {
"file": "drivers/slimbus/qcom-ngd-ctrl.c"
},
"id": "CVE-2022-50298-26194b62",
"deprecated": false,
"signature_version": "v1",
"digest": {
"line_hashes": [
"176123447053986674351879458586322572533",
"143740441077113250195239780479267654385",
"1404854676772125641620626127683768825",
"339181739497279929824052012474241018615",
"301252613494954953430369767439756608762",
"283371297190085258360163700425070037745",
"51052731382723641985761181200733164022",
"27938967876862409132322516315336987954",
"48787983454807372200844020558734207747",
"196395443150021170904698912908257376135",
"51683106681645515436450847919658408394",
"331509029682140731753243324113357595420",
"150233304412014934716388073124979936452"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ef5c42e6eb29a86abbcd4b2fd427e5194e51053c",
"target": {
"function": "qcom_slim_ngd_ctrl_probe",
"file": "drivers/slimbus/qcom-ngd-ctrl.c"
},
"id": "CVE-2022-50298-2de3e7df",
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "176033267532246282406302779250157658860",
"length": 1948.0
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0c76110a3129c8d56d8fb7b6270dcc0c5c2f1a41",
"target": {
"function": "qcom_slim_ngd_ctrl_probe",
"file": "drivers/slimbus/qcom-ngd-ctrl.c"
},
"id": "CVE-2022-50298-449dfa4e",
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "176033267532246282406302779250157658860",
"length": 1948.0
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1d567179f27788925dc90fe5e905cdabfce7d190",
"target": {
"function": "qcom_slim_ngd_ctrl_probe",
"file": "drivers/slimbus/qcom-ngd-ctrl.c"
},
"id": "CVE-2022-50298-816f32e3",
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "281431614946820615230738695902423702046",
"length": 2041.0
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@16f14551d0df9e7cd283545d7d748829594d912f",
"target": {
"function": "qcom_slim_ngd_ctrl_probe",
"file": "drivers/slimbus/qcom-ngd-ctrl.c"
},
"id": "CVE-2022-50298-c4ca4b86",
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "176033267532246282406302779250157658860",
"length": 1948.0
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0c76110a3129c8d56d8fb7b6270dcc0c5c2f1a41",
"target": {
"file": "drivers/slimbus/qcom-ngd-ctrl.c"
},
"id": "CVE-2022-50298-f34ff442",
"deprecated": false,
"signature_version": "v1",
"digest": {
"line_hashes": [
"176123447053986674351879458586322572533",
"143740441077113250195239780479267654385",
"1404854676772125641620626127683768825",
"339181739497279929824052012474241018615",
"301252613494954953430369767439756608762",
"283371297190085258360163700425070037745",
"51052731382723641985761181200733164022",
"27938967876862409132322516315336987954",
"48787983454807372200844020558734207747",
"196395443150021170904698912908257376135",
"51683106681645515436450847919658408394",
"331509029682140731753243324113357595420",
"150233304412014934716388073124979936452"
],
"threshold": 0.9
},
"signature_type": "Line"
}
]