CVE-2021-46998
ethernet:enic: Fix a use after free bug in enic_hard_start_xmit
Check your servers for CVE-2021-46998
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-2021-46998 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:
ethernet:enic: Fix a use after free bug in enic_hard_start_xmit
In enic_hard_start_xmit, it calls enic_queue_wq_skb(). Inside enic_queue_wq_skb, if some error happens, the skb will be freed by dev_kfree_skb(skb). But the freed skb is still used in skb_tx_timestamp(skb).
My patch makes enic_queue_wq_skb() return error and goto spin_unlock() incase of error. The solution is provided by Govind. See https://lkml.org/lkml/2021/4/30/961.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/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
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.7% 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 fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, before 25a87b1f566b5eb2af2857a928f0e2310d900976 affected from fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, before f7f6f07774091a6ddd98500b85386c3c6afb30d3 affected from fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, before 7afdd6aba95c8a526038e7abe283eeac3e4320f1 affected from fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, before 6892396ebf04ea2c021d80e10f4075e014cd7cc3 affected from fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, before d90529392aaf498dafa95d212295d64b2cea4e24 affected from fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, before 643001b47adc844ae33510c4bb93c236667008a3
Other versions: unaffected
|
| Linux |
affected 4.16 unaffected before 4.16 unaffected from 4.19.191 up to and including 4.19.* unaffected from 5.4.120 up to and including 5.4.* unaffected from 5.10.38 up to and including 5.10.* unaffected from 5.11.22 up to and including 5.11.* unaffected from 5.12.5 up to and including 5.12.* unaffected 5.13 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-2021-46998 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-46998
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-2021-46998
trivy image --scanners vuln IMAGE | grep CVE-2021-46998
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/25a87b1f566b5eb2af2857a928f0e2310d900976 git.kernel.org
- https://git.kernel.org/stable/c/f7f6f07774091a6ddd98500b85386c3c6afb30d3 git.kernel.org
- https://git.kernel.org/stable/c/7afdd6aba95c8a526038e7abe283eeac3e4320f1 git.kernel.org
- https://git.kernel.org/stable/c/6892396ebf04ea2c021d80e10f4075e014cd7cc3 git.kernel.org
- https://git.kernel.org/stable/c/d90529392aaf498dafa95d212295d64b2cea4e24 git.kernel.org
- https://git.kernel.org/stable/c/643001b47adc844ae33510c4bb93c236667008a3 git.kernel.org
Source: the record CVE-2021-46998 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