CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's ASoC SOF IPC4 control, where improper handling of data sizes in the `sof_ipc4_bytes_put()` function can lead to data truncation or the inclusion of stale bytes. This can compromise the integrity of audio data processing, potentially impacting applications relying on accurate audio communication. Linux system administrators and developers working with audio drivers should prioritize this fix to ensure the reliability and security of their systems.
Original NVD 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.