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.
Published: 2026-08-15
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

This bug in the Linux kernel’s ASoC SOF ipc3 control interface introduces a time‑of‑check to time‑of‑use race that can result in incorrect buffer copy lengths. In the bytes_put routine, the copy length is calculated from the existing buffer size instead of the incoming data’s size, potentially truncating valid data or copying stale bytes. The bytes_get routine similarly fails to adjust the size check for the control header offset, allowing reads that exceed allocated space. These issues can corrupt kernel memory during normal driver operation and may enable an attacker to alter kernel data structures.

Affected Systems

All Linux kernel builds that include the ASoC SOF ipc3 driver before the TOCTOU fix are affected. The impact applies to any system running an unpatched kernel that supports the SOF audio subsystem. No specific kernel version range is cited, so users should verify whether their kernel contains the commit that introduces the size validation changes.

Risk and Exploitability

The CVSS score is 7.8, indicating high severity. The EPSS score is less than 1% and the vulnerability is not listed in CISA KEV, indicating a low current exploitation probability. The likely attack vector is local: an attacker with access to the SOF audio device can invoke ioctl calls that trigger the buggy copy operations. Exploitation could lead to uncontrolled kernel memory writes or reads, providing a pathway for privilege escalation or denial‑of‑service once the attacker can reach the vulnerable driver.

Generated by OpenCVE AI on August 22, 2026 at 07:39 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the SOF ipc3 driver TOCTOU patch
  • If an upgrade is not immediately possible, disable the SOF driver or prevent its loading by setting CONFIG_SOF=n in the kernel configuration
  • Restrict local user access to the SOF audio devices by adjusting the device node ownership/permissions or enforcing SELinux/AppArmor confinement

Generated by OpenCVE AI on August 22, 2026 at 07:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 19 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 17 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
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.
Title ASoC: SOF: ipc3-control: Fix TOCTOU in bytes_put and bytes_get
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:42:33.552Z

Reserved: 2026-08-09T03:40:39.918Z

Link: CVE-2026-72301

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:02.807

Modified: 2026-08-17T06:18:33.097

Link: CVE-2026-72301

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72301 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T07:45:17Z

Weaknesses