LiveActive security incident?Get immediate response
CVE Record

CVE-2022-50340: media: vimc: Fix wrong function called when vimc_init() fails

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

MediumCVSS 5.5Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This Linux kernel issue is an error-handling bug in the vimc media driver. If initialization fails, the kernel calls the wrong cleanup function and can hit a warning condition. The rated impact is availability, not data theft or data modification.

Executive priority

Treat as a moderate Linux availability risk. It is not presented as remotely exploitable or actively exploited, but kernel availability issues deserve routine patch-cycle handling, especially on shared systems.

Technical view

CVE-2022-50340 affects Linux kernel vimc_init() cleanup logic. On platform_driver_register(&vimc_pdrv) failure, it calls platform_driver_unregister(&vimc_pdrv) instead of platform_device_unregister(&vimc_pdev), producing an unexpected driver unregister warning. CVSS 3.1 is 5.5, local, low complexity, low privilege, no user interaction, availability high.

Likely exposure

Exposure is limited to Linux systems with affected kernel versions where the vimc media driver is present and reachable locally. The source bundle does not identify network exposure, affected distributions, or default enablement.

Exploitation context

The bundle marks KEV as false and provides no cited evidence of active exploitation. The CVSS vector indicates local, low-privilege availability impact with no confidentiality or integrity impact.

Researcher notes

The evidence is narrow: CVE text, CVSS, CWE-617, affected Linux entries, and stable kernel commits. It identifies the faulty error path but does not document exploitability beyond local availability impact.

Mitigation direction

  • Check Linux kernel stable guidance for the listed fix commits.
  • Upgrade affected kernels to vendor-supported builds containing the vimc cleanup fix.
  • Prioritize systems where untrusted local users can access kernel module functionality.
  • Track distribution advisories before applying kernel changes in production.

Validation and detection

  • Inventory Linux kernel versions against the affected version data.
  • Confirm whether the vimc driver is built, installed, or loadable.
  • Verify deployed kernels include one of the referenced stable fixes.
  • Review kernel logs for related unexpected driver unregister warnings.
Prepared
Confidence
high
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-617: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-50340 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
6Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.5CVSS 3.1MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H1.83.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.5Medium
CVSS 3.1 vector shape for CVE-2022-50340Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux4a29b70907496aa9da79112ec31cf9cf2b972c3f, 4a29b70907496aa9da79112ec31cf9cf2b972c3f, 4a29b70907496aa9da79112ec31cf9cf2b972c3f, 4a29b70907496aa9da79112ec31cf9cf2b972c3f, 4a29b70907496aa9da79112ec31cf9cf2b972c3funaffected
LinuxLinux4.13, 0, 5.10.163, 5.15.86, 6.0.16, 6.1.2, 6.2affected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-617 · source CWE mapping

Reachable Assertion

Reachable Assertion represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.