In the Linux kernel, the following vulnerability has been resolved:
media: vimc: Fix wrong function called when vimc_init() fails
In vimcinit(), when platformdriverregister(&vimcpdrv) fails, platformdriverunregister(&vimcpdrv) is wrongly called rather than platformdeviceunregister(&vimcpdev), which causes kernel warning:
Unexpected driver unregister! WARNING: CPU: 1 PID: 14517 at drivers/base/driver.c:270 driverunregister+0x8f/0xb0 RIP: 0010:driverunregister+0x8f/0xb0 Call Trace: <TASK> vimcinit+0x7d/0x1000 [vimc] dooneinitcall+0xd0/0x4e0 doinitmodule+0x1cf/0x6b0 loadmodule+0x65c2/0x7820
[
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f74d3f326d1d5b8951ce263c59a121ecfa65e7c0",
"id": "CVE-2022-50340-1749212e",
"digest": {
"threshold": 0.9,
"line_hashes": [
"146385084567595486433416424835178575098",
"79828501083430543340124867470331428105",
"250748719628315320667998436253935562791",
"211469881022139594072325761300257947839"
]
},
"target": {
"file": "drivers/media/test-drivers/vimc/vimc-core.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9c9ff35d68691aaea85b2e93763772e23930b3a3",
"id": "CVE-2022-50340-2395a1dc",
"digest": {
"function_hash": "249575290251610387139733028799659326080",
"length": 387.0
},
"target": {
"function": "vimc_init",
"file": "drivers/media/test-drivers/vimc/vimc-core.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9c9ff35d68691aaea85b2e93763772e23930b3a3",
"id": "CVE-2022-50340-512392aa",
"digest": {
"threshold": 0.9,
"line_hashes": [
"146385084567595486433416424835178575098",
"79828501083430543340124867470331428105",
"250748719628315320667998436253935562791",
"211469881022139594072325761300257947839"
]
},
"target": {
"file": "drivers/media/test-drivers/vimc/vimc-core.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@14d85b600bb1f6f8ef61fa8fc1907e2e623d8350",
"id": "CVE-2022-50340-7a0f6a30",
"digest": {
"threshold": 0.9,
"line_hashes": [
"146385084567595486433416424835178575098",
"79828501083430543340124867470331428105",
"250748719628315320667998436253935562791",
"211469881022139594072325761300257947839"
]
},
"target": {
"file": "drivers/media/test-drivers/vimc/vimc-core.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@681ac2902039d9b497b3ae18fdc204314979e61e",
"id": "CVE-2022-50340-995d0201",
"digest": {
"function_hash": "249575290251610387139733028799659326080",
"length": 387.0
},
"target": {
"function": "vimc_init",
"file": "drivers/media/test-drivers/vimc/vimc-core.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@681ac2902039d9b497b3ae18fdc204314979e61e",
"id": "CVE-2022-50340-b028b98d",
"digest": {
"threshold": 0.9,
"line_hashes": [
"146385084567595486433416424835178575098",
"79828501083430543340124867470331428105",
"250748719628315320667998436253935562791",
"211469881022139594072325761300257947839"
]
},
"target": {
"file": "drivers/media/test-drivers/vimc/vimc-core.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f74d3f326d1d5b8951ce263c59a121ecfa65e7c0",
"id": "CVE-2022-50340-d3ef92f9",
"digest": {
"function_hash": "249575290251610387139733028799659326080",
"length": 387.0
},
"target": {
"function": "vimc_init",
"file": "drivers/media/test-drivers/vimc/vimc-core.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f38df8984ef1b45ba23888d0e232cc21a95bd04b",
"id": "CVE-2022-50340-dbbd9154",
"digest": {
"function_hash": "249575290251610387139733028799659326080",
"length": 387.0
},
"target": {
"function": "vimc_init",
"file": "drivers/media/test-drivers/vimc/vimc-core.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@14d85b600bb1f6f8ef61fa8fc1907e2e623d8350",
"id": "CVE-2022-50340-dd0c77d9",
"digest": {
"function_hash": "249575290251610387139733028799659326080",
"length": 387.0
},
"target": {
"function": "vimc_init",
"file": "drivers/media/test-drivers/vimc/vimc-core.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f38df8984ef1b45ba23888d0e232cc21a95bd04b",
"id": "CVE-2022-50340-fd239e54",
"digest": {
"threshold": 0.9,
"line_hashes": [
"146385084567595486433416424835178575098",
"79828501083430543340124867470331428105",
"250748719628315320667998436253935562791",
"211469881022139594072325761300257947839"
]
},
"target": {
"file": "drivers/media/test-drivers/vimc/vimc-core.c"
},
"signature_type": "Line",
"signature_version": "v1"
}
]