CVE-2025-68812: media: iris: Add sanity check for stop streaming
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: iris: Add sanity check for stop streaming
Add sanity check in iris_vb2_stop_streaming. If inst->state is already IRIS_INST_ERROR, we should skip the stream_off operation because it would still send packets to the firmware.
In iris_kill_session, inst->state is set to IRIS_INST_ERROR and session_close is executed, which will kfree(inst_hfi_gen2->packet). If stop_streaming is called afterward, it will cause a crash.
[bod: remove qcom from patch title]
The Linux kernel CVE team has assigned CVE-2025-68812 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.15 with commit 11712ce70f8e52fc94365b48ee15aec806b02422 and fixed in 6.18.3 with commit f8b136296722e258ec43237a35f72c92a6d4501a Issue introduced in 6.15 with commit 11712ce70f8e52fc94365b48ee15aec806b02422 and fixed in 6.19-rc1 with commit ad699fa78b59241c9d71a8cafb51525f3dab04d4
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-2025-68812
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/qcom/iris/iris_vb2.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/f8b136296722e258ec43237a35f72c92a6d4501a https://git.kernel.org/stable/c/ad699fa78b59241c9d71a8cafb51525f3dab04d4