ASoC: dapm: fix bounds checker error in dapm_widget_list_create
In the Linux kernel, the following vulnerability has been resolved: ASoC: dapm: fix bounds checker error in dapm_widget_list_create The widgets array in the snd_soc_dapm_widget_list has a __counted_by attribute attached to it, which points to the num_widgets variable. This attribute is used in bounds checking, and if it is not set before the array is filled, then the bounds sanitizer will issue a warning or a kernel panic if CONFIG_UBSAN_TRAP is set. This patch sets the size of the widgets list calculated with list_for_each as the initial value for num_widgets as it is used for allocating memory for the array. It is updated with the actual number of added elements after the array is filled.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.11.7
- CVEs
- CVE-2024-53045
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 17:50 UTC · Revision 1
Source evidence
ASoC: dapm: fix bounds checker error in dapm_widget_list_create
core-osv · Original sourcePublished 19 Nov 2024, 17:19 UTC
In the Linux kernel, the following vulnerability has been resolved: ASoC: dapm: fix bounds checker error in dapm_widget_list_create The widgets array in the snd_soc_dapm_widget_list has a __counted_by attribute attached to it, which points to the num_widgets variable. This attribute is used in bounds checking, and if it is not set before the array is filled, then the bounds sanitizer will issue a warning or a kernel panic if CONFIG_UBSAN_TRAP is set. This patch sets the size of the widgets list calculated with list_for_each as the initial value for num_widgets as it is used for allocating memory for the array. It is updated with the actual number of added elements after the array is filled.
osv:CVE-2024-53045
Kernel
Fixed versions: 6.11.7
Complete source record
{
"id": "9f13d58fb4007122606b8fad6016aa39ff64bbb712697a531d45d11901f7ca60",
"url": "https://osv.dev/vulnerability/CVE-2024-53045",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ASoC: dapm: fix bounds checker error in dapm_widget_list_create",
"summary": "In the Linux kernel, the following vulnerability has been resolved: ASoC: dapm: fix bounds checker error in dapm_widget_list_create The widgets array in the snd_soc_dapm_widget_list has a __counted_by attribute attached to it, which points to the num_widgets variable. This attribute is used in bounds checking, and if it is not set before the array is filled, then the bounds sanitizer will issue a warning or a kernel panic if CONFIG_UBSAN_TRAP is set. This patch sets the size of the widgets list calculated with list_for_each as the initial value for num_widgets as it is used for allocating memory for the array. It is updated with the actual number of added elements after the array is filled.",
"evidence": "osv:CVE-2024-53045",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.11.7",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2024-53045",
"aliases": [
"CVE-2024-53045"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "80e698e2df5ba2124bdeca37f1e589de58a4d514"
},
{
"fixed": "c549cb66e8de0ba1936fc97a59f0156741d3492a"
},
{
"fixed": "2ef9439f7a19fd3d43b288d38b1c6e55b668a4fe"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53045.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.11.7"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53045.json"
}
}
],
"modified": "2026-10-28T02:30:38.323548125Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/2ef9439f7a19fd3d43b288d38b1c6e55b668a4fe",
"https://git.kernel.org/stable/c/c549cb66e8de0ba1936fc97a59f0156741d3492a",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53045.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-53045",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53045.json"
}
},
"related_cves": [
{
"value": "CVE-2024-53045",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 505488,
"published_at": "2024-11-19T17:19:32.718+00:00"
}