CVE-2026-80650

media: atomisp: gc2235: fix UAF and memory leak

State
Published
Severity
Not scored
Published
Aug 28, 2026
Updated
Oct 30, 2026
Reserved
Aug 26, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • a49d25364dfb9f8a64037488a39ab1f56c5fa419 to before 51b8dc5163d2ff2bf04019f8bf7e3bd0e75bb654Affected
  • ad85094b293e40e7a2f831b0311a389d952ebd5e to before 5bed166be3054f9ebb527dbce7158677085eea59Affected
  • ad85094b293e40e7a2f831b0311a389d952ebd5e to before 592a0e78ab08f6373c40912365759d8a066e7711Affected
  • ad85094b293e40e7a2f831b0311a389d952ebd5e to before fdbb8e55578b4ab647fa58827a9dd8730d7f4addAffected
  • ad85094b293e40e7a2f831b0311a389d952ebd5e to before d57e67ea48e4d095052f2b14d8dd7593621f862fAffected
  • ad85094b293e40e7a2f831b0311a389d952ebd5e to before f614bf0a64aa1cb7444d152a96798a6bf1d49e1fAffected
  • ad85094b293e40e7a2f831b0311a389d952ebd5e to before 628f763aee0047ff44974388d6f70f75a763026bAffected
LinuxLinux
  • 4.12Affected
  • 5.8Affected
  • before 4.12Not affected
  • 4.18 to before 5.8Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.160 through 6.6.*Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.40 through 6.18.*Not affected
  • 7.1.5 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.