wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan
In the Linux kernel, the following vulnerability has been resolved: wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan The channels array in the cfg80211_scan_request has a __counted_by attribute attached to it, which points to the n_channels 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 allocated memory as the initial value for n_channels. 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.11, 6.12.2
- CVEs
- CVE-2024-53189
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 21:41 UTC · Revision 1
Source evidence
wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan
core-osv · Original sourcePublished 27 Dec 2024, 13:49 UTC
In the Linux kernel, the following vulnerability has been resolved: wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan The channels array in the cfg80211_scan_request has a __counted_by attribute attached to it, which points to the n_channels 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 allocated memory as the initial value for n_channels. It is updated with the actual number of added elements after the array is filled.
osv:CVE-2024-53189
Kernel
Fixed versions: 6.11.11, 6.12.2
Complete source record
{
"id": "d2ff793cbab19e98063d191f4e17764e6da66c9566c878209e85010fb7dee309",
"url": "https://osv.dev/vulnerability/CVE-2024-53189",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan",
"summary": "In the Linux kernel, the following vulnerability has been resolved: wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan The channels array in the cfg80211_scan_request has a __counted_by attribute attached to it, which points to the n_channels 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 allocated memory as the initial value for n_channels. It is updated with the actual number of added elements after the array is filled.",
"evidence": "osv:CVE-2024-53189",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.11.11",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-53189",
"aliases": [
"CVE-2024-53189"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "aa4ec06c455d0200eea0a4361cc58eb5b8bf68c4"
},
{
"fixed": "d4ef643ea78c59c22546046c25dc6e7206267672"
},
{
"fixed": "1a7b62ddf2c7642878c24f0e556041bb58c37527"
},
{
"fixed": "9c46a3a5b394d6d123866aa44436fc2cd342eb0d"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53189.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.11.0"
},
{
"fixed": "6.11.11"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.12.0"
},
{
"fixed": "6.12.2"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53189.json"
}
}
],
"modified": "2026-10-28T02:30:24.150028732Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/1a7b62ddf2c7642878c24f0e556041bb58c37527",
"https://git.kernel.org/stable/c/9c46a3a5b394d6d123866aa44436fc2cd342eb0d",
"https://git.kernel.org/stable/c/d4ef643ea78c59c22546046c25dc6e7206267672",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53189.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-53189",
"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-53189.json"
}
},
"related_cves": [
{
"value": "CVE-2024-53189",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 490331,
"published_at": "2024-12-27T13:49:31.889+00:00"
}