CVE-2022-50340
media: vimc: Fix wrong function called when vimc_init() fails
Check your servers for CVE-2022-50340
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50340 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.05% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 14 Jan 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-617 Reachable Assertion
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 4a29b70907496aa9da79112ec31cf9cf2b972c3f, before 14d85b600bb1f6f8ef61fa8fc1907e2e623d8350 affected from 4a29b70907496aa9da79112ec31cf9cf2b972c3f, before 9c9ff35d68691aaea85b2e93763772e23930b3a3 affected from 4a29b70907496aa9da79112ec31cf9cf2b972c3f, before 681ac2902039d9b497b3ae18fdc204314979e61e affected from 4a29b70907496aa9da79112ec31cf9cf2b972c3f, before f38df8984ef1b45ba23888d0e232cc21a95bd04b affected from 4a29b70907496aa9da79112ec31cf9cf2b972c3f, before f74d3f326d1d5b8951ce263c59a121ecfa65e7c0
Other versions: unaffected
|
| Linux |
affected 4.13 unaffected before 4.13 unaffected from 5.10.163 up to and including 5.10.* unaffected from 5.15.86 up to and including 5.15.* unaffected from 6.0.16 up to and including 6.0.* unaffected from 6.1.2 up to and including 6.1.* unaffected 6.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50340 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50340
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-50340
trivy image --scanners vuln IMAGE | grep CVE-2022-50340
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/14d85b600bb1f6f8ef61fa8fc1907e2e623d8350 git.kernel.org
- https://git.kernel.org/stable/c/9c9ff35d68691aaea85b2e93763772e23930b3a3 git.kernel.org
- https://git.kernel.org/stable/c/681ac2902039d9b497b3ae18fdc204314979e61e git.kernel.org
- https://git.kernel.org/stable/c/f38df8984ef1b45ba23888d0e232cc21a95bd04b git.kernel.org
- https://git.kernel.org/stable/c/f74d3f326d1d5b8951ce263c59a121ecfa65e7c0 git.kernel.org
Source: the record CVE-2022-50340 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse