{"id":"CVE-2024-53189","summary":"wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan\n\nThe channels array in the cfg80211_scan_request has a __counted_by\nattribute attached to it, which points to the n_channels variable. This\nattribute is used in bounds checking, and if it is not set before the\narray is filled, then the bounds sanitizer will issue a warning or a\nkernel panic if CONFIG_UBSAN_TRAP is set.\n\nThis patch sets the size of allocated memory as the initial value for\nn_channels. It is updated with the actual number of added elements after\nthe array is filled.","modified":"2026-03-20T12:40:48.237486Z","published":"2024-12-27T13:49:31.889Z","related":["USN-7276-1","USN-7277-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53189.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1a7b62ddf2c7642878c24f0e556041bb58c37527"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9c46a3a5b394d6d123866aa44436fc2cd342eb0d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d4ef643ea78c59c22546046c25dc6e7206267672"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53189.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53189"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"aa4ec06c455d0200eea0a4361cc58eb5b8bf68c4"},{"fixed":"d4ef643ea78c59c22546046c25dc6e7206267672"},{"fixed":"1a7b62ddf2c7642878c24f0e556041bb58c37527"},{"fixed":"9c46a3a5b394d6d123866aa44436fc2cd342eb0d"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-53189.json"}}],"schema_version":"1.7.5"}