media: iris: gen2: Add sanity check for session stop
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.166.19.67.0In the Linux kernel, the following vulnerability has been resolved:
media: iris: gen2: Add sanity check for session stop
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.
Add a NULL check for inst_hfi_gen2->packet before sendling STOP packet to firmware to fix that.
From the CVE record · Linux
The Linux kernel’s media iris gen2 driver can crash if stop_streaming runs after iris_kill_session frees a packet. The input does not specify how an attacker could trigger this sequence or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with the media iris gen2 driver should check their versions against the vendor advisory; affected versions are not specified.