CVE-2023-54300
wifi: ath9k: avoid referencing uninit memory in ath9k_wmi_ctrl_rx
Check your servers for CVE-2023-54300
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-54300 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: ath9k: avoid referencing uninit memory in ath9k_wmi_ctrl_rx
For the reasons also described in commit b383e8abed41 ("wifi: ath9k: avoid uninit memory read in ath9k_htc_rx_msg()"), ath9k_htc_rx_msg() should validate pkt_len before accessing the SKB.
For example, the obtained SKB may have been badly constructed with pkt_len = 8. In this case, the SKB can only contain a valid htc_frame_hdr but after being processed in ath9k_htc_rx_msg() and passed to ath9k_wmi_ctrl_rx() endpoint RX handler, it is expected to have a WMI command header which should be located inside its data payload.
Implement sanity checking inside ath9k_wmi_ctrl_rx(). Otherwise, uninit memory can be referenced.
Tested on Qualcomm Atheros Communications AR9271 802.11n .
Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.5% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from fb9987d0f748c983bb795a86f47522313f701a08, before 0bc12e41af4e3ae1f0efecc377f0514459df0707 affected from fb9987d0f748c983bb795a86f47522313f701a08, before 28259ce4f1f1f9ab37fa817756c89098213d2fc0 affected from fb9987d0f748c983bb795a86f47522313f701a08, before 90e3c10177573b8662ac9858abd9bf731d5d98e0 affected from fb9987d0f748c983bb795a86f47522313f701a08, before 250efb4d3f5b32a115ea6bf25437ba44a1b3c04f affected from fb9987d0f748c983bb795a86f47522313f701a08, before ad5425e70789c29b93acafb5bb4629e4eb908296 affected from fb9987d0f748c983bb795a86f47522313f701a08, before d1c2ff2bd84c3692c9df267a2b991ce92bfca8ef affected from fb9987d0f748c983bb795a86f47522313f701a08, before 8ed572e52714593b209e3aa352406aff84481179 affected from fb9987d0f748c983bb795a86f47522313f701a08, before 75acec91aeaa07375cd5f418069e61b16d39bbad affected from fb9987d0f748c983bb795a86f47522313f701a08, before f24292e827088bba8de7158501ac25a59b064953
Other versions: unaffected
|
| Linux |
affected 2.6.35 unaffected before 2.6.35 unaffected from 4.14.322 up to and including 4.14.* unaffected from 4.19.291 up to and including 4.19.* unaffected from 5.4.251 up to and including 5.4.* unaffected from 5.10.188 up to and including 5.10.* unaffected from 5.15.121 up to and including 5.15.* unaffected from 6.1.39 up to and including 6.1.* unaffected from 6.3.13 up to and including 6.3.* unaffected from 6.4.4 up to and including 6.4.* unaffected 6.5 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-54300 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54300
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-54300
trivy image --scanners vuln IMAGE | grep CVE-2023-54300
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/0bc12e41af4e3ae1f0efecc377f0514459df0707 git.kernel.org
- https://git.kernel.org/stable/c/28259ce4f1f1f9ab37fa817756c89098213d2fc0 git.kernel.org
- https://git.kernel.org/stable/c/90e3c10177573b8662ac9858abd9bf731d5d98e0 git.kernel.org
- https://git.kernel.org/stable/c/250efb4d3f5b32a115ea6bf25437ba44a1b3c04f git.kernel.org
- https://git.kernel.org/stable/c/ad5425e70789c29b93acafb5bb4629e4eb908296 git.kernel.org
- https://git.kernel.org/stable/c/d1c2ff2bd84c3692c9df267a2b991ce92bfca8ef git.kernel.org
- https://git.kernel.org/stable/c/8ed572e52714593b209e3aa352406aff84481179 git.kernel.org
- https://git.kernel.org/stable/c/75acec91aeaa07375cd5f418069e61b16d39bbad git.kernel.org
- https://git.kernel.org/stable/c/f24292e827088bba8de7158501ac25a59b064953 git.kernel.org
Source: the record CVE-2023-54300 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