{
  "id": "CVE-2025-40292",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40292",
  "published_at": "2025-12-08T00:46:15.761Z",
  "title": "virtio-net: fix received length check in big packets",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 8.4,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/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\nvirtio-net: fix received length check in big packets\n\nSince commit 4959aebba8c0 (\"virtio-net: use mtu size as buffer length\nfor big packets\"), when guest gso is off, the allocated size for big\npackets is not MAX_SKB_FRAGS * PAGE_SIZE anymore but depends on\nnegotiated MTU. The number of allocated frags for big packets is stored\nin vi-\u003ebig_packets_num_skbfrags.\n\nBecause the host announced buffer length can be malicious (e.g. the host\nvhost_net driver's get_rx_bufs is modified to announce incorrect\nlength), we need a check in virtio_net receive path. Currently, the\ncheck is not adapted to the new change which can lead to NULL page\npointer dereference in the below while loop when receiving length that\nis larger than the allocated one.\n\nThis commit fixes the received length check corresponding to the new\nchange.",
  "cvss_by_source": {
    "cna": 8.4
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 4959aebba8c06992abafa09d1e80965e0825af54, \u003c 82f9028e83944a9eee5229cbc6fee9be1de8a62d",
          "\u003e= 4959aebba8c06992abafa09d1e80965e0825af54, \u003c 946dec89c41726b94d31147ec528b96af0be1b5a",
          "\u003e= 4959aebba8c06992abafa09d1e80965e0825af54, \u003c 82fe78065450d2d07f36a22e2b6b44955cf5ca5b",
          "\u003e= 4959aebba8c06992abafa09d1e80965e0825af54, \u003c 3e9d89f2ecd3636bd4cbdfd0b2dfdaf58f9882e2",
          "\u003e= 4959aebba8c06992abafa09d1e80965e0825af54, \u003c 0c716703965ffc5ef4311b65cb5d84a703784717"
        ],
        "fixed_in": [
          "82f9028e83944a9eee5229cbc6fee9be1de8a62d",
          "946dec89c41726b94d31147ec528b96af0be1b5a",
          "82fe78065450d2d07f36a22e2b6b44955cf5ca5b",
          "3e9d89f2ecd3636bd4cbdfd0b2dfdaf58f9882e2",
          "0c716703965ffc5ef4311b65cb5d84a703784717"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.1"
        ],
        "fixed_in": [
          "0",
          "6.1.159",
          "6.6.117",
          "6.12.58",
          "6.17.8",
          "6.18"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 82f9028e83944a9eee5229cbc6fee9be1de8a62d or 946dec89c41726b94d31147ec528b96af0be1b5a or 82fe78065450d2d07f36a22e2b6b44955cf5ca5b or 3e9d89f2ecd3636bd4cbdfd0b2dfdaf58f9882e2 or 0c716703965ffc5ef4311b65cb5d84a703784717 or later.",
      "Upgrade Linux to 0 or 6.1.159 or 6.6.117 or 6.12.58 or 6.17.8 or 6.18 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
