{"id":"CVE-2025-37920","aliases":["CVE-2025-37920"],"related":[],"kind":"vulnerability","state":"published","title":"xsk: Fix race condition in AF_XDP generic RX path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nxsk: Fix race condition in AF_XDP generic RX path\n\nMove rx_lock from xsk_socket to xsk_buff_pool.\nFix synchronization for shared umem mode in\ngeneric RX path where multiple sockets share\nsingle xsk_buff_pool.\n\nRX queue is exclusive to xsk_socket, while FILL\nqueue can be shared between multiple sockets.\nThis could result in race condition where two\nCPU cores access RX path of two different sockets\nsharing the same umem.\n\nProtect both queues by acquiring spinlock in shared\nxsk_buff_pool.\n\nLock contention may be minimized in the future by some\nper-thread FQ buffering.\n\nIt's safe and necessary to move spin_lock_bh(rx_lock)\nafter xsk_rcv_check():\n* xs->pool and spinlock_init is synchronized by\n  xsk_bind() -> xsk_is_bound() memory barriers.\n* xsk_rcv_check() may return true at the moment\n  of xsk_release() or xsk_unbind_dev(),\n  however this will not cause any data races or\n  race conditions. xsk_unbind_dev() removes xdp\n  socket from all maps and waits for completion\n  of all outstanding rx operations. Packets in\n  RX path will either complete safely or drop.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nxsk: Fix race condition in AF_XDP generic RX path\n\nMove rx_lock from xsk_socket to xsk_buff_pool.\nFix synchronization for shared umem mode in\ngeneric RX path where multiple sockets share\nsingle xsk_buff_pool.\n\nRX queue is exclusive to xsk_socket, while FILL\nqueue can be shared between multiple sockets.\nThis could result in race condition where two\nCPU cores access RX path of two different sockets\nsharing the same umem.\n\nProtect both queues by acquiring spinlock in shared\nxsk_buff_pool.\n\nLock contention may be minimized in the future by some\nper-thread FQ buffering.\n\nIt's safe and necessary to move spin_lock_bh(rx_lock)\nafter xsk_rcv_check():\n* xs->pool and spinlock_init is synchronized by\n  xsk_bind() -> xsk_is_bound() memory barriers.\n* xsk_rcv_check() may return true at the moment\n  of xsk_release() or xsk_unbind_dev(),\n  however this will not cause any data races or\n  race conditions. xsk_unbind_dev() removes xdp\n  socket from all maps and waits for completion\n  of all outstanding rx operations. Packets in\n  RX path will either complete safely or drop.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: xsk: Corrige la condición de ejecución en la ruta RX genérica AF_XDP Mueve rx_lock de xsk_socket a xsk_buff_pool. Corrige la sincronización para el modo umem compartido en la ruta RX genérica donde varios sockets comparten un solo xsk_buff_pool. La cola RX es exclusiva de xsk_socket, mientras que la cola FILL se puede compartir entre varios sockets. Esto podría resultar en una condición de ejecución donde dos núcleos de CPU acceden a la ruta RX de dos sockets diferentes que comparten el mismo umem. Protege ambas colas adquiriendo spinlock en xsk_buff_pool compartido. La contención de bloqueos se puede minimizar en el futuro mediante algún búfer FQ por subproceso. Es seguro y necesario mover spin_lock_bh(rx_lock) después de xsk_rcv_check(): * xs-&gt;pool y spinlock_init se sincronizan mediante barreras de memoria xsk_bind() -&gt; xsk_is_bound(). * xsk_rcv_check() puede devolver verdadero al ejecutar xsk_release() o xsk_unbind_dev(); sin embargo, esto no causará ejecucións de datos ni condiciones de ejecución. xsk_unbind_dev() elimina el socket xdp de todos los mapas y espera a que se completen todas las operaciones de recepción pendientes. Los paquetes en la ruta de recepción se completarán correctamente o se descartarán.","source":"nvd"}],"published":"2025-05-20T15:21:49.685Z","modified":"2026-10-15T22:18:21.380Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"git","introduced":"bf0bdd1343efbbf65b4d53aef1fce14acbd79d50","fixed":"975b372313dc018b9bd6cc0d85d188787054b19e","status":"affected"},{"type":"git","introduced":"bf0bdd1343efbbf65b4d53aef1fce14acbd79d50","fixed":"b6978c565ce33658543c637060852434b4248d30","status":"affected"},{"type":"git","introduced":"bf0bdd1343efbbf65b4d53aef1fce14acbd79d50","fixed":"65d3c570614b892257dc58a1b202908242ecf8fd","status":"affected"},{"type":"git","introduced":"bf0bdd1343efbbf65b4d53aef1fce14acbd79d50","fixed":"75a240a3e8abf17b9e00b0ef0492b1bbaa932251","status":"affected"},{"type":"git","introduced":"bf0bdd1343efbbf65b4d53aef1fce14acbd79d50","fixed":"a1356ac7749cafc4e27aa62c0c4604b5dca4983e","status":"affected"},{"type":"git","version":"fd7c22ba7a0ad898b9ecf77dd53f5ccc48492e35","status":"affected"},{"type":"git","version":"8a090e3b73eaffe18e08ccc3fb5abecf6b0a9781","status":"affected"},{"type":"semver","introduced":"5.1.20","fixed":"5.2","status":"affected"},{"type":"semver","introduced":"5.2.3","fixed":"5.3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.3","status":"unaffected"},{"type":"semver","introduced":"6.1.164","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.123","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.28","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.14.6","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","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":"5.1.20","fixed":"5.2"},{"status":"affected","introduced":"5.2.3","fixed":"6.12.28"},{"status":"affected","introduced":"6.13","fixed":"6.14.6"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"},{"status":"affected","version":"6.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/975b372313dc018b9bd6cc0d85d188787054b19e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b6978c565ce33658543c637060852434b4248d30","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/65d3c570614b892257dc58a1b202908242ecf8fd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/75a240a3e8abf17b9e00b0ef0492b1bbaa932251","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a1356ac7749cafc4e27aa62c0c4604b5dca4983e","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:46:06.201Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-37920","url":"https://www.cve.org/CVERecord?id=CVE-2025-37920","licence":"CVE Terms of Use","modified":"2026-10-15T21:52:03.782Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-37920","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37920","licence":"Public domain","modified":"2026-10-15T22:18:21.380Z"}],"updatedAt":"2026-11-25T22:58:58.286Z","epss":{"score":0.0016,"percentile":0.05371,"date":"2026-12-01T12:00:22.000Z"}}