All reports
Medium

kernel: ASoC: SOF: ipc3-control: Fix TOCTOU in bytes_put and bytes_get

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-72301

Probability of exploitation in the next 30 days: 0.17%

FIRST EPSS · 2026-11-24

Description

In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: ipc3-control: Fix TOCTOU in bytes_put and bytes_get In sof_ipc3_bytes_put(), the size used for the memcpy is derived from the old data->size already in the buffer, not the incoming new data's size field. If the new data has a different size, the copy length is wrong: it may truncate valid data or copy stale bytes. Similarly, sof_ipc3_bytes_get() checks data->size against max_size without accounting for the sizeof(struct sof_ipc_ctrl_data) offset of the flex array within the allocation. Fix bytes_put to validate and use the incoming data's sof_abi_hdr.size from ucontrol before copying. Fix bytes_get to subtract sizeof(*cdata) from the bounds check to match the actual available space.

A flaw was found in the Linux kernel's Sound Open Firmware (SOF) IPC3 control module. This vulnerability, a Time-of-check to Time-of-use (TOCTOU) issue, arises from incorrect size handling during memory copy operations in the bytes_put and bytes_get functions. A local attacker could exploit this to cause data corruption, where valid data might be truncated or stale data copied, potentially resulting in information disclosure or denial of service.