CVE-2026-72301

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

Published Aug 15, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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

Source ID Title
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8917-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8918-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9192-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

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'}

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
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 16, 2026, 6:55 PM
Reserved
Aug 9, 2026, 3:40 AM
Status
Received
Published
Aug 15, 2026, 6:22 AM
Modified
Oct 16, 2026, 7:17 PM
Severity
Moderate
Public date
Aug 15, 2026, 12:00 AM