{"id":"CVE-2022-50476","aliases":["CVE-2022-50476"],"related":[],"kind":"vulnerability","state":"published","title":"ntb_netdev: Use dev_kfree_skb_any() in interrupt context","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2025-10-04T15:16:36.895Z","modified":"2026-11-05T21:17:00.810Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"548c237c0a9972df5d1afaca38aa733ee577128d","fixed":"d4460c82177899751975180c268f352893302221","status":"affected"},{"type":"git","introduced":"548c237c0a9972df5d1afaca38aa733ee577128d","fixed":"dd860b39aa7c7b82e6c99b6fdb99d4610ce49d67","status":"affected"},{"type":"git","introduced":"548c237c0a9972df5d1afaca38aa733ee577128d","fixed":"8b78493968ed3cef0326183ed059c55e42f24d5b","status":"affected"},{"type":"git","introduced":"548c237c0a9972df5d1afaca38aa733ee577128d","fixed":"a6b9e09403102bdf8402dae734800e4916c7ea58","status":"affected"},{"type":"git","introduced":"548c237c0a9972df5d1afaca38aa733ee577128d","fixed":"13286ad1c7c49c606fdcba4cf66f953a1a16c1ca","status":"affected"},{"type":"git","introduced":"548c237c0a9972df5d1afaca38aa733ee577128d","fixed":"21296a52caa6a6bad6debdfe40ad81d4f1a27e69","status":"affected"},{"type":"git","introduced":"548c237c0a9972df5d1afaca38aa733ee577128d","fixed":"14d245da57a11e80277ab455aa9b6dcc5ed38a19","status":"affected"},{"type":"git","introduced":"548c237c0a9972df5d1afaca38aa733ee577128d","fixed":"07e28a8f450217db679802ebd4de0915556ce846","status":"affected"},{"type":"git","introduced":"548c237c0a9972df5d1afaca38aa733ee577128d","fixed":"5f7d78b2b12a9d561f48fa00bab29b40f4616dad","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.9","status":"unaffected"},{"type":"semver","introduced":"4.9.337","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.303","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.9","fixed":"4.9.337"},{"status":"affected","introduced":"4.10","fixed":"4.14.303"},{"status":"affected","introduced":"4.15","fixed":"4.19.270"},{"status":"affected","introduced":"4.20","fixed":"5.4.229"},{"status":"affected","introduced":"5.5","fixed":"5.10.163"},{"status":"affected","introduced":"5.11","fixed":"5.15.86"},{"status":"affected","introduced":"5.16","fixed":"6.0.16"},{"status":"affected","introduced":"6.1","fixed":"6.1.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d4460c82177899751975180c268f352893302221","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dd860b39aa7c7b82e6c99b6fdb99d4610ce49d67","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8b78493968ed3cef0326183ed059c55e42f24d5b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a6b9e09403102bdf8402dae734800e4916c7ea58","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13286ad1c7c49c606fdcba4cf66f953a1a16c1ca","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/21296a52caa6a6bad6debdfe40ad81d4f1a27e69","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/14d245da57a11e80277ab455aa9b6dcc5ed38a19","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/07e28a8f450217db679802ebd4de0915556ce846","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f7d78b2b12a9d561f48fa00bab29b40f4616dad","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:11:51.249Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50476","url":"https://www.cve.org/CVERecord?id=CVE-2022-50476","licence":"CVE Terms of Use","modified":"2026-11-05T20:20:47.899Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50476","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50476","licence":"Public domain","modified":"2026-11-05T21:17:00.810Z"}],"updatedAt":"2026-11-25T22:58:21.234Z","epss":{"score":0.00164,"percentile":0.05807,"date":"2026-12-01T12:00:22.000Z"}}