# CVE-2023-53637: media: i2c: ov772x: Fix memleak in ov772x\_probe()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-10-07T15:19:38.317Z
- **Modified:** 2026-06-17T06:45:46.150Z

## Who should check

- Anyone running Linux \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< cc3b6011d7a9f149489eb9420c6305a779162c57; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< 448ce1cd50387b1345ec14eb191ef05f7afc2a26; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< dfaafeb8e9537969e8dba75491f732478c7fa9d6; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< 1da495101ef7507eb4f4b1dbec2874d740eff251; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< ac93f8ac66e60227bed42d5a023f0e6c15b52c0a; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< c86d760c1c6855a6131e78d0ddacc48c79324ac3; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< 7485edb2b6ca5960205c0a49bedfd09bba30e521
- Anyone running Linux 4.17

## Description

In the Linux kernel, the following vulnerability has been resolved:

media: i2c: ov772x: Fix memleak in ov772x\_probe()

A memory leak was reported when testing ov772x with bpf mock device:

AssertionError: unreferenced object 0xffff888109afa7a8 (size 8):
  comm "python3", pid 279, jiffies 4294805921 (age 20.681s)
  hex dump (first 8 bytes):
    80 22 88 15 81 88 ff ff                          ."......
  backtrace:
    \[\<000000009990b438\>\] \_\_kmalloc\_node+0x44/0x1b0
    \[\<000000009e32f7d7\>\] kvmalloc\_node+0x34/0x180
    \[\<00000000faf48134\>\] v4l2\_ctrl\_handler\_init\_class+0x11d/0x180 \[videodev\]
    \[\<00000000da376937\>\] ov772x\_probe+0x1c3/0x68c \[ov772x\]
    \[\<000000003f0d225e\>\] i2c\_device\_probe+0x28d/0x680
    \[\<00000000e0b6db89\>\] really\_probe+0x17c/0x3f0
    \[\<000000001b19fcee\>\] \_\_driver\_probe\_device+0xe3/0x170
    \[\<0000000048370519\>\] driver\_probe\_device+0x49/0x120
    \[\<000000005ead07a0\>\] \_\_device\_attach\_driver+0xf7/0x150
    \[\<0000000043f452b8\>\] bus\_for\_each\_drv+0x114/0x180
    \[\<00000000358e5596\>\] \_\_device\_attach+0x1e5/0x2d0
    \[\<0000000043f83c5d\>\] bus\_probe\_device+0x126/0x140
    \[\<00000000ee0f3046\>\] device\_add+0x810/0x1130
    \[\<00000000e0278184\>\] i2c\_new\_client\_device+0x359/0x4f0
    \[\<0000000070baf34f\>\] of\_i2c\_register\_device+0xf1/0x110
    \[\<00000000a9f2159d\>\] of\_i2c\_notify+0x100/0x160
unreferenced object 0xffff888119825c00 (size 256):
  comm "python3", pid 279, jiffies 4294805921 (age 20.681s)
  hex dump (first 32 bytes):
    00 b4 a5 17 81 88 ff ff 00 5e 82 19 81 88 ff ff  .........^......
    10 5c 82 19 81 88 ff ff 10 5c 82 19 81 88 ff ff  .\\.......\\......
  backtrace:
    \[\<000000009990b438\>\] \_\_kmalloc\_node+0x44/0x1b0
    \[\<000000009e32f7d7\>\] kvmalloc\_node+0x34/0x180
    \[\<0000000073d88e0b\>\] v4l2\_ctrl\_new.cold+0x19b/0x86f \[videodev\]
    \[\<00000000b1f576fb\>\] v4l2\_ctrl\_new\_std+0x16f/0x210 \[videodev\]
    \[\<00000000caf7ac99\>\] ov772x\_probe+0x1fa/0x68c \[ov772x\]
    \[\<000000003f0d225e\>\] i2c\_device\_probe+0x28d/0x680
    \[\<00000000e0b6db89\>\] really\_probe+0x17c/0x3f0
    \[\<000000001b19fcee\>\] \_\_driver\_probe\_device+0xe3/0x170
    \[\<0000000048370519\>\] driver\_probe\_device+0x49/0x120
    \[\<000000005ead07a0\>\] \_\_device\_attach\_driver+0xf7/0x150
    \[\<0000000043f452b8\>\] bus\_for\_each\_drv+0x114/0x180
    \[\<00000000358e5596\>\] \_\_device\_attach+0x1e5/0x2d0
    \[\<0000000043f83c5d\>\] bus\_probe\_device+0x126/0x140
    \[\<00000000ee0f3046\>\] device\_add+0x810/0x1130
    \[\<00000000e0278184\>\] i2c\_new\_client\_device+0x359/0x4f0
    \[\<0000000070baf34f\>\] of\_i2c\_register\_device+0xf1/0x110

