{"id":"CVE-2022-50340","aliases":["CVE-2022-50340"],"related":[],"kind":"vulnerability","state":"published","title":"media: vimc: Fix wrong function called when vimc_init() fails","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vimc: Fix wrong function called when vimc_init() fails\n\nIn vimc_init(), when platform_driver_register(&vimc_pdrv) fails,\nplatform_driver_unregister(&vimc_pdrv) is wrongly called rather than\nplatform_device_unregister(&vimc_pdev), which causes kernel warning:\n\n Unexpected driver unregister!\n WARNING: CPU: 1 PID: 14517 at drivers/base/driver.c:270 driver_unregister+0x8f/0xb0\n RIP: 0010:driver_unregister+0x8f/0xb0\n Call Trace:\n  <TASK>\n  vimc_init+0x7d/0x1000 [vimc]\n  do_one_initcall+0xd0/0x4e0\n  do_init_module+0x1cf/0x6b0\n  load_module+0x65c2/0x7820","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: vimc: Fix wrong function called when vimc_init() fails\n\nIn vimc_init(), when platform_driver_register(&vimc_pdrv) fails,\nplatform_driver_unregister(&vimc_pdrv) is wrongly called rather than\nplatform_device_unregister(&vimc_pdev), which causes kernel warning:\n\n Unexpected driver unregister!\n WARNING: CPU: 1 PID: 14517 at drivers/base/driver.c:270 driver_unregister+0x8f/0xb0\n RIP: 0010:driver_unregister+0x8f/0xb0\n Call Trace:\n  <TASK>\n  vimc_init+0x7d/0x1000 [vimc]\n  do_one_initcall+0xd0/0x4e0\n  do_init_module+0x1cf/0x6b0\n  load_module+0x65c2/0x7820","source":"cvelist"}],"published":"2025-09-16T16:11:19.986Z","modified":"2026-06-17T05:23:16.087Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-617"],"affected":[{"ranges":[{"type":"git","introduced":"4a29b70907496aa9da79112ec31cf9cf2b972c3f","fixed":"14d85b600bb1f6f8ef61fa8fc1907e2e623d8350","status":"affected"},{"type":"git","introduced":"4a29b70907496aa9da79112ec31cf9cf2b972c3f","fixed":"9c9ff35d68691aaea85b2e93763772e23930b3a3","status":"affected"},{"type":"git","introduced":"4a29b70907496aa9da79112ec31cf9cf2b972c3f","fixed":"681ac2902039d9b497b3ae18fdc204314979e61e","status":"affected"},{"type":"git","introduced":"4a29b70907496aa9da79112ec31cf9cf2b972c3f","fixed":"f38df8984ef1b45ba23888d0e232cc21a95bd04b","status":"affected"},{"type":"git","introduced":"4a29b70907496aa9da79112ec31cf9cf2b972c3f","fixed":"f74d3f326d1d5b8951ce263c59a121ecfa65e7c0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.13","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.13","fixed":"5.10.163"},{"status":"affected","introduced":"5.11","fixed":"5.15.86"},{"status":"affected","introduced":"5.16","fixed":"6.0.16"},{"status":"affected","introduced":"6.1","fixed":"6.1.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/14d85b600bb1f6f8ef61fa8fc1907e2e623d8350","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9c9ff35d68691aaea85b2e93763772e23930b3a3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/681ac2902039d9b497b3ae18fdc204314979e61e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f38df8984ef1b45ba23888d0e232cc21a95bd04b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f74d3f326d1d5b8951ce263c59a121ecfa65e7c0","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-01-14T18:19:32.238Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50340","url":"https://www.cve.org/CVERecord?id=CVE-2022-50340","licence":"CVE Terms of Use","modified":"2026-05-11T19:17:32.516Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50340","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50340","licence":"Public domain","modified":"2026-06-17T05:23:16.087Z"}],"updatedAt":"2026-11-25T22:58:21.171Z","epss":{"score":0.00165,"percentile":0.06048,"date":"2026-12-01T12:00:22.000Z"}}