{"id":"CVE-2026-72301","state":"PUBLISHED","title":"ASoC: SOF: ipc3-control: Fix TOCTOU in bytes_put and bytes_get","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: SOF: ipc3-control: Fix TOCTOU in bytes_put and bytes_get\n\nIn sof_ipc3_bytes_put(), the size used for the memcpy is derived from\nthe old data->size already in the buffer, not the incoming new data's\nsize field. If the new data has a different size, the copy length is\nwrong: it may truncate valid data or copy stale bytes.\n\nSimilarly, sof_ipc3_bytes_get() checks data->size against max_size\nwithout accounting for the sizeof(struct sof_ipc_ctrl_data) offset\nof the flex array within the allocation.\n\nFix bytes_put to validate and use the incoming data's sof_abi_hdr.size\nfrom ucontrol before copying. Fix bytes_get to subtract sizeof(*cdata)\nfrom the bounds check to match the actual available space.","publishedAt":"2026-08-15T05:55:20.430Z","updatedAt":"2026-10-16T18:55:16.018Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"544ac8858f249950b4d99c68e538cdc07300528f","status":"affected","lessThan":"8bd715a9d882fe1993bb2aec5eff89fffa946592","versionType":"git"},{"version":"544ac8858f249950b4d99c68e538cdc07300528f","status":"affected","lessThan":"0dce240145f47545d2e4b18c6d58033b83e1fd0e","versionType":"git"},{"version":"544ac8858f249950b4d99c68e538cdc07300528f","status":"affected","lessThan":"ed4f758f34be4c32e02933ac4fa044589d9c1c16","versionType":"git"},{"version":"544ac8858f249950b4d99c68e538cdc07300528f","status":"affected","lessThan":"0c4fbdaca225b97122b61b68c5353caa33a253c3","versionType":"git"},{"version":"544ac8858f249950b4d99c68e538cdc07300528f","status":"affected","lessThan":"92f90917413bdd6078fefff6f6c83a07bf870b04","versionType":"git"},{"version":"544ac8858f249950b4d99c68e538cdc07300528f","status":"affected","lessThan":"1f97760417b5faa60e9642fd0ed61eb17d0b1b39","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/ipc3-control.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/ipc3-control.c"]}],"references":["https://git.kernel.org/stable/c/8bd715a9d882fe1993bb2aec5eff89fffa946592","https://git.kernel.org/stable/c/0dce240145f47545d2e4b18c6d58033b83e1fd0e","https://git.kernel.org/stable/c/ed4f758f34be4c32e02933ac4fa044589d9c1c16","https://git.kernel.org/stable/c/0c4fbdaca225b97122b61b68c5353caa33a253c3","https://git.kernel.org/stable/c/92f90917413bdd6078fefff6f6c83a07bf870b04","https://git.kernel.org/stable/c/1f97760417b5faa60e9642fd0ed61eb17d0b1b39"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/72xxx/CVE-2026-72301.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-72301","state":"PUBLISHED","datePublished":"2026-08-15T05:55:20.430Z","dateUpdated":"2026-10-16T18:55:16.018Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-09T03:40:39.918Z"},"containers":{"cna":{"title":"ASoC: SOF: ipc3-control: Fix TOCTOU in bytes_put and bytes_get","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: SOF: ipc3-control: Fix TOCTOU in bytes_put and bytes_get\n\nIn sof_ipc3_bytes_put(), the size used for the memcpy is derived from\nthe old data->size already in the buffer, not the incoming new data's\nsize field. If the new data has a different size, the copy length is\nwrong: it may truncate valid data or copy stale bytes.\n\nSimilarly, sof_ipc3_bytes_get() checks data->size against max_size\nwithout accounting for the sizeof(struct sof_ipc_ctrl_data) offset\nof the flex array within the allocation.\n\nFix bytes_put to validate and use the incoming data's sof_abi_hdr.size\nfrom ucontrol before copying. Fix bytes_get to subtract sizeof(*cdata)\nfrom the bounds check to match the actual available space."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"544ac8858f249950b4d99c68e538cdc07300528f","status":"affected","lessThan":"8bd715a9d882fe1993bb2aec5eff89fffa946592","versionType":"git"},{"version":"544ac8858f249950b4d99c68e538cdc07300528f","status":"affected","lessThan":"0dce240145f47545d2e4b18c6d58033b83e1fd0e","versionType":"git"},{"version":"544ac8858f249950b4d99c68e538cdc07300528f","status":"affected","lessThan":"ed4f758f34be4c32e02933ac4fa044589d9c1c16","versionType":"git"},{"version":"544ac8858f249950b4d99c68e538cdc07300528f","status":"affected","lessThan":"0c4fbdaca225b97122b61b68c5353caa33a253c3","versionType":"git"},{"version":"544ac8858f249950b4d99c68e538cdc07300528f","status":"affected","lessThan":"92f90917413bdd6078fefff6f6c83a07bf870b04","versionType":"git"},{"version":"544ac8858f249950b4d99c68e538cdc07300528f","status":"affected","lessThan":"1f97760417b5faa60e9642fd0ed61eb17d0b1b39","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/ipc3-control.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.18","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["sound/soc/sof/ipc3-control.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8bd715a9d882fe1993bb2aec5eff89fffa946592"},{"url":"https://git.kernel.org/stable/c/0dce240145f47545d2e4b18c6d58033b83e1fd0e"},{"url":"https://git.kernel.org/stable/c/ed4f758f34be4c32e02933ac4fa044589d9c1c16"},{"url":"https://git.kernel.org/stable/c/0c4fbdaca225b97122b61b68c5353caa33a253c3"},{"url":"https://git.kernel.org/stable/c/92f90917413bdd6078fefff6f6c83a07bf870b04"},{"url":"https://git.kernel.org/stable/c/1f97760417b5faa60e9642fd0ed61eb17d0b1b39"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - Exploitation requires local ALSA access via /dev/snd/controlC* and SNDRV_CTL_IOCTL_ELEM_READ/WRITE ioctls through snd_ctl_elem_write/read to sof_ipc3_bytes_put/get; SOF audio DSP controls are not reachable over the network.\nAC:L - An attacker can deterministically trigger the bug by sequencing bytes_put calls to set a large stale data->size then issue a second put with a smaller header, or use bytes_get after inflating size; no uncontrollable race or rare layout is required.\nPR:L - Only standard local access to the ALSA control device is needed; on typical Linux desktops and laptops with Intel/AMD SOF IPC3, session users in the audio group can write SOF bytes kcontrols without real root or init-namespace capabilities.\nUI:N - No victim interaction is required; a local attacker with sound-device access can directly issue ioctl-based ALSA control read/write operations against writable SOF bytes controls.\nS:U - The flaw corrupts kernel heap memory adjacent to a SOF control allocation and can enable local privilege escalation, but it does not cross a VM, IOMMU, or sandbox security boundary into another authority.\nC:H - sof_ipc3_bytes_get can memcpy up to roughly sizeof(struct sof_ipc_ctrl_data) bytes beyond the kzalloc(max_size) allocation into userspace when data->size passes an incorrect bound, leaking adjacent kernel heap contents.\nI:H - sof_ipc3_bytes_put uses stale data->size for memcpy length instead of the incoming sof_abi_hdr.size, enabling a heap out-of-bounds write past the control buffer that can corrupt adjacent kmalloc objects and be leveraged for code execution.\nA:H - The out-of-bounds read/write corrupts kernel heap metadata or adjacent objects and can cause kernel oops, panic, or hang when exploiting SOF IPC3 bytes controls on affected hardware."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-17T05:42:33.552Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.1.178"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.6.145"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.12.97"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.18.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"7.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-72301","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T18:46:11.606714Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-16T18:55:16.018Z"}}]}}}