In the Linux kernel, the following vulnerability has been resolved: net: wwan: iosm: validate msg_head before indexing msg_ring ipc_protocol_free_msg_get() reads msg_head from shared memory and uses it directly as an index into msg_ring[]. If the head is out of range, the subsequent memset() writes beyond the message ring. Validate head against IPC_MEM_MSG_ENTRIES before using it as an index. The ring is a circular buffer, so a value outside the valid range indicates a corrupted head pointer; report the error and fail the allocation instead of writing out of bounds.
https://git.kernel.org/stable/c/e2730951db372af27810e7506121b3715459910f
https://git.kernel.org/stable/c/c8391d2e89b809d07c980680a385efed54d90f9a
https://git.kernel.org/stable/c/849c7dd9265b4b9c368e55b22a914a5d9d1dd9ee
https://git.kernel.org/stable/c/7511c1c4baa944dd73f724566bf78abf15944502
https://git.kernel.org/stable/c/6375485ab416c504bc4ed0c29ec09a2427bebe39
https://git.kernel.org/stable/c/46cbf85155e5451b6682ea0c17bc62ec564aec36
https://git.kernel.org/stable/c/3f57fc88f13d89e1e7a24af5a46c0e6ab680ce56