CVE-2026-68208: media: ti: vpe: Fix the error code of devm_kzalloc() in vip_probe_slice()

Greg Kroah-Hartman <[email protected]>
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026081012-CVE-2026-68208-1aa0@gregkh>
From: Greg Kroah-Hartman <[email protected]>

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

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

media: ti: vpe: Fix the error code of devm_kzalloc() in vip_probe_slice()

In vip_probe_slice(), the error check for devm_kzalloc() incorrectly
uses PTR_ERR_OR_ZERO() which returns 0 for NULL pointer.

Return -ENOMEM for devm_kzalloc() failure.

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


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

	Issue introduced in 7.0 with commit fc2873aa4a21355593b55eb49ff534d31f81c584 and fixed in 7.1.6 with commit 956879b173c2cf782fbc3d18947fd1da286359cf
	Issue introduced in 7.0 with commit fc2873aa4a21355593b55eb49ff534d31f81c584 and fixed in 7.2-rc1 with commit e8f319eae96a3d718e810d52432020a2b77f5f60

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-68208
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/ti/vpe/vip.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/956879b173c2cf782fbc3d18947fd1da286359cf
	https://git.kernel.org/stable/c/e8f319eae96a3d718e810d52432020a2b77f5f60
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.