CVE-2024-53189
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
27/12/2024
Last modified:
27/12/2024
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
wifi: nl80211: fix bounds checker error in nl80211_parse_sched_scan<br />
<br />
The channels array in the cfg80211_scan_request has a __counted_by<br />
attribute attached to it, which points to the n_channels variable. This<br />
attribute is used in bounds checking, and if it is not set before the<br />
array is filled, then the bounds sanitizer will issue a warning or a<br />
kernel panic if CONFIG_UBSAN_TRAP is set.<br />
<br />
This patch sets the size of allocated memory as the initial value for<br />
n_channels. It is updated with the actual number of added elements after<br />
the array is filled.