{"id":"CVE-2023-53349","aliases":["CVE-2023-53349"],"related":[],"kind":"vulnerability","state":"published","title":"media: ov2740: Fix memleak in ov2740_init_controls()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: ov2740: Fix memleak in ov2740_init_controls()\n\nThere is a kmemleak when testing the media/i2c/ov2740.c with bpf mock\ndevice:\n\nunreferenced object 0xffff8881090e19e0 (size 16):\n  comm \"51-i2c-ov2740\", pid 278, jiffies 4294781584 (age 23.613s)\n  hex dump (first 16 bytes):\n    00 f3 7c 0b 81 88 ff ff 80 75 6a 09 81 88 ff ff  ..|......uj.....\n  backtrace:\n    [<000000004e9fad8f>] __kmalloc_node+0x44/0x1b0\n    [<0000000039c802f4>] kvmalloc_node+0x34/0x180\n    [<000000009b8b5c63>] v4l2_ctrl_handler_init_class+0x11d/0x180\n[videodev]\n    [<0000000038644056>] ov2740_probe+0x37d/0x84f [ov2740]\n    [<0000000092489f59>] i2c_device_probe+0x28d/0x680\n    [<000000001038babe>] really_probe+0x17c/0x3f0\n    [<0000000098c7af1c>] __driver_probe_device+0xe3/0x170\n    [<00000000e1b3dc24>] device_driver_attach+0x34/0x80\n    [<000000005a04a34d>] bind_store+0x10b/0x1a0\n    [<00000000ce25d4f2>] drv_attr_store+0x49/0x70\n    [<000000007d9f4e9a>] sysfs_kf_write+0x8c/0xb0\n    [<00000000be6cff0f>] kernfs_fop_write_iter+0x216/0x2e0\n    [<0000000031ddb40a>] vfs_write+0x658/0x810\n    [<0000000041beecdd>] ksys_write+0xd6/0x1b0\n    [<0000000023755840>] do_syscall_64+0x38/0x90\n    [<00000000b2cc2da2>] entry_SYSCALL_64_after_hwframe+0x63/0xcd\n\nov2740_init_controls() won't clean all the allocated resources in fail\npath, which may causes the memleaks. Add v4l2_ctrl_handler_free() to\nprevent memleak.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: ov2740: Fix memleak in ov2740_init_controls()\n\nThere is a kmemleak when testing the media/i2c/ov2740.c with bpf mock\ndevice:\n\nunreferenced object 0xffff8881090e19e0 (size 16):\n  comm \"51-i2c-ov2740\", pid 278, jiffies 4294781584 (age 23.613s)\n  hex dump (first 16 bytes):\n    00 f3 7c 0b 81 88 ff ff 80 75 6a 09 81 88 ff ff  ..|......uj.....\n  backtrace:\n    [<000000004e9fad8f>] __kmalloc_node+0x44/0x1b0\n    [<0000000039c802f4>] kvmalloc_node+0x34/0x180\n    [<000000009b8b5c63>] v4l2_ctrl_handler_init_class+0x11d/0x180\n[videodev]\n    [<0000000038644056>] ov2740_probe+0x37d/0x84f [ov2740]\n    [<0000000092489f59>] i2c_device_probe+0x28d/0x680\n    [<000000001038babe>] really_probe+0x17c/0x3f0\n    [<0000000098c7af1c>] __driver_probe_device+0xe3/0x170\n    [<00000000e1b3dc24>] device_driver_attach+0x34/0x80\n    [<000000005a04a34d>] bind_store+0x10b/0x1a0\n    [<00000000ce25d4f2>] drv_attr_store+0x49/0x70\n    [<000000007d9f4e9a>] sysfs_kf_write+0x8c/0xb0\n    [<00000000be6cff0f>] kernfs_fop_write_iter+0x216/0x2e0\n    [<0000000031ddb40a>] vfs_write+0x658/0x810\n    [<0000000041beecdd>] ksys_write+0xd6/0x1b0\n    [<0000000023755840>] do_syscall_64+0x38/0x90\n    [<00000000b2cc2da2>] entry_SYSCALL_64_after_hwframe+0x63/0xcd\n\nov2740_init_controls() won't clean all the allocated resources in fail\npath, which may causes the memleaks. Add v4l2_ctrl_handler_free() to\nprevent memleak.","source":"cvelist"}],"published":"2025-09-17T14:56:40.510Z","modified":"2026-06-17T06:44:58.170Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"866edc895171f1256aad3e81dce193447955c202","fixed":"a163ee11345d8322321c28bd61631de32455b987","status":"affected"},{"type":"git","introduced":"866edc895171f1256aad3e81dce193447955c202","fixed":"3969b2ebc66039306f505c7c630c5530800f83c0","status":"affected"},{"type":"git","introduced":"866edc895171f1256aad3e81dce193447955c202","fixed":"fc33380ae06f438b652f66b9370b543976ac8a03","status":"affected"},{"type":"git","introduced":"866edc895171f1256aad3e81dce193447955c202","fixed":"7c405ee63447f14eefcfe12a18aa749abbd596ea","status":"affected"},{"type":"git","introduced":"866edc895171f1256aad3e81dce193447955c202","fixed":"2d899592ed7829d0d5140853bac4d58742a6b8af","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"5.10.173","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.99","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.16","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.3","lastAffected":"6.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.8","fixed":"5.10.173"},{"status":"affected","introduced":"5.11","fixed":"5.15.99"},{"status":"affected","introduced":"5.16","fixed":"6.1.16"},{"status":"affected","introduced":"6.2","fixed":"6.2.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/a163ee11345d8322321c28bd61631de32455b987","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3969b2ebc66039306f505c7c630c5530800f83c0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fc33380ae06f438b652f66b9370b543976ac8a03","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c405ee63447f14eefcfe12a18aa749abbd596ea","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2d899592ed7829d0d5140853bac4d58742a6b8af","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-01-14T18:40:56.511Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53349","url":"https://www.cve.org/CVERecord?id=CVE-2023-53349","licence":"CVE Terms of Use","modified":"2026-05-11T19:43:13.660Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53349","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53349","licence":"Public domain","modified":"2026-06-17T06:44:58.170Z"}],"updatedAt":"2026-11-25T22:58:34.844Z","epss":{"score":0.0021,"percentile":0.11872,"date":"2026-12-01T12:00:22.000Z"}}