CVE-2026-68220: media: nxp: imx8-isi: Add missing v4l2_subdev_cleanup() in crossbar and pipe

Greg Kroah-Hartman <[email protected]>
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026081014-CVE-2026-68220-193e@gregkh>
From: Greg Kroah-Hartman <[email protected]>

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

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

media: nxp: imx8-isi: Add missing v4l2_subdev_cleanup() in crossbar and pipe

Both mxc_isi_crossbar_init() and mxc_isi_pipe_init() call
v4l2_subdev_init_finalize() which allocates the subdev active state,
but neither mxc_isi_crossbar_cleanup() nor mxc_isi_pipe_cleanup()
calls v4l2_subdev_cleanup() to free it.

This causes a memory leak on every rmmod, reported by kmemleak:

  unreferenced object 0xffff0000d06fc800 (size 192):
    comm "(udev-worker)", pid 254, jiffies 4294913455
    backtrace (crc 36eeae58):
      kmemleak_alloc+0x34/0x40
      __kvmalloc_node_noprof+0x5f8/0x7d8
      __v4l2_subdev_state_alloc+0x1fc/0x30c
      __v4l2_subdev_init_finalize+0x178/0x368

Add the missing v4l2_subdev_cleanup() calls before media_entity_cleanup()
in both crossbar and pipe cleanup paths.

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


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

	Issue introduced in 6.4 with commit cf21f328fcafacf4f96e7a30ef9dceede1076378 and fixed in 6.6.148 with commit 549dd1afce2cf79a826d1f9742effb4565d52871
	Issue introduced in 6.4 with commit cf21f328fcafacf4f96e7a30ef9dceede1076378 and fixed in 6.12.101 with commit f04ec98605420e7c2c1ad6d2f6fb26692d4f218a
	Issue introduced in 6.4 with commit cf21f328fcafacf4f96e7a30ef9dceede1076378 and fixed in 6.18.42 with commit 9e61258fbc3cfc053e4c2ed72254c2de76772354
	Issue introduced in 6.4 with commit cf21f328fcafacf4f96e7a30ef9dceede1076378 and fixed in 7.1.6 with commit 9c5ddbabc31fda93a508d9b8f0c776a4a08e49f5
	Issue introduced in 6.4 with commit cf21f328fcafacf4f96e7a30ef9dceede1076378 and fixed in 7.2-rc1 with commit 567418eedd25b3d86d489807682030b4b98b73d9

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-68220
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/platform/nxp/imx8-isi/imx8-isi-crossbar.c
	drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.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/549dd1afce2cf79a826d1f9742effb4565d52871
	https://git.kernel.org/stable/c/f04ec98605420e7c2c1ad6d2f6fb26692d4f218a
	https://git.kernel.org/stable/c/9e61258fbc3cfc053e4c2ed72254c2de76772354
	https://git.kernel.org/stable/c/9c5ddbabc31fda93a508d9b8f0c776a4a08e49f5
	https://git.kernel.org/stable/c/567418eedd25b3d86d489807682030b4b98b73d9
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.