CVE-2024-38616
wifi: carl9170: re-fix fortified-memset warning
Check your servers for CVE-2024-38616
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-2024-38616 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: carl9170: re-fix fortified-memset warning
The carl9170_tx_release() function sometimes triggers a fortified-memset warning in my randconfig builds:
In file included from include/linux/string.h:254, from drivers/net/wireless/ath/carl9170/tx.c:40: In function 'fortify_memset_chk', inlined from 'carl9170_tx_release' at drivers/net/wireless/ath/carl9170/tx.c:283:2, inlined from 'kref_put' at include/linux/kref.h:65:3, inlined from 'carl9170_tx_put_skb' at drivers/net/wireless/ath/carl9170/tx.c:342:9: include/linux/fortify-string.h:493:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning] 493 | __write_overflow_field(p_size_field, size);
Kees previously tried to avoid this by using memset_after(), but it seems this does not fully address the problem. I noticed that the memset_after() here is done on a different part of the union (status) than the original cast was from (rate_driver_data), which may confuse the compiler.
Unfortunately, the memset_after() trick does not work on driver_rates[] because that is part of an anonymous struct, and I could not get struct_group() to do this either. Using two separate memset() calls on the two members does address the warning though.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- 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 none, integrity low, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.65%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 52.4% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 20 Jun 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-400 Uncontrolled Resource Consumption
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from fb5f6a0e8063b7a84d6d44ef353846ccd7708d2e, before 13857683126e8a6492af73c74d702835f7a2175b affected from fb5f6a0e8063b7a84d6d44ef353846ccd7708d2e, before 87586467098281f04fa93e59fe3a516b954bddc4 affected from fb5f6a0e8063b7a84d6d44ef353846ccd7708d2e, before 0c38c9c460bb8ce8d6f6cf316e0d71a70983ec83 affected from fb5f6a0e8063b7a84d6d44ef353846ccd7708d2e, before 042a39bb8e0812466327a5102606e88a5a4f8c02 affected from fb5f6a0e8063b7a84d6d44ef353846ccd7708d2e, before 066afafc10c9476ee36c47c9062527a17e763901
Other versions: unaffected
|
| Linux |
affected 5.17 unaffected before 5.17 unaffected from 6.1.93 up to and including 6.1.* unaffected from 6.6.33 up to and including 6.6.* unaffected from 6.8.12 up to and including 6.8.* unaffected from 6.9.3 up to and including 6.9.* unaffected 6.10 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-2024-38616 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-38616
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-2024-38616
trivy image --scanners vuln IMAGE | grep CVE-2024-38616
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/13857683126e8a6492af73c74d702835f7a2175b git.kernel.org
- https://git.kernel.org/stable/c/87586467098281f04fa93e59fe3a516b954bddc4 git.kernel.org
- https://git.kernel.org/stable/c/0c38c9c460bb8ce8d6f6cf316e0d71a70983ec83 git.kernel.org
- https://git.kernel.org/stable/c/042a39bb8e0812466327a5102606e88a5a4f8c02 git.kernel.org
- https://git.kernel.org/stable/c/066afafc10c9476ee36c47c9062527a17e763901 git.kernel.org
Source: the record CVE-2024-38616 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse