CVE-2022-50340

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

Medium · published September 16, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
4.7
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00159 · 4.7th percentile
Published
2025-09-16T16:11Z
EPSS history
Timeline
  • 16 SEP 16:11Z
    media: vimc: Fix wrong function called when vimc_init() fails
    cvelistv5