ASoC: SOF: ipc3-control: Fix heap overflow in bytes_ext put/get
In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: ipc3-control: Fix heap overflow in bytes_ext put/get The ipc_control_data buffer is allocated as kzalloc(max_size), where max_size covers the entire struct sof_ipc_ctrl_data including its flexible array payload. However, the bounds checks in bytes_ext_put and _bytes_ext_get compared user data lengths against max_size directly, ignoring that cdata->data sits at an offset of sizeof(struct sof_ipc_ctrl_data) bytes into the allocation. This allowed writing up to sizeof(struct sof_ipc_ctrl_data) bytes past the end of the heap buffer from unprivileged userspace via the ALSA TLV kcontrol interface, and similarly allowed over-reading adjacent heap data on the get path. Fix all bounds checks to subtract sizeof(*cdata) from max_size so they reflect the actual space available at the cdata->data offset. Also fix the error-path restore in bytes_ext_put which wrote to cdata->data instead of cdata, causing the same overflow.
CVE-2026-72262
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-72262
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "67ec2a091630c28ea8d05db2bd7178a05b04b7e6",
"lessThan": "af4b437a463ac0482ba705434a44da06783778e6",
"versionType": "git"
},
{
"status": "affected",
"version": "67ec2a091630c28ea8d05db2bd7178a05b04b7e6",
"lessThan": "1adde1941bba7b0d7104b86ed819d48d81cb0ad9",
"versionType": "git"
},
{
"status": "affected",
"version": "67ec2a091630c28ea8d05db2bd7178a05b04b7e6",
"lessThan": "eaa67e139c9217099e2a7b717aeeb46c65de3494",
"versionType": "git"
},
{
"status": "affected",
"version": "67ec2a091630c28ea8d05db2bd7178a05b04b7e6",
"lessThan": "121577383b5cf221e86581e0f2bcca4c66f17469",
"versionType": "git"
},
{
"status": "affected",
"version": "67ec2a091630c28ea8d05db2bd7178a05b04b7e6",
"lessThan": "f4933e1d11b97b6a0951648b7c3e53850e1b33a9",
"versionType": "git"
},
{
"status": "affected",
"version": "67ec2a091630c28ea8d05db2bd7178a05b04b7e6",
"lessThan": "fd46668d538993218eea19c6925c868ac0f2630c",
"versionType": "git"
}
],
"programFiles": [
"sound/soc/sof/ipc3-control.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.18"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.18",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.1.184",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.145",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.97",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.40",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.1.5",
"versionType": "semver",
"lessThanOrEqual": "7.1.*"
},
{
"status": "unaffected",
"version": "7.2",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"sound/soc/sof/ipc3-control.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-72262
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #33002 · Revision 1
- Added to Heist Feed
- Publisher date