CVE-2022-49524
media: pci: cx23885: Fix the error handling in cx23885_initdev()
Check your servers for CVE-2022-49524
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-49524 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: pci: cx23885: Fix the error handling in cx23885_initdev()
When the driver fails to call the dma_set_mask(), the driver will get the following splat:
[ 55.853884] BUG: KASAN: use-after-free in __process_removed_driver+0x3c/0x240 [ 55.854486] Read of size 8 at addr ffff88810de60408 by task modprobe/590 [ 55.856822] Call Trace: [ 55.860327] __process_removed_driver+0x3c/0x240 [ 55.861347] bus_for_each_dev+0x102/0x160 [ 55.861681] i2c_del_driver+0x2f/0x50
This is because the driver has initialized the i2c related resources in cx23885_dev_setup() but not released them in error handling, fix this bug by modifying the error path that jumps after failing to call the dma_set_mask().
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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 high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 20.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 27 Feb 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-416 Use After Free
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 2bc46b3ad3c15165f91459b07ff8682478683194, before 6041d1a0365baa729b6adfb6ed5386d9388018db affected from 2bc46b3ad3c15165f91459b07ff8682478683194, before 7b9978e1c94e569d65a0e7e719abb9340f5db4a0 affected from 2bc46b3ad3c15165f91459b07ff8682478683194, before fa636e9ee4442215cd9a2e079cd5a8e1fe0cb8ba affected from 2bc46b3ad3c15165f91459b07ff8682478683194, before ca17e7a532d1a55466cc007b3f4d319541a27493 affected from 2bc46b3ad3c15165f91459b07ff8682478683194, before 98106f100f50c487469903b9cf6d966785fc9cc3 affected from 2bc46b3ad3c15165f91459b07ff8682478683194, before 86bd6a579c6c60547706cabf299cd2c9feab3332 affected from 2bc46b3ad3c15165f91459b07ff8682478683194, before 453514a874c78df1e7804e6e3aaa60c8d8deb6a8 affected from 2bc46b3ad3c15165f91459b07ff8682478683194, before e8123311cf06d7dae71e8c5fe78e0510d20cd30b
Other versions: unaffected
|
| Linux |
affected 4.8 unaffected before 4.8 unaffected from 4.14.283 up to and including 4.14.* unaffected from 4.19.247 up to and including 4.19.* unaffected from 5.4.198 up to and including 5.4.* unaffected from 5.10.121 up to and including 5.10.* unaffected from 5.15.46 up to and including 5.15.* unaffected from 5.17.14 up to and including 5.17.* unaffected from 5.18.3 up to and including 5.18.* unaffected 5.19 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-49524 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49524
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-49524
trivy image --scanners vuln IMAGE | grep CVE-2022-49524
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/6041d1a0365baa729b6adfb6ed5386d9388018db git.kernel.org
- https://git.kernel.org/stable/c/7b9978e1c94e569d65a0e7e719abb9340f5db4a0 git.kernel.org
- https://git.kernel.org/stable/c/fa636e9ee4442215cd9a2e079cd5a8e1fe0cb8ba git.kernel.org
- https://git.kernel.org/stable/c/ca17e7a532d1a55466cc007b3f4d319541a27493 git.kernel.org
- https://git.kernel.org/stable/c/98106f100f50c487469903b9cf6d966785fc9cc3 git.kernel.org
- https://git.kernel.org/stable/c/86bd6a579c6c60547706cabf299cd2c9feab3332 git.kernel.org
- https://git.kernel.org/stable/c/453514a874c78df1e7804e6e3aaa60c8d8deb6a8 git.kernel.org
- https://git.kernel.org/stable/c/e8123311cf06d7dae71e8c5fe78e0510d20cd30b git.kernel.org
Source: the record CVE-2022-49524 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