{
  "id": "CVE-2025-37920",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-37920",
  "published_at": "2025-05-20T15:21:49.685Z",
  "title": "xsk: Fix race condition in AF_XDP generic RX path",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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-\u003epool and spinlock_init is synchronized by\n  xsk_bind() -\u003e 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.",
  "cwe": "CWE-362",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc4:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 4.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= bf0bdd1343efbbf65b4d53aef1fce14acbd79d50, \u003c 975b372313dc018b9bd6cc0d85d188787054b19e",
          "\u003e= bf0bdd1343efbbf65b4d53aef1fce14acbd79d50, \u003c b6978c565ce33658543c637060852434b4248d30",
          "\u003e= bf0bdd1343efbbf65b4d53aef1fce14acbd79d50, \u003c 65d3c570614b892257dc58a1b202908242ecf8fd",
          "\u003e= bf0bdd1343efbbf65b4d53aef1fce14acbd79d50, \u003c 75a240a3e8abf17b9e00b0ef0492b1bbaa932251",
          "\u003e= bf0bdd1343efbbf65b4d53aef1fce14acbd79d50, \u003c a1356ac7749cafc4e27aa62c0c4604b5dca4983e",
          "fd7c22ba7a0ad898b9ecf77dd53f5ccc48492e35",
          "8a090e3b73eaffe18e08ccc3fb5abecf6b0a9781",
          "\u003e= 5.1.20, \u003c 5.2",
          "\u003e= 5.2.3, \u003c 5.3"
        ],
        "fixed_in": [
          "975b372313dc018b9bd6cc0d85d188787054b19e",
          "b6978c565ce33658543c637060852434b4248d30",
          "65d3c570614b892257dc58a1b202908242ecf8fd",
          "75a240a3e8abf17b9e00b0ef0492b1bbaa932251",
          "a1356ac7749cafc4e27aa62c0c4604b5dca4983e",
          "5.2",
          "5.3"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.3"
        ],
        "fixed_in": [
          "0",
          "6.1.164",
          "6.6.123",
          "6.12.28",
          "6.14.6",
          "6.15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 975b372313dc018b9bd6cc0d85d188787054b19e or b6978c565ce33658543c637060852434b4248d30 or 65d3c570614b892257dc58a1b202908242ecf8fd or 75a240a3e8abf17b9e00b0ef0492b1bbaa932251 or a1356ac7749cafc4e27aa62c0c4604b5dca4983e or 5.2 or 5.3 or later.",
      "Upgrade Linux to 0 or 6.1.164 or 6.6.123 or 6.12.28 or 6.14.6 or 6.15 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