The reason is that if priv-\>hdl.error is set, ov772x\_probe() jumps to the
error\_mutex\_destroy without doing v4l2\_ctrl\_handler\_free(), and all
resources allocated in v4l2\_ctrl\_handler\_init() and v4l2\_ctrl\_new\_std()
are leaked.

## Affected and fixed versions

- Linux: \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< cc3b6011d7a9f149489eb9420c6305a779162c57; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< 448ce1cd50387b1345ec14eb191ef05f7afc2a26; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< dfaafeb8e9537969e8dba75491f732478c7fa9d6; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< 1da495101ef7507eb4f4b1dbec2874d740eff251; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< ac93f8ac66e60227bed42d5a023f0e6c15b52c0a; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< c86d760c1c6855a6131e78d0ddacc48c79324ac3; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< 7485edb2b6ca5960205c0a49bedfd09bba30e521 (cvelist)
- Linux: 4.17 (cvelist)

## Mitigation

- Upgrade Linux to 7485edb2b6ca5960205c0a49bedfd09bba30e521 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53637.md
Affected: Linux >= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, < cc3b6011d7a9f149489eb9420c6305a779162c57; >= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, < 448ce1cd50387b1345ec14eb191ef05f7afc2a26; >= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, < dfaafeb8e9537969e8dba75491f732478c7fa9d6; >= 1112babde21483d86ed3fba…
Fixed in: Linux 448ce1cd50387b1345ec14eb191ef05f7afc2a26, Linux 1da495101ef7507eb4f4b1dbec2874d740eff251, Linux 7485edb2b6ca5960205c0a49bedfd09bba30e521

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-2023-53637 being exploited?

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

### How serious is CVE-2023-53637?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53637?

Linux \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< cc3b6011d7a9f149489eb9420c6305a779162c57; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< 448ce1cd50387b1345ec14eb191ef05f7afc2a26; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< dfaafeb8e9537969e8dba75491f732478c7fa9d6; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< 1da495101ef7507eb4f4b1dbec2874d740eff251; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< ac93f8ac66e60227bed42d5a023f0e6c15b52c0a; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< c86d760c1c6855a6131e78d0ddacc48c79324ac3; \>= 1112babde21483d86ed3fbad1320b0ddf9ab2ece, \< 7485edb2b6ca5960205c0a49bedfd09bba30e521; Linux 4.17.

### Is there a fix for CVE-2023-53637?

Yes. Fixed in Linux 448ce1cd50387b1345ec14eb191ef05f7afc2a26, Linux 1da495101ef7507eb4f4b1dbec2874d740eff251, Linux 7485edb2b6ca5960205c0a49bedfd09bba30e521. Upgrade Linux to 7485edb2b6ca5960205c0a49bedfd09bba30e521 or later.

### How do I check if I'm affected by CVE-2023-53637?

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

- patch: <https://git.kernel.org/stable/c/cc3b6011d7a9f149489eb9420c6305a779162c57>
- patch: <https://git.kernel.org/stable/c/448ce1cd50387b1345ec14eb191ef05f7afc2a26>
- patch: <https://git.kernel.org/stable/c/dfaafeb8e9537969e8dba75491f732478c7fa9d6>
- patch: <https://git.kernel.org/stable/c/1da495101ef7507eb4f4b1dbec2874d740eff251>
- patch: <https://git.kernel.org/stable/c/ac93f8ac66e60227bed42d5a023f0e6c15b52c0a>
- patch: <https://git.kernel.org/stable/c/c86d760c1c6855a6131e78d0ddacc48c79324ac3>
- patch: <https://git.kernel.org/stable/c/7485edb2b6ca5960205c0a49bedfd09bba30e521>

## 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-2023-53637>

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