CVE-2023-54286
wifi: iwlwifi: dvm: Fix memcpy: detected field-spanning write backtrace
Check your servers for CVE-2023-54286
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-54286 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
wifi: iwlwifi: dvm: Fix memcpy: detected field-spanning write backtrace
A received TKIP key may be up to 32 bytes because it may contain MIC rx/tx keys too. These are not used by iwl and copying these over overflows the iwl_keyinfo.key field.
Add a check to not copy more data to iwl_keyinfo.key then will fit.
This fixes backtraces like this one:
memcpy: detected field-spanning write (size 32) of single field "sta_cmd.key.key" at drivers/net/wireless/intel/iwlwifi/dvm/sta.c:1103 (size 16) WARNING: CPU: 1 PID: 946 at drivers/net/wireless/intel/iwlwifi/dvm/sta.c:1103 iwlagn_send_sta_key+0x375/0x390 [iwldvm] <snip> Hardware name: Dell Inc. Latitude E6430/0H3MT5, BIOS A21 05/08/2017 RIP: 0010:iwlagn_send_sta_key+0x375/0x390 [iwldvm] <snip> Call Trace: <TASK> iwl_set_dynamic_key+0x1f0/0x220 [iwldvm] iwlagn_mac_set_key+0x1e4/0x280 [iwldvm] drv_set_key+0xa4/0x1b0 [mac80211] ieee80211_key_enable_hw_accel+0xa8/0x2d0 [mac80211] ieee80211_key_replace+0x22d/0x8e0 [mac80211] <snip>
Severity (CVSS)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity low, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.33%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 27.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 5a3d9882b84edf5fa8e8ca33a5d6df25e2e727a5, before 76b5ea43ad2fb4f726ddfaff839430a706e7d7c2 affected from 5a3d9882b84edf5fa8e8ca33a5d6df25e2e727a5, before 3ed3c1c2fc3482b72e755820261779cd2e2c5a3e affected from 5a3d9882b84edf5fa8e8ca33a5d6df25e2e727a5, before fa57021262e998e2229d6383b1081638df2fe238 affected from 5a3d9882b84edf5fa8e8ca33a5d6df25e2e727a5, before 91ad1ab3cc7e981cb6d6ee100686baed64e1277e affected from 5a3d9882b84edf5fa8e8ca33a5d6df25e2e727a5, before 87940e4030e4705e1f3fd2bbb1854eae8308314b affected from 5a3d9882b84edf5fa8e8ca33a5d6df25e2e727a5, before 57189c885149825be8eb8c3524b5af017fdeb941 affected from 5a3d9882b84edf5fa8e8ca33a5d6df25e2e727a5, before 6cd644f66b43709816561d63e0173cb0c7aab159 affected from 5a3d9882b84edf5fa8e8ca33a5d6df25e2e727a5, before ef16799640865f937719f0771c93be5dca18adc6
Other versions: unaffected
|
| Linux |
affected 3.1 unaffected before 3.1 unaffected from 4.14.316 up to and including 4.14.* unaffected from 4.19.284 up to and including 4.19.* unaffected from 5.4.244 up to and including 5.4.* unaffected from 5.10.181 up to and including 5.10.* unaffected from 5.15.113 up to and including 5.15.* unaffected from 6.1.30 up to and including 6.1.* unaffected from 6.3.4 up to and including 6.3.* unaffected 6.4 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-54286 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54286
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-54286
trivy image --scanners vuln IMAGE | grep CVE-2023-54286
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/76b5ea43ad2fb4f726ddfaff839430a706e7d7c2 git.kernel.org
- https://git.kernel.org/stable/c/3ed3c1c2fc3482b72e755820261779cd2e2c5a3e git.kernel.org
- https://git.kernel.org/stable/c/fa57021262e998e2229d6383b1081638df2fe238 git.kernel.org
- https://git.kernel.org/stable/c/91ad1ab3cc7e981cb6d6ee100686baed64e1277e git.kernel.org
- https://git.kernel.org/stable/c/87940e4030e4705e1f3fd2bbb1854eae8308314b git.kernel.org
- https://git.kernel.org/stable/c/57189c885149825be8eb8c3524b5af017fdeb941 git.kernel.org
- https://git.kernel.org/stable/c/6cd644f66b43709816561d63e0173cb0c7aab159 git.kernel.org
- https://git.kernel.org/stable/c/ef16799640865f937719f0771c93be5dca18adc6 git.kernel.org
Source: the record CVE-2023-54286 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse