CVE-2022-50476
ntb_netdev: Use dev_kfree_skb_any() in interrupt context
Check your servers for CVE-2022-50476
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-2022-50476 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:
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.
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.81% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- 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 548c237c0a9972df5d1afaca38aa733ee577128d, before d4460c82177899751975180c268f352893302221 affected from 548c237c0a9972df5d1afaca38aa733ee577128d, before dd860b39aa7c7b82e6c99b6fdb99d4610ce49d67 affected from 548c237c0a9972df5d1afaca38aa733ee577128d, before 8b78493968ed3cef0326183ed059c55e42f24d5b affected from 548c237c0a9972df5d1afaca38aa733ee577128d, before a6b9e09403102bdf8402dae734800e4916c7ea58 affected from 548c237c0a9972df5d1afaca38aa733ee577128d, before 13286ad1c7c49c606fdcba4cf66f953a1a16c1ca affected from 548c237c0a9972df5d1afaca38aa733ee577128d, before 21296a52caa6a6bad6debdfe40ad81d4f1a27e69 affected from 548c237c0a9972df5d1afaca38aa733ee577128d, before 14d245da57a11e80277ab455aa9b6dcc5ed38a19 affected from 548c237c0a9972df5d1afaca38aa733ee577128d, before 07e28a8f450217db679802ebd4de0915556ce846 affected from 548c237c0a9972df5d1afaca38aa733ee577128d, before 5f7d78b2b12a9d561f48fa00bab29b40f4616dad
Other versions: unaffected
|
| Linux |
affected 3.9 unaffected before 3.9 unaffected from 4.9.337 up to and including 4.9.* unaffected from 4.14.303 up to and including 4.14.* unaffected from 4.19.270 up to and including 4.19.* unaffected from 5.4.229 up to and including 5.4.* unaffected from 5.10.163 up to and including 5.10.* unaffected from 5.15.86 up to and including 5.15.* unaffected from 6.0.16 up to and including 6.0.* unaffected from 6.1.2 up to and including 6.1.* unaffected 6.2 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-2022-50476 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50476
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-2022-50476
trivy image --scanners vuln IMAGE | grep CVE-2022-50476
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/d4460c82177899751975180c268f352893302221 git.kernel.org
- https://git.kernel.org/stable/c/dd860b39aa7c7b82e6c99b6fdb99d4610ce49d67 git.kernel.org
- https://git.kernel.org/stable/c/8b78493968ed3cef0326183ed059c55e42f24d5b git.kernel.org
- https://git.kernel.org/stable/c/a6b9e09403102bdf8402dae734800e4916c7ea58 git.kernel.org
- https://git.kernel.org/stable/c/13286ad1c7c49c606fdcba4cf66f953a1a16c1ca git.kernel.org
- https://git.kernel.org/stable/c/21296a52caa6a6bad6debdfe40ad81d4f1a27e69 git.kernel.org
- https://git.kernel.org/stable/c/14d245da57a11e80277ab455aa9b6dcc5ed38a19 git.kernel.org
- https://git.kernel.org/stable/c/07e28a8f450217db679802ebd4de0915556ce846 git.kernel.org
- https://git.kernel.org/stable/c/5f7d78b2b12a9d561f48fa00bab29b40f4616dad git.kernel.org
Source: the record CVE-2022-50476 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