CVE-2022-50359: media: cx88: Fix a null-ptr-deref bug in buffer_prepare()
In the Linux kernel, the following vulnerability has been resolved:
media: cx88: Fix a null-ptr-deref bug in buffer_prepare()
When the driver calls cx88_risc_buffer() to prepare the buffer, the
function call may fail, resulting in a empty buffer and null-ptr-deref
later in buffer_queue().
The following log can reveal it:
[ 41.822762] general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI
[ 41.824488] KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
[ 41.828027] RIP: 0010:buffer_queue+0xc2/0x500
[ 41.836311] Call Trace:
[ 41.836945] __enqueue_in_driver+0x141/0x360
[ 41.837262] vb2_start_streaming+0x62/0x4a0
[ 41.838216] vb2_core_streamon+0x1da/0x2c0
[ 41.838516] __vb2_init_fileio+0x981/0xbc0
[ 41.839141] __vb2_perform_fileio+0xbf9/0x1120
[ 41.840072] vb2_fop_read+0x20e/0x400
[ 41.840346] v4l2_read+0x215/0x290
[ 41.840603] vfs_read+0x162/0x4c0
Fix this by checking the return value of cx88_risc_buffer()
[hverkuil: fix coding style issues]
Security readout for executives and security teams
Plain-English summary
CVE-2022-50359 is a Linux kernel bug in the cx88 media driver. A local user or process can trigger a kernel crash if the affected driver path is reachable. The main business impact is service disruption, not data theft or privilege escalation, based on the published CVSS vector.
Executive priority
Treat as a normal-priority availability fix unless affected media-driver systems support critical workloads. Patch during the next maintenance cycle, with faster action for shared, multi-user, or uptime-sensitive Linux systems where cx88 is enabled.
Technical view
The cx88 driver did not check whether cx88_risc_buffer() failed during buffer preparation. That could leave an empty buffer and later cause a null pointer dereference in buffer_queue(). The issue is classified as CWE-476 and scored CVSS 3.1 5.5: local, low complexity, low privileges, high availability impact.
Likely exposure
Exposure is most likely on Linux systems running affected kernel versions where the cx88 media driver is present and usable. Systems without this driver loaded or accessible are less likely exposed. Distribution kernel backports may change fixed-status conclusions.
Exploitation context
The CVE data does not indicate active exploitation, and it is not listed as KEV in the provided bundle. The attack vector is local with low privileges and no user interaction. The described outcome is a kernel fault or denial of service.
Researcher notes
Affected-version data is broad and commit-based, so validate against vendor kernel trees and backports. The upstream fix adds return-value checking for cx88_risc_buffer(). Avoid relying only on mainline version numbers for enterprise distributions.
Mitigation direction
Apply Linux kernel updates containing the referenced stable fixes.
Check your Linux distribution advisory for backported fixes.
Prioritize systems where cx88 media hardware or drivers are enabled.
If updates are delayed, review vendor guidance for temporary risk reduction.
Validation and detection
Inventory running kernel versions across Linux assets.
Check whether the cx88 driver is present, loaded, or packaged.
Compare installed kernels against distro advisories and fixed stable commits.
Review crash logs for null-pointer dereference traces involving buffer_queue or cx88.
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-476: 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.
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-476 · source CWE mapping
NULL Pointer Dereference
NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.