CVE-2024-56539

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
27/12/2024
Last modified:
03/11/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> wifi: mwifiex: Fix memcpy() field-spanning write warning in mwifiex_config_scan()<br /> <br /> Replace one-element array with a flexible-array member in `struct<br /> mwifiex_ie_types_wildcard_ssid_params` to fix the following warning<br /> on a MT8173 Chromebook (mt8173-elm-hana):<br /> <br /> [ 356.775250] ------------[ cut here ]------------<br /> [ 356.784543] memcpy: detected field-spanning write (size 6) of single field "wildcard_ssid_tlv-&gt;ssid" at drivers/net/wireless/marvell/mwifiex/scan.c:904 (size 1)<br /> [ 356.813403] WARNING: CPU: 3 PID: 742 at drivers/net/wireless/marvell/mwifiex/scan.c:904 mwifiex_scan_networks+0x4fc/0xf28 [mwifiex]<br /> <br /> The "(size 6)" above is exactly the length of the SSID of the network<br /> this device was connected to. The source of the warning looks like:<br /> <br /> ssid_len = user_scan_in-&gt;ssid_list[i].ssid_len;<br /> [...]<br /> memcpy(wildcard_ssid_tlv-&gt;ssid,<br /> user_scan_in-&gt;ssid_list[i].ssid, ssid_len);<br /> <br /> There is a #define WILDCARD_SSID_TLV_MAX_SIZE that uses sizeof() on this<br /> struct, but it already didn&amp;#39;t account for the size of the one-element<br /> array, so it doesn&amp;#39;t need to be changed.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 3.0 (including) 4.19.325 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.20 (including) 5.4.287 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.5 (including) 5.10.231 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.15.174 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 6.1.120 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.6.64 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.11.11 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.12 (including) 6.12.2 (excluding)