All reports
Medium

kernel: ASoC: SOF: ipc4-control: Fix TOCTOU in sof_ipc4_bytes_put

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

Exploitation

CVE-2026-72304

Probability of exploitation in the next 30 days: 0.16%

FIRST EPSS · 2026-11-21

Description

In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: ipc4-control: Fix TOCTOU in sof_ipc4_bytes_put In sof_ipc4_bytes_put(), the copy size is derived from the old data->size in the buffer rather than the incoming new data's size field from ucontrol. If the new data has a different size, the copy uses the wrong length: it may truncate valid data or copy stale bytes. Fix by validating and using the incoming data's sof_abi_hdr.size from ucontrol before copying.

A flaw was found in the Advanced Linux Sound Architecture (ALSA) System on Chip (ASoC) Sound Open Firmware (SOF) ipc4-control component of the Linux kernel. This Time-of-check to time-of-use (TOCTOU) vulnerability occurs in the sof_ipc4_bytes_put() function, where the copy size is incorrectly derived from old buffer data instead of the new incoming data. This can lead to either truncating valid data or copying stale bytes, potentially resulting in data corruption.