CVE-2026-99957: net: wwan: iosm: validate msg_head before indexing msg_ring
In the Linux kernel, the following vulnerability has been resolved:
net: wwan: iosm: validate msghead before indexing msgring
ipcprotocolfreemsgget() reads msghead from shared memory and uses it directly as an index into msgring[]. If the head is out of range, the subsequent memset() writes beyond the message ring.
Validate head against IPCMEMMSGENTRIES 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ipc_protocol_free_msg_get(), validate msg_head against IPC_MEM_MSG_ENTRIES before indexing msg_ring; if it is out of range, report the error and fail the allocation.