Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-47400

published high CVSS 3.1 · 7.8

net: hns3: do not allow call hns3_nic_net_open repeatedly

Published
21 May 2024, 15:03:55 UTC
Updated
05 Aug 2026, 08:47:40 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxe888402789b9db5de4fcda361331d66dbf0cd9fd to < 5a31d4e73ada8022427b69b10fd1f01a6a8d4b3d · e888402789b9db5de4fcda361331d66dbf0cd9fd to < f8ba689cb69523144d10606096ef686002dd7285 · e888402789b9db5de4fcda361331d66dbf0cd9fd to < 3dac38bdce7932901b9f0b71c62331852c809e61 · e888402789b9db5de4fcda361331d66dbf0cd9fd to < 5b09e88e1bf7fe86540fab4b5f3eece8abead39e · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.0 (affected) · 0 to < 5.0 (unaffected · semver) · 5.4.151 through 5.4.* (unaffected · semver) · 5.10.71 through 5.10.* (unaffected · semver) · 5.14.10 through 5.14.* (unaffected · semver) · 5.15 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
AlmaLinux 9 bpftool Advisory build 7.3.0-427.24.1.el9_4 ALSA-2024:4349
Oracle Linux 9 bpftoolaarch64 Advisory build 0:7.3.0-427.24.1.el9_4 ELSA-2024-4349
Red Hat Enterprise Linux RHEL-9 bpftoolaarch64 Advisory build 7.0.0-284.71.1.el9_2 RHSA-2024:4108
AlmaLinux 9 kernel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 9 kernel-64k Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-debug Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-devel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-doc Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-headers Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-modules Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-tools Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-zfcpdump-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-zfcpdump-devel Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-zfcpdump-devel-matched Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-zfcpdump-modules Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-zfcpdump-modules-core Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 kernel-zfcpdump-modules-extra Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 libperf Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 perf Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 python3-perf Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 rtla Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
AlmaLinux 9 rv Advisory build 5.14.0-427.24.1.el9_4 ALSA-2024:4349
Oracle Linux 9 bpftoolx86_64 Advisory build 0:7.3.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernelx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-abi-stablelistsx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-corex86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-cross-headersaarch64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-cross-headersx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-debugx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-debug-corex86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-debug-develx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-debug-devel-matchedx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-debug-modulesx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-debug-modules-corex86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-debug-modules-extrax86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-debug-uki-virtx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-develx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-devel-matchedx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-docx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-headersaarch64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-headersx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-modulesx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-modules-corex86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-modules-extrax86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-toolsaarch64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-toolsx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-tools-libsaarch64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-tools-libsx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-tools-libs-develaarch64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-tools-libs-develx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 kernel-uki-virtx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 libperfx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 perfaarch64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 perfx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 python3-perfaarch64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 python3-perfx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 rtlax86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349
Oracle Linux 9 rvx86_64 Advisory build 0:5.14.0-427.24.1.el9_4 ELSA-2024-4349

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: net: hns3: do not allow call hns3_nic_net_open repeatedly hns3_nic_net_open() is not allowed to called repeatly, but there is no checking for this. When doing device reset and setup tc concurrently, there is a small oppotunity to call hns3_nic_net_open repeatedly, and cause kernel bug by calling napi_enable twice. The calltrace information is like below: [ 3078.222780] ------------[ cut here ]------------ [ 3078.230255] kernel BUG at net/core/dev.c:6991! [ 3078.236224] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP [ 3078.243431] Modules linked in: hns3 hclgevf hclge hnae3 vfio_iommu_type1 vfio_pci vfio_virqfd vfio pv680_mii(O) [ 3078.258880] CPU: 0 PID: 295 Comm: kworker/u8:5 Tainted: G O 5.14.0-rc4+ #1 [ 3078.269102] Hardware name: , BIOS KpxxxFPGA 1P B600 V181 08/12/2021 [ 3078.276801] Workqueue: hclge hclge_service_task [hclge] [ 3078.288774] pstate: 60400009 (nZCv daif +PAN -UAO -TCO BTYPE=--) [ 3078.296168] pc : napi_enable+0x80/0x84 tc qdisc sho[w 3d0e7v8 .e3t0h218 79] lr : hns3_nic_net_open+0x138/0x510 [hns3] [ 3078.314771] sp : ffff8000108abb20 [ 3078.319099] x29: ffff8000108abb20 x28: 0000000000000000 x27: ffff0820a8490300 [ 3078.329121] x26: 0000000000000001 x25: ffff08209cfc6200 x24: 0000000000000000 [ 3078.339044] x23: ffff0820a8490300 x22: ffff08209cd76000 x21: ffff0820abfe3880 [ 3078.349018] x20: 0000000000000000 x19: ffff08209cd76900 x18: 0000000000000000 [ 3078.358620] x17: 0000000000000000 x16: ffffc816e1727a50 x15: 0000ffff8f4ff930 [ 3078.368895] x14: 0000000000000000 x13: 0000000000000000 x12: 0000259e9dbeb6b4 [ 3078.377987] x11: 0096a8f7e764eb40 x10: 634615ad28d3eab5 x9 : ffffc816ad8885b8 [ 3078.387091] x8 : ffff08209cfc6fb8 x7 : ffff0820ac0da058 x6 : ffff0820a8490344 [ 3078.396356] x5 : 0000000000000140 x4 : 0000000000000003 x3 : ffff08209cd76938 [ 3078.405365] x2 : 0000000000000000 x1 : 0000000000000010 x0 : ffff0820abfe38a0 [ 3078.414657] Call trace: [ 3078.418517] napi_enable+0x80/0x84 [ 3078.424626] hns3_reset_notify_up_enet+0x78/0xd0 [hns3] [ 3078.433469] hns3_reset_notify+0x64/0x80 [hns3] [ 3078.441430] hclge_notify_client+0x68/0xb0 [hclge] [ 3078.450511] hclge_reset_rebuild+0x524/0x884 [hclge] [ 3078.458879] hclge_reset_service_task+0x3c4/0x680 [hclge] [ 3078.467470] hclge_service_task+0xb0/0xb54 [hclge] [ 3078.475675] process_one_work+0x1dc/0x48c [ 3078.481888] worker_thread+0x15c/0x464 [ 3078.487104] kthread+0x160/0x170 [ 3078.492479] ret_from_fork+0x10/0x18 [ 3078.498785] Code: c8027c81 35ffffa2 d50323bf d65f03c0 (d4210000) [ 3078.506889] ---[ end trace 8ebe0340a1b0fb44 ]--- Once hns3_nic_net_open() is excute success, the flag HNS3_NIC_STATE_DOWN will be cleared. So add checking for this flag, directly return when HNS3_NIC_STATE_DOWN is no set.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

