{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50476","id":"CVE-2022-50476","title":"ntb_netdev: Use dev_kfree_skb_any() in interrupt context","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nntb_netdev: Use dev_kfree_skb_any() in interrupt context\n\nTX/RX callback handlers (ntb_netdev_tx_handler(),\nntb_netdev_rx_handler()) can be called in interrupt\ncontext via the DMA framework when the respective\nDMA operations have completed. As such, any calls\nby these routines to free skb's, should use the\ninterrupt context safe ","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nntb_netdev: Use dev_kfree_skb_any() in interrupt context\n\nTX/RX callback handlers (ntb_netdev_tx_handler(),\nntb_netdev_rx_handler()) can be called in interrupt\ncontext via the DMA framework when the respective\nDMA operations have completed. As such, any calls\nby these routines to free skb's, should use the\ninterrupt context safe dev_kfree_skb_any() function.\n\nPreviously, these callback handlers would call the\ninterrupt unsafe version of dev_kfree_skb(). This has\nnot presented an issue on Intel IOAT DMA engines as\nthat driver utilizes tasklets rather than a hard\ninterrupt handler, like the AMD PTDMA DMA driver.\nOn AMD systems, a kernel WARNING message is\nencountered, which is being issued from\nskb_release_head_state() due to in_hardirq()\nbeing true.\n\nBesides the user visible WARNING from the kernel,\nthe other symptom of this bug was that TCP/IP performance\nacross the ntb_netdev interface was very poor, i.e.\napproximately an order of magnitude below what was\nexpected. With the repair to use dev_kfree_skb_any(),\nkernel WARNINGs from skb_release_head_state() ceased\nand TCP/IP performance, as measured by iperf, was on\npar with expected results, approximately 20 Gb/s on\nAMD Milan based server. Note that this performance\nis comparable with Intel based servers.","published":"2025-10-04T15:16:36.895Z","updated":"2026-11-07T02:31:06.529925497Z","reserved":"2025-10-04T15:13:33.467Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"548c237c0a9972df5d1afaca38aa733ee577128d","lessThan":"d4460c82177899751975180c268f352893302221","status":"affected","versionType":"git"},{"version":"548c237c0a9972df5d1afaca38aa733ee577128d","lessThan":"dd860b39aa7c7b82e6c99b6fdb99d4610ce49d67","status":"affected","versionType":"git"},{"version":"548c237c0a9972df5d1afaca38aa733ee577128d","lessThan":"8b78493968ed3cef0326183ed059c55e42f24d5b","status":"affected","versionType":"git"},{"version":"548c237c0a9972df5d1afaca38aa733ee577128d","lessThan":"a6b9e09403102bdf8402dae734800e4916c7ea58","status":"affected","versionType":"git"},{"version":"548c237c0a9972df5d1afaca38aa733ee577128d","lessThan":"13286ad1c7c49c606fdcba4cf66f953a1a16c1ca","status":"affected","versionType":"git"},{"version":"548c237c0a9972df5d1afaca38aa733ee577128d","lessThan":"21296a52caa6a6bad6debdfe40ad81d4f1a27e69","status":"affected","versionType":"git"},{"version":"548c237c0a9972df5d1afaca38aa733ee577128d","lessThan":"14d245da57a11e80277ab455aa9b6dcc5ed38a19","status":"affected","versionType":"git"},{"version":"548c237c0a9972df5d1afaca38aa733ee577128d","lessThan":"07e28a8f450217db679802ebd4de0915556ce846","status":"affected","versionType":"git"},{"version":"548c237c0a9972df5d1afaca38aa733ee577128d","lessThan":"5f7d78b2b12a9d561f48fa00bab29b40f4616dad","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.9","status":"affected"},{"version":"0","lessThan":"3.9","status":"unaffected","versionType":"semver"},{"version":"4.9.337","lessThanOrEqual":"4.9.*","status":"unaffected","versionType":"semver"},{"version":"4.14.303","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.270","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.229","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.163","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.86","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.0.16","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1.2","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/d4460c82177899751975180c268f352893302221","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/dd860b39aa7c7b82e6c99b6fdb99d4610ce49d67","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8b78493968ed3cef0326183ed059c55e42f24d5b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a6b9e09403102bdf8402dae734800e4916c7ea58","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/13286ad1c7c49c606fdcba4cf66f953a1a16c1ca","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/21296a52caa6a6bad6debdfe40ad81d4f1a27e69","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/14d245da57a11e80277ab455aa9b6dcc5ed38a19","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/07e28a8f450217db679802ebd4de0915556ce846","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5f7d78b2b12a9d561f48fa00bab29b40f4616dad","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50476.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50476","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00163,"epssPercentile":0.05589,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50476","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50476","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50476","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50476","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}