CVE-2026-80650

media: atomisp: gc2235: fix UAF and memory leak

Published Aug 28, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

media: atomisp: gc2235: fix UAF and memory leak

gc2235_probe() handles its error paths incorrectly.

If media_entity_pads_init() fails, gc2235_remove() is called, which
tears down the subdev and frees dev, but then still falls through to
atomisp_register_i2c_module(). This results in use-after-free.

If atomisp_register_i2c_module() fails, the media entity and control
handler are left initialized and dev is leaked.

gc2235_remove() unconditionally calls media_entity_cleanup() and
v4l2_ctrl_handler_free(), but these are not initialized at every
error path in gc2235_probe().

Replace gc2235_remove() calls in the probe error paths with explicit
unwind labels that free only the resources initialized at each point
of failure, in reverse order of initialization.

Analysis

AI-generated

Technical impact

The vulnerability stems from the Linux kernel media subsystem, where the gc2235 driver mishandles error paths during probe. If media_entity_pads_init() fails, the driver calls gc2235_remove(), which frees the device structure and then continues to atomisp_register_i2c_module(), leading to a use‑after‑free. If atomisp_register_i2c_module() fails, resources allocated prior to the failure are left allocated, causing a memory leak. Additionally, gc2235_remove() may attempt to clean up entities that were never initialized, resulting in further undefined behavior.

Affected Systems

The flaw resides in the Linux kernel’s media atomisp device driver for the GC2235 sensor. Any Linux system running a kernel that incorporates the unpatched gc2235 module is susceptible. The issue is vendor‑agnostic within the Linux project and applies to all builds that include this driver unchanged. Affected version information is not supplied.

Risk and Exploitability

The EPSS score is < 1% and the CVSS score is 5.5, which signals a moderate severity but a very low probability of exploitation. The flaw leads to a use‑after‑free or memory leak in the gc2235 driver when error paths in probe are triggered. No public exploits are known, and the issue is not in the KEV catalog. Accordingly, the risk to systems with the unpatched driver is low to uncertain.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to the latest stable release that includes the gc2235 driver fix (see the supplied commit URLs).
  • If a kernel upgrade is not immediately possible, disable or blacklist the GC2235 driver by preventing its module from being loaded, e.g., adding "blacklist gc2235" to /etc/modprobe.d/blacklist.conf.
  • Monitor the system for kernel crashes or abnormal kernel panics that might indicate exploitation attempts; configure crash dump collection and review dmesg logs for related errors.

Generated by OpenCVE AI on September 2, 2026 at 05:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4906-1 linux security update
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8917-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8918-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9091-1 Linux kernel (NVIDIA Tegra) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-401
CWE-416
CWE-668
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-401
CWE-416
CWE-668
Type Values Removed Values Added
Weaknesses CWE-401
CWE-416
Type Values Removed Values Added
Weaknesses CWE-401
CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: media: atomisp: gc2235: fix UAF and memory leak gc2235_probe() handles its error paths incorrectly. If media_entity_pads_init() fails, gc2235_remove() is called, which tears down the subdev and frees dev, but then still falls through to atomisp_register_i2c_module(). This results in use-after-free. If atomisp_register_i2c_module() fails, the media entity and control handler are left initialized and dev is leaked. gc2235_remove() unconditionally calls media_entity_cleanup() and v4l2_ctrl_handler_free(), but these are not initialized at every error path in gc2235_probe(). Replace gc2235_remove() calls in the probe error paths with explicit unwind labels that free only the resources initialized at each point of failure, in reverse order of initialization.
Title media: atomisp: gc2235: fix UAF and memory leak
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 30, 2026, 12:30 PM
Reserved
Aug 26, 2026, 2:34 PM
Status
Received
Published
Aug 28, 2026, 8:16 AM
Modified
Oct 30, 2026, 1:20 PM
Severity
Moderate
Public date
Aug 28, 2026, 12:00 AM