{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "309bba39c945ac8ab8083ac05cd6cfe5822968e0"
            },
            {
              "fixed": "db042925a5ab7a550b710addeadbf6f72e3a8a4b"
            },
            {
              "fixed": "78dc7362662fedaa1928fb8e4f27401c8322905d"
            },
            {
              "fixed": "baa37b1c7e29546f79c39bef0d18c4edc9f39bb1"
            },
            {
              "fixed": "cfa0654402c06d086201a9ff167eb95da5844fc3"
            },
            {
              "fixed": "82a8d0fda55b35361ee7f35b54fa2b66d7847d2b"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.0.0"
            },
            {
              "fixed": "6.1.156"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.112"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.53"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.17.3"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40051.json"
  },
  "details": "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.",
  "id": "CVE-2025-40051",
  "modified": "2026-04-01T23:08:37.725261711Z",
  "published": "2025-10-28T11:48:27.279Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/78dc7362662fedaa1928fb8e4f27401c8322905d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/82a8d0fda55b35361ee7f35b54fa2b66d7847d2b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/baa37b1c7e29546f79c39bef0d18c4edc9f39bb1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cfa0654402c06d086201a9ff167eb95da5844fc3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/db042925a5ab7a550b710addeadbf6f72e3a8a4b"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40051.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-40051"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.3",
  "summary": "vhost: vringh: Modify the return value check"
}