# CVE-2022-49524: media: pci: cx23885: Fix the error handling in cx23885\_initdev()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-02-26T02:13:48.222Z
- **Modified:** 2026-06-17T05:18:19.230Z

## Who should check

- Anyone running Linux \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< 6041d1a0365baa729b6adfb6ed5386d9388018db; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< 7b9978e1c94e569d65a0e7e719abb9340f5db4a0; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< fa636e9ee4442215cd9a2e079cd5a8e1fe0cb8ba; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< ca17e7a532d1a55466cc007b3f4d319541a27493; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< 98106f100f50c487469903b9cf6d966785fc9cc3; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< 86bd6a579c6c60547706cabf299cd2c9feab3332; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< 453514a874c78df1e7804e6e3aaa60c8d8deb6a8; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< e8123311cf06d7dae71e8c5fe78e0510d20cd30b
- Anyone running Linux 4.8

## 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().

## Affected and fixed versions

- Linux: \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< 6041d1a0365baa729b6adfb6ed5386d9388018db; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< 7b9978e1c94e569d65a0e7e719abb9340f5db4a0; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< fa636e9ee4442215cd9a2e079cd5a8e1fe0cb8ba; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< ca17e7a532d1a55466cc007b3f4d319541a27493; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< 98106f100f50c487469903b9cf6d966785fc9cc3; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< 86bd6a579c6c60547706cabf299cd2c9feab3332; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< 453514a874c78df1e7804e6e3aaa60c8d8deb6a8; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< e8123311cf06d7dae71e8c5fe78e0510d20cd30b (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49524. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49524.md
Affected: Linux >= 2bc46b3ad3c15165f91459b07ff8682478683194, < 6041d1a0365baa729b6adfb6ed5386d9388018db; >= 2bc46b3ad3c15165f91459b07ff8682478683194, < 7b9978e1c94e569d65a0e7e719abb9340f5db4a0; >= 2bc46b3ad3c15165f91459b07ff8682478683194, < fa636e9ee4442215cd9a2e079cd5a8e1fe0cb8ba; >= 2bc46b3ad3c15165f91459b…
Fixed in: Linux 6041d1a0365baa729b6adfb6ed5386d9388018db, Linux 7b9978e1c94e569d65a0e7e719abb9340f5db4a0, Linux 98106f100f50c487469903b9cf6d966785fc9cc3, Linux 86bd6a579c6c60547706cabf299cd2c9feab3332, Linux 453514a874c78df1e7804e6e3aaa60c8d8deb6a8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49524 being exploited?

There is no confirmed exploitation: CVE-2022-49524 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49524?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49524?

Linux \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< 6041d1a0365baa729b6adfb6ed5386d9388018db; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< 7b9978e1c94e569d65a0e7e719abb9340f5db4a0; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< fa636e9ee4442215cd9a2e079cd5a8e1fe0cb8ba; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< ca17e7a532d1a55466cc007b3f4d319541a27493; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< 98106f100f50c487469903b9cf6d966785fc9cc3; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< 86bd6a579c6c60547706cabf299cd2c9feab3332; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< 453514a874c78df1e7804e6e3aaa60c8d8deb6a8; \>= 2bc46b3ad3c15165f91459b07ff8682478683194, \< e8123311cf06d7dae71e8c5fe78e0510d20cd30b; Linux 4.8.

### Is there a fix for CVE-2022-49524?

Yes. Fixed in Linux 6041d1a0365baa729b6adfb6ed5386d9388018db, Linux 7b9978e1c94e569d65a0e7e719abb9340f5db4a0, Linux 98106f100f50c487469903b9cf6d966785fc9cc3, Linux 86bd6a579c6c60547706cabf299cd2c9feab3332, Linux 453514a874c78df1e7804e6e3aaa60c8d8deb6a8. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-49524?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/6041d1a0365baa729b6adfb6ed5386d9388018db>
- patch: <https://git.kernel.org/stable/c/7b9978e1c94e569d65a0e7e719abb9340f5db4a0>
- patch: <https://git.kernel.org/stable/c/fa636e9ee4442215cd9a2e079cd5a8e1fe0cb8ba>
- patch: <https://git.kernel.org/stable/c/ca17e7a532d1a55466cc007b3f4d319541a27493>
- patch: <https://git.kernel.org/stable/c/98106f100f50c487469903b9cf6d966785fc9cc3>
- patch: <https://git.kernel.org/stable/c/86bd6a579c6c60547706cabf299cd2c9feab3332>
- patch: <https://git.kernel.org/stable/c/453514a874c78df1e7804e6e3aaa60c8d8deb6a8>
- patch: <https://git.kernel.org/stable/c/e8123311cf06d7dae71e8c5fe78e0510d20cd30b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49524>

HTML: <https://flawdb.com/CVE-2022-49524> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49524>
