# CVE-2026-80650: media: atomisp: gc2235: fix UAF and memory leak

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 7, 2026-11-26)
- **Published:** 2026-08-28T06:48:58.858Z
- **Modified:** 2026-10-30T13:20:09.463Z

## Who should check

- Anyone running Linux \>= a49d25364dfb9f8a64037488a39ab1f56c5fa419, \< 51b8dc5163d2ff2bf04019f8bf7e3bd0e75bb654; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< 5bed166be3054f9ebb527dbce7158677085eea59; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< 592a0e78ab08f6373c40912365759d8a066e7711; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< fdbb8e55578b4ab647fa58827a9dd8730d7f4add; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< d57e67ea48e4d095052f2b14d8dd7593621f862f; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< f614bf0a64aa1cb7444d152a96798a6bf1d49e1f; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< 628f763aee0047ff44974388d6f70f75a763026b
- Anyone running Linux 4.12; 5.8

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

## Affected and fixed versions

- Linux: \>= a49d25364dfb9f8a64037488a39ab1f56c5fa419, \< 51b8dc5163d2ff2bf04019f8bf7e3bd0e75bb654; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< 5bed166be3054f9ebb527dbce7158677085eea59; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< 592a0e78ab08f6373c40912365759d8a066e7711; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< fdbb8e55578b4ab647fa58827a9dd8730d7f4add; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< d57e67ea48e4d095052f2b14d8dd7593621f862f; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< f614bf0a64aa1cb7444d152a96798a6bf1d49e1f; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< 628f763aee0047ff44974388d6f70f75a763026b (cvelist)
- Linux: 4.12; 5.8 (cvelist)

## Mitigation

- Upgrade Linux to 628f763aee0047ff44974388d6f70f75a763026b or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-80650.md
Affected: Linux >= a49d25364dfb9f8a64037488a39ab1f56c5fa419, < 51b8dc5163d2ff2bf04019f8bf7e3bd0e75bb654; >= ad85094b293e40e7a2f831b0311a389d952ebd5e, < 5bed166be3054f9ebb527dbce7158677085eea59; >= ad85094b293e40e7a2f831b0311a389d952ebd5e, < 592a0e78ab08f6373c40912365759d8a066e7711; >= ad85094b293e40e7a2f831b…
Fixed in: Linux 51b8dc5163d2ff2bf04019f8bf7e3bd0e75bb654, Linux 5bed166be3054f9ebb527dbce7158677085eea59, Linux 592a0e78ab08f6373c40912365759d8a066e7711, Linux 628f763aee0047ff44974388d6f70f75a763026b

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-2026-80650 being exploited?

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

### How serious is CVE-2026-80650?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-80650?

Linux \>= a49d25364dfb9f8a64037488a39ab1f56c5fa419, \< 51b8dc5163d2ff2bf04019f8bf7e3bd0e75bb654; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< 5bed166be3054f9ebb527dbce7158677085eea59; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< 592a0e78ab08f6373c40912365759d8a066e7711; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< fdbb8e55578b4ab647fa58827a9dd8730d7f4add; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< d57e67ea48e4d095052f2b14d8dd7593621f862f; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< f614bf0a64aa1cb7444d152a96798a6bf1d49e1f; \>= ad85094b293e40e7a2f831b0311a389d952ebd5e, \< 628f763aee0047ff44974388d6f70f75a763026b; Linux 4.12; 5.8.

### Is there a fix for CVE-2026-80650?

Yes. Fixed in Linux 51b8dc5163d2ff2bf04019f8bf7e3bd0e75bb654, Linux 5bed166be3054f9ebb527dbce7158677085eea59, Linux 592a0e78ab08f6373c40912365759d8a066e7711, Linux 628f763aee0047ff44974388d6f70f75a763026b. Upgrade Linux to 628f763aee0047ff44974388d6f70f75a763026b or later.

### How do I check if I'm affected by CVE-2026-80650?

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

- other: <https://git.kernel.org/stable/c/51b8dc5163d2ff2bf04019f8bf7e3bd0e75bb654>
- other: <https://git.kernel.org/stable/c/5bed166be3054f9ebb527dbce7158677085eea59>
- other: <https://git.kernel.org/stable/c/592a0e78ab08f6373c40912365759d8a066e7711>
- other: <https://git.kernel.org/stable/c/fdbb8e55578b4ab647fa58827a9dd8730d7f4add>
- other: <https://git.kernel.org/stable/c/d57e67ea48e4d095052f2b14d8dd7593621f862f>
- other: <https://git.kernel.org/stable/c/f614bf0a64aa1cb7444d152a96798a6bf1d49e1f>
- other: <https://git.kernel.org/stable/c/628f763aee0047ff44974388d6f70f75a763026b>

## 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-2026-80650>

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