{
  "id": "CVE-2025-40051",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40051",
  "published_at": "2025-10-28T11:48:27.279Z",
  "title": "vhost: vringh: Modify the return value check",
  "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\nvhost: vringh: Modify the return value check\n\nThe return value of copy_from_iter and copy_to_iter can't be negative,\ncheck whether the copied lengths are equal.",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 309bba39c945ac8ab8083ac05cd6cfe5822968e0, \u003c db042925a5ab7a550b710addeadbf6f72e3a8a4b",
          "\u003e= 309bba39c945ac8ab8083ac05cd6cfe5822968e0, \u003c 78dc7362662fedaa1928fb8e4f27401c8322905d",
          "\u003e= 309bba39c945ac8ab8083ac05cd6cfe5822968e0, \u003c baa37b1c7e29546f79c39bef0d18c4edc9f39bb1",
          "\u003e= 309bba39c945ac8ab8083ac05cd6cfe5822968e0, \u003c cfa0654402c06d086201a9ff167eb95da5844fc3",
          "\u003e= 309bba39c945ac8ab8083ac05cd6cfe5822968e0, \u003c 82a8d0fda55b35361ee7f35b54fa2b66d7847d2b"
        ],
        "fixed_in": [
          "db042925a5ab7a550b710addeadbf6f72e3a8a4b",
          "78dc7362662fedaa1928fb8e4f27401c8322905d",
          "baa37b1c7e29546f79c39bef0d18c4edc9f39bb1",
          "cfa0654402c06d086201a9ff167eb95da5844fc3",
          "82a8d0fda55b35361ee7f35b54fa2b66d7847d2b"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.0"
        ],
        "fixed_in": [
          "0",
          "6.1.156",
          "6.6.112",
          "6.12.53",
          "6.17.3",
          "6.18"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to db042925a5ab7a550b710addeadbf6f72e3a8a4b or 78dc7362662fedaa1928fb8e4f27401c8322905d or baa37b1c7e29546f79c39bef0d18c4edc9f39bb1 or cfa0654402c06d086201a9ff167eb95da5844fc3 or 82a8d0fda55b35361ee7f35b54fa2b66d7847d2b or later.",
      "Upgrade Linux to 0 or 6.1.156 or 6.6.112 or 6.12.53 or 6.17.3 or 6.18 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
