# CVE-2021-46998: ethernet:enic: Fix a use after free bug in enic\_hard\_start\_xmit

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-02-28T08:13:21.651Z
- **Modified:** 2026-08-05T08:45:27.902Z

## Who should check

- Anyone running Linux \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< 25a87b1f566b5eb2af2857a928f0e2310d900976; \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< f7f6f07774091a6ddd98500b85386c3c6afb30d3; \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< 7afdd6aba95c8a526038e7abe283eeac3e4320f1; \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< 6892396ebf04ea2c021d80e10f4075e014cd7cc3; \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< d90529392aaf498dafa95d212295d64b2cea4e24; \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< 643001b47adc844ae33510c4bb93c236667008a3
- Anyone running Linux 4.16

## 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.

## Affected and fixed versions

- Linux: \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< 25a87b1f566b5eb2af2857a928f0e2310d900976; \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< f7f6f07774091a6ddd98500b85386c3c6afb30d3; \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< 7afdd6aba95c8a526038e7abe283eeac3e4320f1; \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< 6892396ebf04ea2c021d80e10f4075e014cd7cc3; \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< d90529392aaf498dafa95d212295d64b2cea4e24; \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< 643001b47adc844ae33510c4bb93c236667008a3 (cvelist)
- Linux: 4.16 (cvelist)

## Mitigation

- Upgrade Linux to 643001b47adc844ae33510c4bb93c236667008a3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-46998. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-46998.md
Affected: Linux >= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, < 25a87b1f566b5eb2af2857a928f0e2310d900976; >= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, < f7f6f07774091a6ddd98500b85386c3c6afb30d3; >= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, < 7afdd6aba95c8a526038e7abe283eeac3e4320f1; >= fb7516d42478ebc8e2f00ef…
Fixed in: Linux 25a87b1f566b5eb2af2857a928f0e2310d900976, Linux 7afdd6aba95c8a526038e7abe283eeac3e4320f1, Linux 6892396ebf04ea2c021d80e10f4075e014cd7cc3, Linux 643001b47adc844ae33510c4bb93c236667008a3

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-46998 being exploited?

There is no confirmed exploitation: CVE-2021-46998 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-46998?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-46998?

Linux \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< 25a87b1f566b5eb2af2857a928f0e2310d900976; \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< f7f6f07774091a6ddd98500b85386c3c6afb30d3; \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< 7afdd6aba95c8a526038e7abe283eeac3e4320f1; \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< 6892396ebf04ea2c021d80e10f4075e014cd7cc3; \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< d90529392aaf498dafa95d212295d64b2cea4e24; \>= fb7516d42478ebc8e2f00efb76ef96f7b68fd8d3, \< 643001b47adc844ae33510c4bb93c236667008a3; Linux 4.16.

### Is there a fix for CVE-2021-46998?

Yes. Fixed in Linux 25a87b1f566b5eb2af2857a928f0e2310d900976, Linux 7afdd6aba95c8a526038e7abe283eeac3e4320f1, Linux 6892396ebf04ea2c021d80e10f4075e014cd7cc3, Linux 643001b47adc844ae33510c4bb93c236667008a3. Upgrade Linux to 643001b47adc844ae33510c4bb93c236667008a3 or later.

### How do I check if I'm affected by CVE-2021-46998?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/25a87b1f566b5eb2af2857a928f0e2310d900976>
- patch: <https://git.kernel.org/stable/c/f7f6f07774091a6ddd98500b85386c3c6afb30d3>
- patch: <https://git.kernel.org/stable/c/7afdd6aba95c8a526038e7abe283eeac3e4320f1>
- patch: <https://git.kernel.org/stable/c/6892396ebf04ea2c021d80e10f4075e014cd7cc3>
- patch: <https://git.kernel.org/stable/c/d90529392aaf498dafa95d212295d64b2cea4e24>
- patch: <https://git.kernel.org/stable/c/643001b47adc844ae33510c4bb93c236667008a3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-46998>

HTML: <https://flawdb.com/CVE-2021-46998> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-46998>
