CVE-2025-37920 (GCVE-0-2025-37920)

Vulnerability from cvelistv5 – Published: 2025-05-20 15:21 – Updated: 2026-10-15 21:52
VLAI
Title
xsk: Fix race condition in AF_XDP generic RX path
Summary
In the Linux kernel, the following vulnerability has been resolved: xsk: Fix race condition in AF_XDP generic RX path Move rx_lock from xsk_socket to xsk_buff_pool. Fix synchronization for shared umem mode in generic RX path where multiple sockets share single xsk_buff_pool. RX queue is exclusive to xsk_socket, while FILL queue can be shared between multiple sockets. This could result in race condition where two CPU cores access RX path of two different sockets sharing the same umem. Protect both queues by acquiring spinlock in shared xsk_buff_pool. Lock contention may be minimized in the future by some per-thread FQ buffering. It's safe and necessary to move spin_lock_bh(rx_lock) after xsk_rcv_check(): * xs->pool and spinlock_init is synchronized by xsk_bind() -> xsk_is_bound() memory barriers. * xsk_rcv_check() may return true at the moment of xsk_release() or xsk_unbind_dev(), however this will not cause any data races or race conditions. xsk_unbind_dev() removes xdp socket from all maps and waits for completion of all outstanding rx operations. Packets in RX path will either complete safely or drop.
SSVC
Exploitation: none Automatable: no Technical Impact: total
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2026-10-15 21:46 UTC
Assigner
Linux CNA
Impacted products
Vendor Product Version
Linux Linux Affected: bf0bdd1343efbbf65b4d53aef1fce14acbd79d50 , < 975b372313dc018b9bd6cc0d85d188787054b19e (git)
Affected: bf0bdd1343efbbf65b4d53aef1fce14acbd79d50 , < b6978c565ce33658543c637060852434b4248d30 (git)
Affected: bf0bdd1343efbbf65b4d53aef1fce14acbd79d50 , < 65d3c570614b892257dc58a1b202908242ecf8fd (git)
Affected: bf0bdd1343efbbf65b4d53aef1fce14acbd79d50 , < 75a240a3e8abf17b9e00b0ef0492b1bbaa932251 (git)
Affected: bf0bdd1343efbbf65b4d53aef1fce14acbd79d50 , < a1356ac7749cafc4e27aa62c0c4604b5dca4983e (git)
Affected: fd7c22ba7a0ad898b9ecf77dd53f5ccc48492e35 (git)
Affected: 8a090e3b73eaffe18e08ccc3fb5abecf6b0a9781 (git)
Affected: 5.1.20 , < 5.2 (semver)
Affected: 5.2.3 , < 5.3 (semver)
Create a notification for this product.
Linux Linux Affected: 5.3
Unaffected: 0 , < 5.3 (semver)
Unaffected: 6.1.164 , ≤ 6.1.* (semver)
Unaffected: 6.6.123 , ≤ 6.6.* (semver)
Unaffected: 6.12.28 , ≤ 6.12.* (semver)
Unaffected: 6.14.6 , ≤ 6.14.* (semver)
Unaffected: 6.15 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2025-37920",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-10-15T21:46:06.201162Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-10-15T21:52:03.782Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "include/net/xdp_sock.h",
            "include/net/xsk_buff_pool.h",
            "net/xdp/xsk.c",
            "net/xdp/xsk_buff_pool.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "975b372313dc018b9bd6cc0d85d188787054b19e",
              "status": "affected",
              "version": "bf0bdd1343efbbf65b4d53aef1fce14acbd79d50",
              "versionType": "git"
            },
            {
              "lessThan": "b6978c565ce33658543c637060852434b4248d30",
              "status": "affected",
              "version": "bf0bdd1343efbbf65b4d53aef1fce14acbd79d50",
              "versionType": "git"
            },
            {
              "lessThan": "65d3c570614b892257dc58a1b202908242ecf8fd",
              "status": "affected",
              "version": "bf0bdd1343efbbf65b4d53aef1fce14acbd79d50",
              "versionType": "git"
            },
            {
              "lessThan": "75a240a3e8abf17b9e00b0ef0492b1bbaa932251",
              "status": "affected",
              "version": "bf0bdd1343efbbf65b4d53aef1fce14acbd79d50",
              "versionType": "git"
            },
            {
              "lessThan": "a1356ac7749cafc4e27aa62c0c4604b5dca4983e",
              "status": "affected",
              "version": "bf0bdd1343efbbf65b4d53aef1fce14acbd79d50",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "fd7c22ba7a0ad898b9ecf77dd53f5ccc48492e35",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "8a090e3b73eaffe18e08ccc3fb5abecf6b0a9781",
              "versionType": "git"
            },
            {
              "lessThan": "5.2",
              "status": "affected",
              "version": "5.1.20",
              "versionType": "semver"
            },
            {
              "lessThan": "5.3",
              "status": "affected",
              "version": "5.2.3",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "include/net/xdp_sock.h",
            "include/net/xsk_buff_pool.h",
            "net/xdp/xsk.c",
            "net/xdp/xsk_buff_pool.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.3"
            },
            {
              "lessThan": "5.3",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.164",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.123",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.28",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.14.*",
              "status": "unaffected",
              "version": "6.14.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.15",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.164",
                  "versionStartIncluding": "5.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.123",
                  "versionStartIncluding": "5.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.28",
                  "versionStartIncluding": "5.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.14.6",
                  "versionStartIncluding": "5.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.15",
                  "versionStartIncluding": "5.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.1.20",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.2.3",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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\u0027s 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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - Exploitation requires the attacker to locally establish the vulnerable configuration \u2014 create two AF_XDP sockets, register a umem, bind both with XDP_SHARED_UMEM to the same device/queue_id, and attach a generic-XDP program redirecting into an xskmap. Although the race is sprung by packet reception, a purely remote attacker cannot create that state, so the attack vector is local.\nAC:L - The attacker controls both sides of the race: it creates both sockets sharing the single xsk_buff_pool, and generic XDP runs from the per-CPU backlog in __netif_receive_skb_core(), so sending traffic over veth/lo from threads pinned to different CPUs puts multiple CPUs into xsk_generic_rcv() concurrently on rxq index 0. No condition outside the attacker\u0027s influence is required, and the free_list_cnt u32 underflow makes the corrupted state persist across packets.\nPR:L - xsk_create() only requires ns_capable(net-\u003euser_ns, CAP_NET_RAW), which an unprivileged user obtains via unshare -Urn; XDP attach needs CAP_NET_ADMIN, also user-namespace reachable. BPF program load needs CAP_BPF \u2014 an explicitly non-root delegated capability routinely granted to containers and AF_XDP dataplane workloads \u2014 so this is a low-privileged local user, not real root in the initial namespace.\nUI:N - The attacker performs the entire sequence itself \u2014 socket setup, XDP attach, and traffic generation \u2014 with no action required from any other user or administrator.\nS:U - The corrupted objects (xsk_buff_pool, its free_list/free_heads arrays, adjacent slab memory) all live within the kernel\u0027s own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The fill-ring consumer race hands the same umem address and the same pool-\u003eheads[] xdp_buff_xsk to two sockets, and the empty-free_list case manufactures an xdp_buff_xsk whose data_hard_start is read from memory preceding the pool allocation; the resulting frames are surfaced to userspace through the mmap\u0027d RX rings, leaking kernel memory. The same corruption is leverageable into a broader arbitrary-read primitive.\nI:H - The bug yields wild writes with attacker-controlled packet payload (memcpy through a data_hard_start read out of bounds), clobbers pool-\u003exsk_tx_list.next, corrupts the shared free_list via concurrent list_add(), and overflows free_heads_cnt past the flexible array at the end of the pool allocation \u2014 a heap overflow with attacker-influenced contents, sufficient for control-flow hijack.\nA:H - The multi-buffer path dereferences xsk_buff_alloc()\u0027s return without a NULL check after the racy xsk_buff_can_alloc() TOCTOU, producing a NULL-pointer write in softirq context; linked-list corruption, counter underflow, and double-ownership of buffers likewise cause oopses and panics."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:58:21.871Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/975b372313dc018b9bd6cc0d85d188787054b19e"
        },
        {
          "url": "https://git.kernel.org/stable/c/b6978c565ce33658543c637060852434b4248d30"
        },
        {
          "url": "https://git.kernel.org/stable/c/65d3c570614b892257dc58a1b202908242ecf8fd"
        },
        {
          "url": "https://git.kernel.org/stable/c/75a240a3e8abf17b9e00b0ef0492b1bbaa932251"
        },
        {
          "url": "https://git.kernel.org/stable/c/a1356ac7749cafc4e27aa62c0c4604b5dca4983e"
        }
      ],
      "title": "xsk: Fix race condition in AF_XDP generic RX path",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-37920",
    "datePublished": "2025-05-20T15:21:49.685Z",
    "dateReserved": "2025-04-16T04:51:23.968Z",
    "dateUpdated": "2026-10-15T21:52:03.782Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-37920",
      "date": "2026-11-19",
      "epss": "0.0016",
      "percentile": "0.05201"
    },
    "microsoft_vex": {
      "current_release_date": "2026-09-24T02:46:44.000Z",
      "cve": "CVE-2025-37920",
      "id": "msrc_CVE-2025-37920",
      "initial_release_date": "2025-09-03T23:01:31.000Z",
      "product_status:fixed": "1",
      "product_status:known_affected": "13",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "xsk: Fix race condition in AF_XDP generic RX path",
      "url": "https://msrc.microsoft.com/csaf/vex/2025/msrc_cve-2025-37920.json",
      "version": "12"
    },
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-11-07T13:40:08+00:00",
      "cve": "CVE-2025-37920",
      "id": "CVE-2025-37920",
      "initial_release_date": "2025-05-20T00:00:00+00:00",
      "product_status:known_affected": "158",
      "product_status:known_not_affected": "42",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: xsk: Fix race condition in AF_XDP generic RX path",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-37920.json",
      "version": "3"
    },
    "vulnrichment": {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2025-37920",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "total"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-10-15T21:46:06.201162Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-10-15T21:46:06.689Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "Linux",
              "programFiles": [
                "include/net/xdp_sock.h",
                "include/net/xsk_buff_pool.h",
                "net/xdp/xsk.c",
                "net/xdp/xsk_buff_pool.c"
              ],
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "vendor": "Linux",
              "versions": [
                {
                  "lessThan": "975b372313dc018b9bd6cc0d85d188787054b19e",
                  "status": "affected",
                  "version": "bf0bdd1343efbbf65b4d53aef1fce14acbd79d50",
                  "versionType": "git"
                },
                {
                  "lessThan": "b6978c565ce33658543c637060852434b4248d30",
                  "status": "affected",
                  "version": "bf0bdd1343efbbf65b4d53aef1fce14acbd79d50",
                  "versionType": "git"
                },
                {
                  "lessThan": "65d3c570614b892257dc58a1b202908242ecf8fd",
                  "status": "affected",
                  "version": "bf0bdd1343efbbf65b4d53aef1fce14acbd79d50",
                  "versionType": "git"
                },
                {
                  "lessThan": "75a240a3e8abf17b9e00b0ef0492b1bbaa932251",
                  "status": "affected",
                  "version": "bf0bdd1343efbbf65b4d53aef1fce14acbd79d50",
                  "versionType": "git"
                },
                {
                  "lessThan": "a1356ac7749cafc4e27aa62c0c4604b5dca4983e",
                  "status": "affected",
                  "version": "bf0bdd1343efbbf65b4d53aef1fce14acbd79d50",
                  "versionType": "git"
                },
                {
                  "status": "affected",
                  "version": "fd7c22ba7a0ad898b9ecf77dd53f5ccc48492e35",
                  "versionType": "git"
                },
                {
                  "status": "affected",
                  "version": "8a090e3b73eaffe18e08ccc3fb5abecf6b0a9781",
                  "versionType": "git"
                },
                {
                  "lessThan": "5.2",
                  "status": "affected",
                  "version": "5.1.20",
                  "versionType": "semver"
                },
                {
                  "lessThan": "5.3",
                  "status": "affected",
                  "version": "5.2.3",
                  "versionType": "semver"
                }
              ]
            },
            {
              "defaultStatus": "affected",
              "product": "Linux",
              "programFiles": [
                "include/net/xdp_sock.h",
                "include/net/xsk_buff_pool.h",
                "net/xdp/xsk.c",
                "net/xdp/xsk_buff_pool.c"
              ],
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "vendor": "Linux",
              "versions": [
                {
                  "status": "affected",
                  "version": "5.3"
                },
                {
                  "lessThan": "5.3",
                  "status": "unaffected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "6.1.*",
                  "status": "unaffected",
                  "version": "6.1.164",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "6.6.*",
                  "status": "unaffected",
                  "version": "6.6.123",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "6.12.*",
                  "status": "unaffected",
                  "version": "6.12.28",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "6.14.*",
                  "status": "unaffected",
                  "version": "6.14.6",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "*",
                  "status": "unaffected",
                  "version": "6.15",
                  "versionType": "original_commit_for_fix"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.1.164",
                      "versionStartIncluding": "5.3",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.6.123",
                      "versionStartIncluding": "5.3",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.12.28",
                      "versionStartIncluding": "5.3",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.14.6",
                      "versionStartIncluding": "5.3",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "6.15",
                      "versionStartIncluding": "5.3",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionStartIncluding": "5.1.20",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionStartIncluding": "5.2.3",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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\u0027s 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."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "scenarios": [
                {
                  "lang": "en",
                  "value": "AV:L - Exploitation requires the attacker to locally establish the vulnerable configuration \u2014 create two AF_XDP sockets, register a umem, bind both with XDP_SHARED_UMEM to the same device/queue_id, and attach a generic-XDP program redirecting into an xskmap. Although the race is sprung by packet reception, a purely remote attacker cannot create that state, so the attack vector is local.\nAC:L - The attacker controls both sides of the race: it creates both sockets sharing the single xsk_buff_pool, and generic XDP runs from the per-CPU backlog in __netif_receive_skb_core(), so sending traffic over veth/lo from threads pinned to different CPUs puts multiple CPUs into xsk_generic_rcv() concurrently on rxq index 0. No condition outside the attacker\u0027s influence is required, and the free_list_cnt u32 underflow makes the corrupted state persist across packets.\nPR:L - xsk_create() only requires ns_capable(net-\u003euser_ns, CAP_NET_RAW), which an unprivileged user obtains via unshare -Urn; XDP attach needs CAP_NET_ADMIN, also user-namespace reachable. BPF program load needs CAP_BPF \u2014 an explicitly non-root delegated capability routinely granted to containers and AF_XDP dataplane workloads \u2014 so this is a low-privileged local user, not real root in the initial namespace.\nUI:N - The attacker performs the entire sequence itself \u2014 socket setup, XDP attach, and traffic generation \u2014 with no action required from any other user or administrator.\nS:U - The corrupted objects (xsk_buff_pool, its free_list/free_heads arrays, adjacent slab memory) all live within the kernel\u0027s own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The fill-ring consumer race hands the same umem address and the same pool-\u003eheads[] xdp_buff_xsk to two sockets, and the empty-free_list case manufactures an xdp_buff_xsk whose data_hard_start is read from memory preceding the pool allocation; the resulting frames are surfaced to userspace through the mmap\u0027d RX rings, leaking kernel memory. The same corruption is leverageable into a broader arbitrary-read primitive.\nI:H - The bug yields wild writes with attacker-controlled packet payload (memcpy through a data_hard_start read out of bounds), clobbers pool-\u003exsk_tx_list.next, corrupts the shared free_list via concurrent list_add(), and overflows free_heads_cnt past the flexible array at the end of the pool allocation \u2014 a heap overflow with attacker-influenced contents, sufficient for control-flow hijack.\nA:H - The multi-buffer path dereferences xsk_buff_alloc()\u0027s return without a NULL check after the racy xsk_buff_can_alloc() TOCTOU, producing a NULL-pointer write in softirq context; linked-list corruption, counter underflow, and double-ownership of buffers likewise cause oopses and panics."
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-08-05T11:58:21.871Z",
            "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "shortName": "Linux"
          },
          "references": [
            {
              "url": "https://git.kernel.org/stable/c/975b372313dc018b9bd6cc0d85d188787054b19e"
            },
            {
              "url": "https://git.kernel.org/stable/c/b6978c565ce33658543c637060852434b4248d30"
            },
            {
              "url": "https://git.kernel.org/stable/c/65d3c570614b892257dc58a1b202908242ecf8fd"
            },
            {
              "url": "https://git.kernel.org/stable/c/75a240a3e8abf17b9e00b0ef0492b1bbaa932251"
            },
            {
              "url": "https://git.kernel.org/stable/c/a1356ac7749cafc4e27aa62c0c4604b5dca4983e"
            }
          ],
          "title": "xsk: Fix race condition in AF_XDP generic RX path",
          "x_generator": {
            "engine": "bippy-1.2.0"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "assignerShortName": "Linux",
        "cveId": "CVE-2025-37920",
        "datePublished": "2025-05-20T15:21:49.685Z",
        "dateReserved": "2025-04-16T04:51:23.968Z",
        "dateUpdated": "2026-10-15T21:52:03.782Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.