CVE-2026-72301

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

State
Published
Severity
7.8 High
Published
Aug 15, 2026
Updated
Oct 16, 2026
Reserved
Aug 9, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 544ac8858f249950b4d99c68e538cdc07300528f to before 8bd715a9d882fe1993bb2aec5eff89fffa946592Affected
  • 544ac8858f249950b4d99c68e538cdc07300528f to before 0dce240145f47545d2e4b18c6d58033b83e1fd0eAffected
  • 544ac8858f249950b4d99c68e538cdc07300528f to before ed4f758f34be4c32e02933ac4fa044589d9c1c16Affected
  • 544ac8858f249950b4d99c68e538cdc07300528f to before 0c4fbdaca225b97122b61b68c5353caa33a253c3Affected
  • 544ac8858f249950b4d99c68e538cdc07300528f to before 92f90917413bdd6078fefff6f6c83a07bf870b04Affected
  • 544ac8858f249950b4d99c68e538cdc07300528f to before 1f97760417b5faa60e9642fd0ed61eb17d0b1b39Affected
LinuxLinux
  • 5.18Affected
  • before 5.18Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.40 through 6.18.*Not affected
  • 7.1.5 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.