wifi: mwifiex: Fix memcpy() field-spanning write warning in mwifiex_cmd_802_11_scan_ext()
Published Oct 21, 2024
5.5
MEDIUMCVSS 3.1
EPSS 0.25%
Description
Replace one-element array with a flexible-array member in `struct host_cmd_ds_802_11_scan_ext`.
With this, fix the following warning:
elo 16 17:51:58 surfacebook kernel: ------------[ cut here ]------------ elo 16 17:51:58 surfacebook kernel: memcpy: detected field-spanning write (size 243) of single field "ext_scan->tlv_buffer" at drivers/net/wireless/marvell/mwifiex/scan.c:2239 (size 1) elo 16 17:51:58 surfacebook kernel: WARNING: CPU: 0 PID: 498 at drivers/net/wireless/marvell/mwifiex/scan.c:2239 mwifiex_cmd_802_11_scan_ext+0x83/0x90 [mwifiex]
Affected products
-
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version StatusaffectedConstraints
- Version
-
- Version 3.15StatusaffectedConstraints-
- Version 0StatusunaffectedConstraints<3.15
- Version 4.19.323StatusunaffectedConstraints<=4.19.*
- Version 5.10.227StatusunaffectedConstraints<=5.10.*
- Version 5.15.168StatusunaffectedConstraints<=5.15.*
- Version 5.4.285StatusunaffectedConstraints<=5.4.*
- Version 6.1.113StatusunaffectedConstraints<=6.1.*
- Version 6.10.14StatusunaffectedConstraints<=6.10.*
- Version 6.11.3StatusunaffectedConstraints<=6.11.*
- Version 6.12StatusunaffectedConstraints<=*
- Version 6.6.55StatusunaffectedConstraints<=6.6.*
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Linux | Linux | unaffected |
| ||||||||||||||||||||||||||||||||||||
| Linux | Linux | affected |
|
- < 5.10.227
- ≥ 5.11 · < 5.15.168
- ≥ 5.16 · < 6.1.113
- ≥ 6.2 · < 6.6.55
- ≥ 6.7 · < 6.10.14
- ≥ 6.11 · < 6.11.3
No data.
Red Hat Enterprise Linux 9
kernel-0:5.14.0-570.12.1.el9_6
Fixed · RHSA-2025:6966
Red Hat Enterprise Linux 9
kernel-0:5.14.0-570.12.1.el9_6
Fixed · RHSA-2025:6966
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Out of support scope
Red Hat Enterprise Linux 7
kernel-rt
Out of support scope
Red Hat Enterprise Linux 8
kernel
Will not fix
Red Hat Enterprise Linux 8
kernel-rt
Will not fix
Red Hat Enterprise Linux 9
kernel-rt
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 9 | kernel-0:5.14.0-570.12.1.el9_6 | Fixed | RHSA-2025:6966 |
| Red Hat Enterprise Linux 9 | kernel-0:5.14.0-570.12.1.el9_6 | Fixed | RHSA-2025:6966 |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Out of support scope | n/a |
| Red Hat Enterprise Linux 8 | kernel | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Will not fix | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat mitigation
To mitigate this issue, prevent the `mwifiex` kernel module from loading. This can be achieved by creating a blacklist entry for the module. 1. Create a new file `/etc/modprobe.d/blacklist-mwifiex.conf` with the following content: ``` blacklist mwifiex install mwifiex /bin/true ``` 2. Regenerate the initramfs to ensure the blacklist is applied during boot: ```bash sudo dracut -f -v ``` or for systems using `mkinitrd`: ```bash sudo mkinitrd -f /boot/initramfs-$(uname -r).img $(uname -r) ``` 3. Reboot the system for the changes to take effect. This mitigation will disable functionality provided by the `mwifiex` Wi-Fi driver, which may impact wireless network connectivity if your system relies on this specific hardware.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed Oct 22, 2024 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 3, 2026.
Score over time
2024-2026- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (5 key points)
Flat stretches are collapsed. Showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 0.25% (0.00247) | 14.50th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.24% (0.00244) | 15.35th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.03% (0.00034) | 6.38th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.04% (0.00042) | 5.07th | v3 (v2023.03.01) |
| Oct 22, 2024 | 0.04% (0.00044) | 11.06th | v3 (v2023.03.01) |
References (18)
- https://access.redhat.com/security/cve/CVE-2024-50008 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2320576 Issue Tracking
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html
- https://cert-portal.siemens.com/productcert/html/ssa-355557.html
- https://git.kernel.org/stable/c/17199b69a84798efffc475040fbef44374ef1de1 Patch
- https://git.kernel.org/stable/c/1756918f51e9ab247a0f4782cc28853c2bb457c1 Patch
- https://git.kernel.org/stable/c/498365e52bebcbc36a93279fe7e9d6aec8479cee Patch
- https://git.kernel.org/stable/c/71267bd4e8c752d7af6c6b96bb83984a6a95273d Patch
- https://git.kernel.org/stable/c/a3a12c30f9510f3753286fadbc6cdb7dad78c1d5 Patch
- https://git.kernel.org/stable/c/b55c8848fdc81514ec047b2a0ec782ffe9ab5323
- https://git.kernel.org/stable/c/e59bdb1ba594104cd0ee0af3ee9e4435d842a8fe Patch
- https://git.kernel.org/stable/c/f9310a6704bf52e2493480edea896e1f9b795d40
- https://git.kernel.org/stable/c/fef7b51f22cf2049b0ca6740adeb0ba6f2e671dc Patch
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html
- https://lore.kernel.org/linux-cve-announce/2024102109-CVE-2024-50008-0152@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2024-50008
- https://www.cve.org/CVERecord?id=CVE-2024-50008
Change history (0)
No recorded changes yet.