Skip to contentSkip to conversation

CVE-2026-43218: media: i2c/tw9903: Fix potential memory leak in tw9903_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/tw9903: Fix potential memory leak in tw9903_probe()

In one of the error paths in tw9903_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-43218 to this issue.

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

	Issue introduced in 3.10 with commit 0890ec19c65def8c8e445931b026e0fa8d809a34 and fixed in 5.10.252 with commit e54aa17c968c4de2c5f7b7ea390c63d33c07513b
	Issue introduced in 3.10 with commit 0890ec19c65def8c8e445931b026e0fa8d809a34 and fixed in 5.15.202 with commit 32f0493506313775d3bd448de34762b6538da6bd
	Issue introduced in 3.10 with commit 0890ec19c65def8c8e445931b026e0fa8d809a34 and fixed in 6.1.165 with commit 92537a15780b6d0281fd8286f93fbc3652e35f48
	Issue introduced in 3.10 with commit 0890ec19c65def8c8e445931b026e0fa8d809a34 and fixed in 6.6.128 with commit 9cb9eca33d20316ed3c7a938793b8735ac3e128b
	Issue introduced in 3.10 with commit 0890ec19c65def8c8e445931b026e0fa8d809a34 and fixed in 6.12.75 with commit a114918270f0d95c607d69b03a244e6afe54813f
	Issue introduced in 3.10 with commit 0890ec19c65def8c8e445931b026e0fa8d809a34 and fixed in 6.18.16 with commit cc7aeed33e4f55c76f35f0fca73e4dfe12a63a3a
	Issue introduced in 3.10 with commit 0890ec19c65def8c8e445931b026e0fa8d809a34 and fixed in 6.19.6 with commit add02a3fb1fd71b004f0ed824cbac00f850de558
	Issue introduced in 3.10 with commit 0890ec19c65def8c8e445931b026e0fa8d809a34 and fixed in 7.0 with commit 9cea16fea47e5553f51d10957677ff735b1eff03

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-43218

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/tw9903.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/e54aa17c968c4de2c5f7b7ea390c63d33c07513b
	https://git.kernel.org/stable/c/32f0493506313775d3bd448de34762b6538da6bd
	https://git.kernel.org/stable/c/92537a15780b6d0281fd8286f93fbc3652e35f48
	https://git.kernel.org/stable/c/9cb9eca33d20316ed3c7a938793b8735ac3e128b
	https://git.kernel.org/stable/c/a114918270f0d95c607d69b03a244e6afe54813f
	https://git.kernel.org/stable/c/cc7aeed33e4f55c76f35f0fca73e4dfe12a63a3a
	https://git.kernel.org/stable/c/add02a3fb1fd71b004f0ed824cbac00f850de558
	https://git.kernel.org/stable/c/9cea16fea47e5553f51d10957677ff735b1eff03