CVE-2026-68224: media: mali-c55: Fix possible ERR_PTR in enable_streams

Greg Kroah-Hartman <[email protected]>
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026081015-CVE-2026-68224-7e84@gregkh>
From: Greg Kroah-Hartman <[email protected]>

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

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

media: mali-c55: Fix possible ERR_PTR in enable_streams

The media_pad_remote_pad_unique() function returns either a valid
pointer or an ERR_PTR() on failure (-ENOTUNIQ if multiple links are
enabled, -ENOLINK if no connected pad is found). The return value
was assigned directly to isp->remote_src and dereferenced in the
next line without checking for errors, which could lead to an
ERR_PTR dereference.

Add proper error checking with IS_ERR() before dereferencing the
pointer. Also set isp->remote_src to NULL on error to maintain
consistency with other error paths in the function.

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


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

	Issue introduced in 6.19 with commit d5f281f3dd2988998daf45f591920c6013a620d8 and fixed in 7.1.6 with commit 65d4424275845e9f9012b40b5cbff4572771d768
	Issue introduced in 6.19 with commit d5f281f3dd2988998daf45f591920c6013a620d8 and fixed in 7.2-rc1 with commit 94c6402e423d36a2bd6f62055a65a0d439d84da7

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-68224
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/arm/mali-c55/mali-c55-isp.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/65d4424275845e9f9012b40b5cbff4572771d768
	https://git.kernel.org/stable/c/94c6402e423d36a2bd6f62055a65a0d439d84da7
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.