CVE-2022-50317: drm/bridge: megachips: Fix a null pointer dereference bug
In the Linux kernel, the following vulnerability has been resolved:
drm/bridge: megachips: Fix a null pointer dereference bug
When removing the module we will get the following warning:
[ 31.911505] i2c-core: driver [stdp2690-ge-b850v3-fw] unregistered
[ 31.912484] general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN PTI
[ 31.913338] KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
[ 31.915280] RIP: 0010:drm_bridge_remove+0x97/0x130
[ 31.921825] Call Trace:
[ 31.922533] stdp4028_ge_b850v3_fw_remove+0x34/0x60 [megachips_stdpxxxx_ge_b850v3_fw]
[ 31.923139] i2c_device_remove+0x181/0x1f0
The two bridges (stdp2690, stdp4028) do not probe at the same time, so
the driver does not call ge_b850v3_resgiter() when probing, causing the
driver to try to remove the object that has not been initialized.
Fix this by checking whether both the bridges are probed.
Security readout for executives and security teams
Plain-English summary
CVE-2022-50317 is a Linux kernel bug in the Megachips DRM bridge driver. Under specific driver removal conditions, the kernel can hit a null pointer dereference and fault. Business impact is most likely availability on systems using this driver, not broad internet exposure.
Executive priority
Treat as a targeted kernel stability issue. Patch through normal Linux kernel maintenance, with higher priority for embedded, display, or hardware platforms using this Megachips bridge driver. It does not currently justify emergency enterprise-wide response absent confirmed exposure.
Technical view
The bug affects the megachips stdp2690/stdp4028 GE B850v3 firmware bridge path. If both bridges are not probed, removal may call drm_bridge_remove on an uninitialized object, causing a null pointer dereference/general protection fault. The fix checks whether both bridges are probed before removal handling.
Likely exposure
Exposure appears limited to Linux systems with the affected Megachips DRM bridge driver present and relevant hardware or module use. General servers without this driver or hardware are unlikely to be exposed. The source bundle lists multiple Linux stable branches and commits, but no CVSS score.
Exploitation context
The described trigger is module removal when the paired bridges did not both initialize. The bundle does not report remote exploitation, privilege impact, or public weaponization. CISA KEV status is false, so active exploitation should not be assumed.
Researcher notes
The CVE record identifies the resolved condition and stable commits but provides no CVSS, CWE, exploitability analysis, or distribution-specific fixed package versions. Validation should focus on driver reachability, module lifecycle behavior, and whether downstream kernels backported the probe-check fix.
Mitigation direction
Update to a vendor kernel containing the referenced stable fixes.
Prioritize systems using Megachips stdp2690/stdp4028 bridge drivers.
If not required, avoid loading or unloading the affected module until patched.
Follow your Linux distribution’s advisory and kernel backport guidance.
Validation and detection
Inventory kernel versions against vendor advisories and listed stable fixes.
Check whether the Megachips bridge driver is built, loaded, or packaged.
Confirm the relevant stable commit is present in your kernel source or changelog.
Review kernel logs for null pointer dereference or general protection faults during module removal.
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.
cve · low confidence lookup
CVE-2022-50317 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
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.
0CVSS vectors
3Timeline events
0ADP providers
9Source links
Vulnerability timeline
Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.
CVE reservedCVE Program
The CVE ID was reserved by the assigning CNA.
CVE publishedCVE Program
The CVE record was published.
Sep 15, 2025, 14:48 UTC (UTC+00:00)
CVE updatedCVE Program
The CVE record metadata indicates this as the latest update time.