CVE-2022-50476 json
ntb_netdev: Use dev_kfree_skb_any() in interrupt context
published 2025-10-04 13 mo ago modified 2026-11-05 3 d ago also EUVD-2025-32369
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 5%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
ntb_netdev: Use dev_kfree_skb_any() in interrupt context
TX/RX callback handlers (ntb_netdev_tx_handler(), ntb_netdev_rx_handler()) can be called in interrupt context via the DMA framework when the respective DMA operations have completed. As such, any calls by these routines to free skb's, should use the interrupt context safe dev_kfree_skb_any() function.
Previously, these callback handlers would call the interrupt unsafe version of dev_kfree_skb(). This has not presented an issue on Intel IOAT DMA engines as that driver utilizes tasklets rather than a hard interrupt handler, like the AMD PTDMA DMA driver. On AMD systems, a kernel WARNING message is encountered, which is being issued from skb_release_head_state() due to in_hardirq() being true.
Besides the user visible WARNING from the kernel, the other symptom of this bug was that TCP/IP performance across the ntb_netdev interface was very poor, i.e. approximately an order of magnitude below what was expected. With the repair to use dev_kfree_skb_any(), kernel WARNINGs from skb_release_head_state() ceased and TCP/IP performance, as measured by iperf, was on par with expected results, approximately 20 Gb/s on AMD Milan based server. Note that this performance is comparable with Intel based servers.
Patch / fix
- Linux Linux 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16, 6.1.2, 6.2
- linux Debian 14, Debian 13, Debian 12 6.1.4-1
debian advisories DEBIAN-CVE-2022-50476
- linux Ubuntu 18.04 LTS 4.15.0-208.220
- linux Ubuntu 20.04 LTS 5.4.0-144.161
- linux Ubuntu 22.04 LTS 5.15.0-69.76
- linux-aws Ubuntu 18.04 LTS 4.15.0-1153.166
- linux-aws Ubuntu 20.04 LTS 5.4.0-1097.105
- linux-aws Ubuntu 22.04 LTS 5.15.0-1033.37
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1101.110
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1031.38
ubuntu advisories UBUNTU-CVE-2022-50476
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.kernel.org/stable/c/d4460c82177899751975180c268f352893302221 commit
- git.kernel.org/stable/c/dd860b39aa7c7b82e6c99b6fdb99d4610ce49d67 commit
- git.kernel.org/stable/c/8b78493968ed3cef0326183ed059c55e42f24d5b commit
- git.kernel.org/stable/c/a6b9e09403102bdf8402dae734800e4916c7ea58 commit
- git.kernel.org/stable/c/13286ad1c7c49c606fdcba4cf66f953a1a16c1ca commit
- git.kernel.org/stable/c/21296a52caa6a6bad6debdfe40ad81d4f1a27e69 commit
- git.kernel.org/stable/c/14d245da57a11e80277ab455aa9b6dcc5ed38a19 commit
- git.kernel.org/stable/c/07e28a8f450217db679802ebd4de0915556ce846 commit
- git.kernel.org/stable/c/5f7d78b2b12a9d561f48fa00bab29b40f4616dad commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-50476 updated cvss 5.5
kernel: ntb_netdev: Use dev_kfree_skb_any() in interrupt context
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: workaround, no fix available “To mitigate this issue, prevent the ntb_netdev module from loading. See https://access.redhat.com/solutions/41278 for instructions on blacklisting kernel modules.”
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 d ago
Exploit prediction
0.16% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-401 Missing Release of Memory after Effective Lifetime
- Technology feeds
References
-
git.kernel.org
/stable/c/d4460c82177899751975180c268f352893302221
patch
-
git.kernel.org
/stable/c/dd860b39aa7c7b82e6c99b6fdb99d4610ce49d67
patch
-
git.kernel.org
/stable/c/8b78493968ed3cef0326183ed059c55e42f24d5b
patch
-
git.kernel.org
/stable/c/a6b9e09403102bdf8402dae734800e4916c7ea58
patch
-
git.kernel.org
/stable/c/13286ad1c7c49c606fdcba4cf66f953a1a16c1ca
patch
-
git.kernel.org
/stable/c/21296a52caa6a6bad6debdfe40ad81d4f1a27e69
patch
-
git.kernel.org
/stable/c/14d245da57a11e80277ab455aa9b6dcc5ed38a19
patch
-
git.kernel.org
/stable/c/07e28a8f450217db679802ebd4de0915556ce846
patch
-
git.kernel.org
/stable/c/5f7d78b2b12a9d561f48fa00bab29b40f4616dad
patch
Sources
- CVE List CVE-2022-50476
- NVD CVE-2022-50476
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.