CVE-2022-50340

published 16 Sep 2025 · updated 11 May 2026

media: vimc: Fix wrong function called when vimc_init() fails

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 14d85b600bb1f6f8ef61fa8fc1907e2e623d8350, Kernel 681ac2902039d9b497b3ae18fdc204314979e61e, Kernel 9c9ff35d68691aaea85b2e93763772e23930b3a3 and 2 more.

In the Linux kernel, the following vulnerability has been resolved: media: vimc: Fix wrong function called when vimc_init() fails In vimc_init(), when platform_driver_register(&vimc_pdrv) fails, platform_driver_unregister(&vimc_pdrv) is wrongly called rather than platform_device_unregister(&vimc_pdev), which causes kernel warning: Unexpected driver unregister! WARNING: CPU: 1 PID: 14517 at drivers/base/driver.c:270 driver_unregister+0x8f/0xb0 RIP: 0010:driver_unregister+0x8f/0xb0 Call Trace: <TASK> vimc_init+0x7d/0x1000 [vimc] do_one_initcall+0xd0/0x4e0 do_init_module+0x1cf/0x6b0 load_module+0x65c2/0x7820

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.13, >=4a29b70907496aa9da79112ec31cf9cf2b972c3f <14d85b600bb1f6f8ef61fa8fc1907e2e623d8350, >=4a29b70907496aa9da79112ec31cf9cf2b972c3f <681ac2902039d9b497b3ae18fdc204314979e61e, >=4a29b70907496aa9da79112ec31cf9cf2b972c3f <9c9ff35d68691aaea85b2e93763772e23930b3a3, >=4a29b70907496aa9da79112ec31cf9cf2b972c3f <f38df8984ef1b45ba23888d0e232cc21a95bd04b, >=4a29b70907496aa9da79112ec31cf9cf2b972c3f <f74d3f326d1d5b8951ce263c59a121ecfa65e7c014d85b600bb1f6f8ef61fa8fc1907e2e623d8350, 681ac2902039d9b497b3ae18fdc204314979e61e, 9c9ff35d68691aaea85b2e93763772e23930b3a3, f38df8984ef1b45ba23888d0e232cc21a95bd04b, f74d3f326d1d5b8951ce263c59a121ecfa65e7c0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50340 severity on Zeptric[![CVE-2022-50340](https://zeptric.io/badge/cve/CVE-2022-50340.svg)](https://zeptric.io/cve/CVE-2022-50340)