{"id":"CVE-2022-49687","aliases":["CVE-2022-49687"],"related":[],"kind":"vulnerability","state":"published","title":"virtio_net: fix xdp_rxq_info bug after suspend/resume","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nvirtio_net: fix xdp_rxq_info bug after suspend/resume\n\nThe following sequence currently causes a driver bug warning\nwhen using virtio_net:\n\n  # ip link set eth0 up\n  # echo mem > /sys/power/state (or e.g. # rtcwake -s 10 -m mem)\n  <resume>\n  # ip link set eth0 down\n\n  Missing register, driver bug\n  WARNING: CPU: 0 PID: 375 at net/core/xdp.c:138 xdp_rxq_info_unreg+0x58/0x60\n  Call trace:\n   xdp_rxq_info_unreg+0x58/0x60\n   virtnet_close+0x58/0xac\n   __dev_close_many+0xac/0x140\n   __dev_change_flags+0xd8/0x210\n   dev_change_flags+0x24/0x64\n   do_setlink+0x230/0xdd0\n   ...\n\nThis happens because virtnet_freeze() frees the receive_queue\ncompletely (including struct xdp_rxq_info) but does not call\nxdp_rxq_info_unreg(). Similarly, virtnet_restore() sets up the\nreceive_queue again but does not call xdp_rxq_info_reg().\n\nActually, parts of virtnet_freeze_down() and virtnet_restore_up()\nare almost identical to virtnet_close() and virtnet_open(): only\nthe calls to xdp_rxq_info_(un)reg() are missing. This means that\nwe can fix this easily and avoid such problems in the future by\njust calling virtnet_close()/open() from the freeze/restore handlers.\n\nAside from adding the missing xdp_rxq_info calls the only difference\nis that the refill work is only cancelled if netif_running(). However,\nthis should not make any functional difference since the refill work\nshould only be active if the network interface is actually up.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvirtio_net: fix xdp_rxq_info bug after suspend/resume\n\nThe following sequence currently causes a driver bug warning\nwhen using virtio_net:\n\n  # ip link set eth0 up\n  # echo mem > /sys/power/state (or e.g. # rtcwake -s 10 -m mem)\n  <resume>\n  # ip link set eth0 down\n\n  Missing register, driver bug\n  WARNING: CPU: 0 PID: 375 at net/core/xdp.c:138 xdp_rxq_info_unreg+0x58/0x60\n  Call trace:\n   xdp_rxq_info_unreg+0x58/0x60\n   virtnet_close+0x58/0xac\n   __dev_close_many+0xac/0x140\n   __dev_change_flags+0xd8/0x210\n   dev_change_flags+0x24/0x64\n   do_setlink+0x230/0xdd0\n   ...\n\nThis happens because virtnet_freeze() frees the receive_queue\ncompletely (including struct xdp_rxq_info) but does not call\nxdp_rxq_info_unreg(). Similarly, virtnet_restore() sets up the\nreceive_queue again but does not call xdp_rxq_info_reg().\n\nActually, parts of virtnet_freeze_down() and virtnet_restore_up()\nare almost identical to virtnet_close() and virtnet_open(): only\nthe calls to xdp_rxq_info_(un)reg() are missing. This means that\nwe can fix this easily and avoid such problems in the future by\njust calling virtnet_close()/open() from the freeze/restore handlers.\n\nAside from adding the missing xdp_rxq_info calls the only difference\nis that the refill work is only cancelled if netif_running(). However,\nthis should not make any functional difference since the refill work\nshould only be active if the network interface is actually up.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: virtio_net: corrección del error xdp_rxq_info después de suspender/reanudar La siguiente secuencia actualmente provoca una advertencia de error del controlador al usar virtio_net: # ip link set eth0 up # echo mem &gt; /sys/power/state (or e.g. # rtcwake -s 10 -m mem)  # ip link set eth0 down Missing register, driver bug WARNING: CPU: 0 PID: 375 at net/core/xdp.c:138 xdp_rxq_info_unreg+0x58/0x60 Call trace: xdp_rxq_info_unreg+0x58/0x60 virtnet_close+0x58/0xac __dev_close_many+0xac/0x140 __dev_change_flags+0xd8/0x210 dev_change_flags+0x24/0x64 do_setlink+0x230/0xdd0 ... This happens because virtnet_freeze() frees the receive_queue completely (including struct xdp_rxq_info) but does not call xdp_rxq_info_unreg(). Similarly, virtnet_restore() sets up the receive_queue again but does not call xdp_rxq_info_reg(). Actually, parts of virtnet_freeze_down() and virtnet_restore_up() are almost identical to virtnet_close() and virtnet_open(): only the calls to xdp_rxq_info_(un)reg() are missing. Esto significa que podemos solucionar esto fácilmente y evitar este tipo de problemas en el futuro simplemente llamando a virtnet_close()/open() desde los controladores de congelación/restauración. Aparte de agregar las llamadas xdp_rxq_info faltantes, la única diferencia es que el trabajo de recarga solo se cancela si se ejecuta netif_running(). Sin embargo, esto no debería generar ninguna diferencia funcional, ya que el trabajo de recarga solo debería estar activo si la interfaz de red está realmente activa.","source":"nvd"}],"published":"2025-02-26T02:24:13.187Z","modified":"2026-11-05T20:17:08.793Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"754b8a21a96d5f11712245aef907149606b323ae","fixed":"9222672fa6370f0ec3d899662cb8680e9282fc4c","status":"affected"},{"type":"git","introduced":"754b8a21a96d5f11712245aef907149606b323ae","fixed":"8c7a32b7c15555beddc5810c3334d9cefff061bf","status":"affected"},{"type":"git","introduced":"754b8a21a96d5f11712245aef907149606b323ae","fixed":"340fbdc8011f2dc678f622c5ce1cbb5ab8305de7","status":"affected"},{"type":"git","introduced":"754b8a21a96d5f11712245aef907149606b323ae","fixed":"8d7fe9ad6fddc2af8bde4b921b4f8fab231ed38c","status":"affected"},{"type":"git","introduced":"754b8a21a96d5f11712245aef907149606b323ae","fixed":"57ee40f1b198b59d43c216fbc4672f9300d3c8b0","status":"affected"},{"type":"git","introduced":"754b8a21a96d5f11712245aef907149606b323ae","fixed":"8af52fe9fd3bf5e7478da99193c0632276e1dfce","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.16","status":"unaffected"},{"type":"semver","introduced":"4.19.250","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.202","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.127","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.51","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.18.8","lastAffected":"5.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.19","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":"4.16","fixed":"4.19.250"},{"status":"affected","introduced":"4.20","fixed":"5.4.202"},{"status":"affected","introduced":"5.5","fixed":"5.10.127"},{"status":"affected","introduced":"5.11","fixed":"5.15.51"},{"status":"affected","introduced":"5.16","fixed":"5.18.8"},{"status":"affected","version":"5.19"},{"status":"affected","version":"5.19"},{"status":"affected","version":"5.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/9222672fa6370f0ec3d899662cb8680e9282fc4c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8c7a32b7c15555beddc5810c3334d9cefff061bf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/340fbdc8011f2dc678f622c5ce1cbb5ab8305de7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8d7fe9ad6fddc2af8bde4b921b4f8fab231ed38c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/57ee40f1b198b59d43c216fbc4672f9300d3c8b0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8af52fe9fd3bf5e7478da99193c0632276e1dfce","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T19:46:47.424Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49687","url":"https://www.cve.org/CVERecord?id=CVE-2022-49687","licence":"CVE Terms of Use","modified":"2026-11-05T19:49:41.990Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49687","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49687","licence":"Public domain","modified":"2026-11-05T20:17:08.793Z"}],"updatedAt":"2026-11-25T22:58:20.804Z","epss":{"score":0.0029,"percentile":0.23194,"date":"2026-12-01T12:00:22.000Z"}}