Skip to contentSkip to conversation

CVE-2026-43246: media: i2c/tw9906: Fix potential memory leak in tw9906_probe()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 6

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

media: i2c/tw9906: Fix potential memory leak in tw9906_probe()

In one of the error paths in tw9906_probe(), the memory allocated in v4l2_ctrl_handler_init() and v4l2_ctrl_new_std() is not freed. Fix that by calling v4l2_ctrl_handler_free() on the handler in that error path.

The Linux kernel CVE team has assigned CVE-2026-43246 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.10 with commit a000e9a02b5885b1b69f691c80e346d102f94a88 and fixed in 5.10.252 with commit e9a490937942f18205dac7b6b192975ef1369ae1
	Issue introduced in 3.10 with commit a000e9a02b5885b1b69f691c80e346d102f94a88 and fixed in 5.15.202 with commit 9548a8bbf511a252a9848f96220c6b95c9a3b918
	Issue introduced in 3.10 with commit a000e9a02b5885b1b69f691c80e346d102f94a88 and fixed in 6.1.165 with commit 0c33338514d8246280533a77091e6b6ee548c606
	Issue introduced in 3.10 with commit a000e9a02b5885b1b69f691c80e346d102f94a88 and fixed in 6.6.128 with commit ccb92def042a3636ed47f25a30bd553788e5191e
	Issue introduced in 3.10 with commit a000e9a02b5885b1b69f691c80e346d102f94a88 and fixed in 6.12.75 with commit fb09d8b80046216646f1a344410cfa9cfa6c6c7c
	Issue introduced in 3.10 with commit a000e9a02b5885b1b69f691c80e346d102f94a88 and fixed in 6.18.16 with commit 377a7756914364d72550fc86ca0f404ef1d96141
	Issue introduced in 3.10 with commit a000e9a02b5885b1b69f691c80e346d102f94a88 and fixed in 6.19.6 with commit 59420d5d9c46b084e21f9ea6ce79fc79ae9e414c
	Issue introduced in 3.10 with commit a000e9a02b5885b1b69f691c80e346d102f94a88 and fixed in 7.0 with commit cad237b6c875fbee5d353a2b289e98d240d17ec8

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-43246

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	drivers/media/i2c/tw9906.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/e9a490937942f18205dac7b6b192975ef1369ae1
	https://git.kernel.org/stable/c/9548a8bbf511a252a9848f96220c6b95c9a3b918
	https://git.kernel.org/stable/c/0c33338514d8246280533a77091e6b6ee548c606
	https://git.kernel.org/stable/c/ccb92def042a3636ed47f25a30bd553788e5191e
	https://git.kernel.org/stable/c/fb09d8b80046216646f1a344410cfa9cfa6c6c7c
	https://git.kernel.org/stable/c/377a7756914364d72550fc86ca0f404ef1d96141
	https://git.kernel.org/stable/c/59420d5d9c46b084e21f9ea6ce79fc79ae9e414c
	https://git.kernel.org/stable/c/cad237b6c875fbee5d353a2b289e98d240d17ec8