CVE-2022-49524: media: pci: cx23885: Fix the error handling in cx23885_initdev()
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().
Security readout for executives and security teams
Plain-English summary
CVE-2022-49524 is a Linux kernel bug in the cx23885 PCI media driver. If a specific driver initialization failure occurs, cleanup is incomplete and can cause a use-after-free. The rated impact is high, but exploitation requires local access and likely depends on affected hardware or driver presence.
Executive priority
Treat as a high-priority Linux kernel maintenance item for systems using this media driver or matching affected kernel lines. It is not currently supported by provided evidence as internet-exploitable or actively exploited, so prioritize after externally exploitable and KEV-listed issues.
Technical view
The cx23885_initdev() error path failed to release I2C-related resources initialized by cx23885_dev_setup() after dma_set_mask() failure. This could trigger a KASAN-detected use-after-free in removed-driver processing. The issue is classified as CWE-416 with CVSS 3.1 score 7.8, local attack vector, low complexity, and low privileges required.
Likely exposure
Exposure is most relevant on Linux systems running affected kernel versions with the cx23885 PCI media driver available or in use. Systems without this driver or related hardware are less likely to be practically exposed. Distribution kernel backports may differ from upstream version numbers.
Exploitation context
The source bundle does not indicate active exploitation, and CISA KEV status is false. The CVSS vector requires local access and low privileges, with no user interaction. Practical exploitation details are not established in the provided sources.
Researcher notes
The vulnerability is in driver error handling, not normal packet or network parsing. The affected data lists upstream kernel versions and stable commits, but does not provide distro-specific package status. Validate exposure through driver presence, hardware relevance, and kernel backport evidence.
Mitigation direction
Update to a kernel containing the referenced stable fixes or your vendor’s backport.
Check Linux distribution security advisories for CVE-2022-49524 applicability.
Prioritize systems where the cx23885 driver is present or media capture hardware is installed.
If patch status is unclear, follow vendor guidance before applying compensating controls.
Validation and detection
Inventory Linux kernel versions across affected fleets.
Determine whether the cx23885 driver is present, enabled, or loaded.
Confirm the running kernel includes one of the referenced stable commits or a vendor backport.
Review vendor advisories because distribution version strings may not match upstream affected ranges.
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-416: 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.
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
3Timeline events
1ADP providers
9Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
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.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-416 · source CWE mapping
Use After Free
Use After Free represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.