In the Linux kernel, the following vulnerability has been resolved:
media: i2c: dw9714: Disable the regulator when the driver fails to probe
When the driver fails to probe, we will get the following splat:
[ 59.305988] ------------[ cut here ]------------ [ 59.306417] WARNING: CPU: 2 PID: 395 at drivers/regulator/core.c:2257 regulatorput+0x3ec/0x4e0 [ 59.310345] RIP: 0010:regulatorput+0x3ec/0x4e0 [ 59.318362] Call Trace: [ 59.318582] <TASK> [ 59.318765] regulatorput+0x1f/0x30 [ 59.319058] devresreleasegroup+0x319/0x3d0 [ 59.319420] i2cdevice_probe+0x766/0x940
Fix this by disabling the regulator in error handling.
[
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fa83ea1de5b3efd87fe01408d5db1fd2ff4767fa",
"id": "CVE-2022-49528-44915d85",
"signature_version": "v1",
"target": {
"function": "dw9714_probe",
"file": "drivers/media/i2c/dw9714.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "22781499609634180292468194978780486915",
"length": 1052.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@02276e18defa2fccf16413b44440277d98c2b1ea",
"id": "CVE-2022-49528-50fb3bf1",
"signature_version": "v1",
"target": {
"function": "dw9714_probe",
"file": "drivers/media/i2c/dw9714.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "22781499609634180292468194978780486915",
"length": 1052.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fa83ea1de5b3efd87fe01408d5db1fd2ff4767fa",
"id": "CVE-2022-49528-dfbb2900",
"signature_version": "v1",
"target": {
"file": "drivers/media/i2c/dw9714.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"82530469982652133948253665641426647748",
"334714373901914196345515749295463795256",
"179856839596019707151374153784905463960",
"231722804529313460142522478148747355511"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@02276e18defa2fccf16413b44440277d98c2b1ea",
"id": "CVE-2022-49528-e7791a2e",
"signature_version": "v1",
"target": {
"file": "drivers/media/i2c/dw9714.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"82530469982652133948253665641426647748",
"334714373901914196345515749295463795256",
"179856839596019707151374153784905463960",
"231722804529313460142522478148747355511"
],
"threshold": 0.9
}
}
]