CVE-2022-50340
MediumIn 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
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness type
CWE-617CVE-2022-50340 is classified as CWE-617
See CWE-617 on MITRE CWE for full details on this weakness type.
Affected versions
Linux kernel versions
4.13
and later are affected. Fixed in
5.10.163,
5.15.86,
6.0.16,
6.1.2,
6.2
and their respective stable series.
References
The following references provide additional information about CVE-2022-50340 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/14d85b600bb1f6f8ef61fa8fc1907e2e623d8350
-
PatchKernel patch commithttps://git.kernel.org/stable/c/681ac2902039d9b497b3ae18fdc204314979e61e
-
PatchKernel patch commithttps://git.kernel.org/stable/c/9c9ff35d68691aaea85b2e93763772e23930b3a3
Frequently asked questions
-
What is CVE-2022-50340?
CVE-2022-50340 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 . It affects Linux kernel versions from 4.13 onward and has been patched in 5.10.163, 5.15.86, 6.0.16 and others. CVE-2022-50340 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2022-50340?
CVE-2022-50340 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2022-50340?
Yes — CVE-2022-50340 has been patched. Fixed versions include 5.10.163, 5.15.86, 6.0.16 and others. If you are running Linux kernel 4.13 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2022-50340 actively exploited?
No — CVE-2022-50340 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.