25

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - Exploitation requires local netlink/ioctl access to the hns3 PF (tc mqprio via ndo_setup_tc and/or ethtool reset), not remotely delivered packets or adjacent-network protocols. AC:L - An attacker with CAP_NET_ADMIN can trigger both sides of the race (ethtool --reset schedules hclge_reset_rebuild, which drops rtnl between phases, while concurrently running tc mqprio setup_tc) and retry until the window is hit. PR:L - Triggering setup_tc and ethtool reset requires CAP_NET_ADMIN in the netns that owns the hns3 PF; that capability is obtainable via user namespaces when the device is present in that netns, so this is Low rather than High. UI:N - The attacker directly issues the reset and tc configuration operations; no separate victim action is required. S:U - Impact is confined to the host kernel that owns the hns3 driver; there is no VM/IOMMU/sandbox boundary crossing. C:H - The second hns3_nic_net_open runs hns3_nic_reset_all_ring/hns3_clear_tx_ring on rings that are already live, freeing in-flight skbs/DMA buffers while NAPI/Tx may still reference them, yielding a UAF-class disclosure primitive. I:H - The same live-ring clear/reuse before the duplicate napi_enable enables double-free/UAF of descriptor buffers and skbs, which is exploitable for integrity compromise and control-flow hijacking. A:H - The duplicate napi_enable path hits BUG_ON(!NAPI_STATE_SCHED) in net/core/dev.c, producing a kernel BUG/oops and denial of service.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 4.0 medium CISA-ADP · adp CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux e888402789b9db5de4fcda361331d66dbf0cd9fd to < 5a31d4e73ada8022427b69b10fd1f01a6a8d4b3d (affected · git)e888402789b9db5de4fcda361331d66dbf0cd9fd to < f8ba689cb69523144d10606096ef686002dd7285 (affected · git)e888402789b9db5de4fcda361331d66dbf0cd9fd to < 3dac38bdce7932901b9f0b71c62331852c809e61 (affected · git)e888402789b9db5de4fcda361331d66dbf0cd9fd to < 5b09e88e1bf7fe86540fab4b5f3eece8abead39e (affected · git)Default: unaffected Linux · cna
Linux Linux 5.0 (affected)0 to < 5.0 (unaffected · semver)5.4.151 through 5.4.* (unaffected · semver)5.10.71 through 5.10.* (unaffected · semver)5.14.10 through 5.14.* (unaffected · semver)5.15 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

1
  • CWE-noinfo Not enough information (CISA-ADP · adp)

References

4

Provider assertions

3

Linux · cna

net: hns3: do not allow call hns3_nic_net_open repeatedly

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
84705ec32101ef9be20230108de430edf6ab7a806fd4ff4a31364b41736d148e
Ingested
23 Sep 2026, 07:57:11 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected