Skip to contentSkip to conversation

CVE-2022-50759: media: i2c: ov5648: Free V4L2 fwnode data on unbind

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 24, 2025

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: ov5648: Free V4L2 fwnode data on unbind

The V4L2 fwnode data structure doesn't get freed on unbind, which leads to a memleak.

The Linux kernel CVE team has assigned CVE-2022-50759 to this issue.

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

	Issue introduced in 5.12 with commit e43ccb0a045f34838b786e8021dc4838b4af5c38 and fixed in 6.0.16 with commit 4a34fd4d9b548789d4a2018940edbec86282ed3b
	Issue introduced in 5.12 with commit e43ccb0a045f34838b786e8021dc4838b4af5c38 and fixed in 6.1.2 with commit 3a54b72868930f07935accaf95ec4df639324940
	Issue introduced in 5.12 with commit e43ccb0a045f34838b786e8021dc4838b4af5c38 and fixed in 6.2 with commit c95770e4fc172696dcb1450893cda7d6324d96fc

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-2022-50759

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/ov5648.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/4a34fd4d9b548789d4a2018940edbec86282ed3b
	https://git.kernel.org/stable/c/3a54b72868930f07935accaf95ec4df639324940
	https://git.kernel.org/stable/c/c95770e4fc172696dcb1450893cda7d6324d96fc