CVE-2024-41091
tun: add missing verification for short frame
Check your servers for CVE-2024-41091
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-41091 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:
tun: add missing verification for short frame
The cited commit missed to check against the validity of the frame length in the tun_xdp_one() path, which could cause a corrupted skb to be sent downstack. Even before the skb is transmitted, the tun_xdp_one-->eth_type_trans() may access the Ethernet header although it can be less than ETH_HLEN. Once transmitted, this could either cause out-of-bound access beyond the actual length, or confuse the underlayer with incorrect or inconsistent header length in the skb metadata.
In the alternative path, tun_get_user() already prohibits short frame which has the length less than Ethernet header size from being transmitted for IFF_TAP.
This is to drop any frame shorter than the Ethernet header size just like how tun_get_user() does.
CVE: CVE-2024-41091
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.4% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 043d222f93ab8c76b56a3b315cd8692e35affb6c, before 32b0aaba5dbc85816898167d9b5d45a22eae82e9 affected from 043d222f93ab8c76b56a3b315cd8692e35affb6c, before 6100e0237204890269e3f934acfc50d35fd6f319 affected from 043d222f93ab8c76b56a3b315cd8692e35affb6c, before 589382f50b4a5d90d16d8bc9dcbc0e927a3e39b2 affected from 043d222f93ab8c76b56a3b315cd8692e35affb6c, before ad6b3f622ccfb4bfedfa53b6ebd91c3d1d04f146 affected from 043d222f93ab8c76b56a3b315cd8692e35affb6c, before d5ad89b7d01ed4e66fd04734fc63d6e78536692a affected from 043d222f93ab8c76b56a3b315cd8692e35affb6c, before a9d1c27e2ee3b0ea5d40c105d6e728fc114470bb affected from 043d222f93ab8c76b56a3b315cd8692e35affb6c, before 8418f55302fa1d2eeb73e16e345167e545c598a5 affected from 043d222f93ab8c76b56a3b315cd8692e35affb6c, before 049584807f1d797fc3078b68035450a9769eb5c3
Other versions: unaffected
|
| Linux |
affected 4.20 unaffected before 4.20 unaffected from 5.4.281 up to and including 5.4.* unaffected from 5.10.223 up to and including 5.10.* unaffected from 5.15.164 up to and including 5.15.* unaffected from 6.1.102 up to and including 6.1.* unaffected from 6.6.43 up to and including 6.6.* unaffected from 6.9.12 up to and including 6.9.* unaffected from 6.10.2 up to and including 6.10.* unaffected 6.11 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-41091 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-41091
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-41091
trivy image --scanners vuln IMAGE | grep CVE-2024-41091
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/32b0aaba5dbc85816898167d9b5d45a22eae82e9 git.kernel.org
- https://git.kernel.org/stable/c/6100e0237204890269e3f934acfc50d35fd6f319 git.kernel.org
- https://git.kernel.org/stable/c/589382f50b4a5d90d16d8bc9dcbc0e927a3e39b2 git.kernel.org
- https://git.kernel.org/stable/c/ad6b3f622ccfb4bfedfa53b6ebd91c3d1d04f146 git.kernel.org
- https://git.kernel.org/stable/c/d5ad89b7d01ed4e66fd04734fc63d6e78536692a git.kernel.org
- https://git.kernel.org/stable/c/a9d1c27e2ee3b0ea5d40c105d6e728fc114470bb git.kernel.org
- https://git.kernel.org/stable/c/8418f55302fa1d2eeb73e16e345167e545c598a5 git.kernel.org
- https://git.kernel.org/stable/c/049584807f1d797fc3078b68035450a9769eb5c3 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
Source: the record CVE-2024-41091 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse