CVE-2023-53349
media: ov2740: Fix memleak in ov2740_init_controls()
Mitigation
- Upgrade Linux to 2d899592ed7829d0d5140853bac4d58742a6b8af or later.
Who should check
- Anyone running Linux >= 866edc895171f1256aad3e81dce193447955c202, < a163ee11345d8322321c28bd61631de32455b987; >= 866edc895171f1256aad3e81dce193447955c202, < 3969b2ebc66039306f505c7c630c5530800f83c0; >= 866edc895171f1256aad3e81dce193447955c202, < fc33380ae06f438b652f66b9370b543976ac8a03; >= 866edc895171f1256aad3e81dce193447955c202, < 7c405ee63447f14eefcfe12a18aa749abbd596ea; >= 866edc895171f1256aad3e81dce193447955c202, < 2d899592ed7829d0d5140853bac4d58742a6b8af
- Anyone running Linux 5.8
Vulnerability facts
- Affected
- Linux >= 866edc895171f1256aad3e81dce193447955c202, < a163ee11345d8322321c28bd61631de32455b987; >= 866edc895171f1256aad3e81dce193447955c202, < 3969b2ebc66039306f505c7c630c5530800f83c0; >= 866edc895171f1256aad3e81dce193447955c202, < fc33380ae06f438b652f66b9370b543976ac8a03; >= 866edc895171f1256aad3e81dce193447955c202, < 7c405ee63447f14eefcfe12a18aa749abbd596ea; >= 866edc895171f1256aad3e81dce193447955c202, < 2d899592ed7829d0d5140853bac4d58742a6b8af; Linux 5.8
- Fixed in
- Linux 3969b2ebc66039306f505c7c630c5530800f83c0, Linux 7c405ee63447f14eefcfe12a18aa749abbd596ea, Linux 2d899592ed7829d0d5140853bac4d58742a6b8af
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
- CWE
- CWE-401
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: media: ov2740: Fix memleak in ov2740_init_controls() There is a kmemleak when testing the media/i2c/ov2740.c with bpf mock device: unreferenced object 0xffff8881090e19e0 (size 16): comm "51-i2c-ov2740", pid 278, jiffies 4294781584 (age 23.613s) hex dump (first 16 bytes): 00 f3 7c 0b 81 88 ff ff 80 75 6a 09 81 88 ff ff ..|......uj..... backtrace: [<000000004e9fad8f>] __kmalloc_node+0x44/0x1b0 [<0000000039c802f4>] kvmalloc_node+0x34/0x180 [<000000009b8b5c63>] v4l2_ctrl_handler_init_class+0x11d/0x180 [videodev] [<0000000038644056>] ov2740_probe+0x37d/0x84f [ov2740] [<0000000092489f59>] i2c_device_probe+0x28d/0x680 [<000000001038babe>] really_probe+0x17c/0x3f0 [<0000000098c7af1c>] __driver_probe_device+0xe3/0x170 [<00000000e1b3dc24>] device_driver_attach+0x34/0x80 [<000000005a04a34d>] bind_store+0x10b/0x1a0 [<00000000ce25d4f2>] drv_attr_store+0x49/0x70 [<000000007d9f4e9a>] sysfs_kf_write+0x8c/0xb0 [<00000000be6cff0f>] kernfs_fop_write_iter+0x216/0x2e0 [<0000000031ddb40a>] vfs_write+0x658/0x810 [<0000000041beecdd>] ksys_write+0xd6/0x1b0 [<0000000023755840>] do_syscall_64+0x38/0x90 [<00000000b2cc2da2>] entry_SYSCALL_64_after_hwframe+0x63/0xcd ov2740_init_controls() won't clean all the allocated resources in fail path, which may causes the memleaks. Add v4l2_ctrl_handler_free() to prevent memleak.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 866edc895171f1256aad3e81dce193447955c202, < a163ee11345d8322321c28bd61631de32455b987; >= 866edc895171f1256aad3e81dce193447955c202, < 3969b2ebc66039306f505c7c630c5530800f83c0; >= 866edc895171f1256aad3e81dce193447955c202, < fc33380ae06f438b652f66b9370b543976ac8a03; >= 866edc895171f1256aad3e81dce193447955c202, < 7c405ee63447f14eefcfe12a18aa749abbd596ea; >= 866edc895171f1256aad3e81dce193447955c202, < 2d899592ed7829d0d5140853bac4d58742a6b8af | — | cvelist |
| Linux | 5.8 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-53349. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-53349.md Affected: Linux >= 866edc895171f1256aad3e81dce193447955c202, < a163ee11345d8322321c28bd61631de32455b987; >= 866edc895171f1256aad3e81dce193447955c202, < 3969b2ebc66039306f505c7c630c5530800f83c0; >= 866edc895171f1256aad3e81dce193447955c202, < fc33380ae06f438b652f66b9370b543976ac8a03; >= 866edc895171f1256aad3e8… Fixed in: Linux 3969b2ebc66039306f505c7c630c5530800f83c0, Linux 7c405ee63447f14eefcfe12a18aa749abbd596ea, Linux 2d899592ed7829d0d5140853bac4d58742a6b8af 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.
References
Patches
- https://git.kernel.org/stable/c/a163ee11345d8322321c28bd61631de32455b987
- https://git.kernel.org/stable/c/3969b2ebc66039306f505c7c630c5530800f83c0
- https://git.kernel.org/stable/c/fc33380ae06f438b652f66b9370b543976ac8a03
- https://git.kernel.org/stable/c/7c405ee63447f14eefcfe12a18aa749abbd596ea
- https://git.kernel.org/stable/c/2d899592ed7829d0d5140853bac4d58742a6b8af
FAQ
Is CVE-2023-53349 being exploited?
There is no confirmed exploitation: CVE-2023-53349 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-53349?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2023-53349?
Linux >= 866edc895171f1256aad3e81dce193447955c202, < a163ee11345d8322321c28bd61631de32455b987; >= 866edc895171f1256aad3e81dce193447955c202, < 3969b2ebc66039306f505c7c630c5530800f83c0; >= 866edc895171f1256aad3e81dce193447955c202, < fc33380ae06f438b652f66b9370b543976ac8a03; >= 866edc895171f1256aad3e81dce193447955c202, < 7c405ee63447f14eefcfe12a18aa749abbd596ea; >= 866edc895171f1256aad3e81dce193447955c202, < 2d899592ed7829d0d5140853bac4d58742a6b8af; Linux 5.8.
Is there a fix for CVE-2023-53349?
Yes. Fixed in Linux 3969b2ebc66039306f505c7c630c5530800f83c0, Linux 7c405ee63447f14eefcfe12a18aa749abbd596ea, Linux 2d899592ed7829d0d5140853bac4d58742a6b8af. Upgrade Linux to 2d899592ed7829d0d5140853bac4d58742a6b8af or later.
How do I check if I'm affected by CVE-2023-53349?
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.