cbcvebase.
CVE-2024-56539
published 2024-12-27

CVE-2024-56539: In the Linux kernel, the following vulnerability has been resolved: wifi: mwifiex: Fix memcpy() field-spanning write warning in mwifiex_config_scan() Replace…

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

Affected

28 ranges· showing 25
VendorProductVersion rangeFixed in
debianlinux< linux 6.1.123-1 (bookworm)linux 6.1.123-1 (bookworm)
debianlinux-6.1< linux 6.1.123-1 (bookworm)linux 6.1.123-1 (bookworm)
linuxlinux
linuxlinux>= 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e < a09760c513ae0f98c7082a1deace7fb6284ee866a09760c513ae0f98c7082a1deace7fb6284ee866
linuxlinux>= 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e < 1de0ca1d7320a645ba2ee5954f64be08935b002a1de0ca1d7320a645ba2ee5954f64be08935b002a
linuxlinux>= 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e < 5fa329c44e1e635da2541eab28b6cdb8464fc8d15fa329c44e1e635da2541eab28b6cdb8464fc8d1
linuxlinux>= 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e < 581261b2d6fdb4237b24fa13f5a5f87bf2861f2c581261b2d6fdb4237b24fa13f5a5f87bf2861f2c
linuxlinux>= 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e < b466746cfb6be43f9a1457bbee52ade397fb23eab466746cfb6be43f9a1457bbee52ade397fb23ea
linuxlinux>= 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e < c4698ef8c42e02782604bf4f8a489dbf6b0c1365c4698ef8c42e02782604bf4f8a489dbf6b0c1365
linuxlinux>= 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e < e2de22e4b6213371d9e76f74a10ce817572a8d74e2de22e4b6213371d9e76f74a10ce817572a8d74
linuxlinux>= 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e < d7774910c5583e61c5fe2571280366624ef48036d7774910c5583e61c5fe2571280366624ef48036
linuxlinux>= 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e < d241a139c2e9f8a479f25c75ebd5391e6a448500d241a139c2e9f8a479f25c75ebd5391e6a448500
linuxlinux_kernel>= 0 < 5.10.234-15.10.234-1
linuxlinux_kernel>= 0 < 6.1.123-16.1.123-1
linuxlinux_kernel>= 0 < 6.12.3-16.12.3-1
linuxlinux_kernel>= 0 < 6.12.3-16.12.3-1
linuxlinux_kernel>= 0 < 5.4.0-211.2315.4.0-211.231
linuxlinux_kernel>= 0 < 5.15.0-135.1465.15.0-135.146
linuxlinux_kernel>= 0 < 6.8.0-58.606.8.0-58.60
linuxlinux_kernel>= 0 < 6.11.0-18.186.11.0-18.18
linuxlinux_kernel>= 3.0 < 4.19.3254.19.325
linuxlinux_kernel>= 4.20 < 5.4.2875.4.287
linuxlinux_kernel>= 5.11 < 5.15.1745.15.174
linuxlinux_kernel>= 5.16 < 6.1.1206.1.120
linuxlinux_kernel>= 5.5 < 5.10.2315.10.231

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv8.8HIGH
vendor_ubuntu8.8HIGH
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.