# CVE-2022-50476: ntb\_netdev: Use dev\_kfree\_skb\_any() in interrupt context

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.22% (percentile 8, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-10-04T15:16:36.895Z
- **Modified:** 2026-11-05T21:17:00.810Z

## Who should check

- Anyone running Linux \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< d4460c82177899751975180c268f352893302221; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< dd860b39aa7c7b82e6c99b6fdb99d4610ce49d67; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 8b78493968ed3cef0326183ed059c55e42f24d5b; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< a6b9e09403102bdf8402dae734800e4916c7ea58; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 13286ad1c7c49c606fdcba4cf66f953a1a16c1ca; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 21296a52caa6a6bad6debdfe40ad81d4f1a27e69; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 14d245da57a11e80277ab455aa9b6dcc5ed38a19; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 07e28a8f450217db679802ebd4de0915556ce846; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 5f7d78b2b12a9d561f48fa00bab29b40f4616dad
- Anyone running Linux 3.9

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

## Affected and fixed versions

- Linux: \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< d4460c82177899751975180c268f352893302221; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< dd860b39aa7c7b82e6c99b6fdb99d4610ce49d67; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 8b78493968ed3cef0326183ed059c55e42f24d5b; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< a6b9e09403102bdf8402dae734800e4916c7ea58; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 13286ad1c7c49c606fdcba4cf66f953a1a16c1ca; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 21296a52caa6a6bad6debdfe40ad81d4f1a27e69; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 14d245da57a11e80277ab455aa9b6dcc5ed38a19; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 07e28a8f450217db679802ebd4de0915556ce846; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 5f7d78b2b12a9d561f48fa00bab29b40f4616dad (cvelist)
- Linux: 3.9 (cvelist)

## Mitigation

- Upgrade Linux to 5f7d78b2b12a9d561f48fa00bab29b40f4616dad or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50476.md
Affected: Linux >= 548c237c0a9972df5d1afaca38aa733ee577128d, < d4460c82177899751975180c268f352893302221; >= 548c237c0a9972df5d1afaca38aa733ee577128d, < dd860b39aa7c7b82e6c99b6fdb99d4610ce49d67; >= 548c237c0a9972df5d1afaca38aa733ee577128d, < 8b78493968ed3cef0326183ed059c55e42f24d5b; >= 548c237c0a9972df5d1afac…
Fixed in: Linux 8b78493968ed3cef0326183ed059c55e42f24d5b, Linux 13286ad1c7c49c606fdcba4cf66f953a1a16c1ca, Linux 21296a52caa6a6bad6debdfe40ad81d4f1a27e69, Linux 14d245da57a11e80277ab455aa9b6dcc5ed38a19, Linux 07e28a8f450217db679802ebd4de0915556ce846, Linux 5f7d78b2b12a9d561f48fa00bab29b40f4616dad

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-2022-50476 being exploited?

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

### How serious is CVE-2022-50476?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50476?

Linux \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< d4460c82177899751975180c268f352893302221; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< dd860b39aa7c7b82e6c99b6fdb99d4610ce49d67; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 8b78493968ed3cef0326183ed059c55e42f24d5b; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< a6b9e09403102bdf8402dae734800e4916c7ea58; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 13286ad1c7c49c606fdcba4cf66f953a1a16c1ca; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 21296a52caa6a6bad6debdfe40ad81d4f1a27e69; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 14d245da57a11e80277ab455aa9b6dcc5ed38a19; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 07e28a8f450217db679802ebd4de0915556ce846; \>= 548c237c0a9972df5d1afaca38aa733ee577128d, \< 5f7d78b2b12a9d561f48fa00bab29b40f4616dad; Linux 3.9.

### Is there a fix for CVE-2022-50476?

Yes. Fixed in Linux 8b78493968ed3cef0326183ed059c55e42f24d5b, Linux 13286ad1c7c49c606fdcba4cf66f953a1a16c1ca, Linux 21296a52caa6a6bad6debdfe40ad81d4f1a27e69, Linux 14d245da57a11e80277ab455aa9b6dcc5ed38a19, Linux 07e28a8f450217db679802ebd4de0915556ce846, Linux 5f7d78b2b12a9d561f48fa00bab29b40f4616dad. Upgrade Linux to 5f7d78b2b12a9d561f48fa00bab29b40f4616dad or later.

### How do I check if I'm affected by CVE-2022-50476?

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/d4460c82177899751975180c268f352893302221>
- patch: <https://git.kernel.org/stable/c/dd860b39aa7c7b82e6c99b6fdb99d4610ce49d67>
- patch: <https://git.kernel.org/stable/c/8b78493968ed3cef0326183ed059c55e42f24d5b>
- patch: <https://git.kernel.org/stable/c/a6b9e09403102bdf8402dae734800e4916c7ea58>
- patch: <https://git.kernel.org/stable/c/13286ad1c7c49c606fdcba4cf66f953a1a16c1ca>
- patch: <https://git.kernel.org/stable/c/21296a52caa6a6bad6debdfe40ad81d4f1a27e69>
- patch: <https://git.kernel.org/stable/c/14d245da57a11e80277ab455aa9b6dcc5ed38a19>
- patch: <https://git.kernel.org/stable/c/07e28a8f450217db679802ebd4de0915556ce846>
- patch: <https://git.kernel.org/stable/c/5f7d78b2b12a9d561f48fa00bab29b40f4616dad>

## 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-2022-50476>

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