Skip to content
Heist/ feed
Back to feed
UnratedFix available

vhost: vringh: Fix copy_to_iter return value check

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: vhost: vringh: Fix copy_to_iter return value check The return value of copy_to_iter can't be negative, check whether the copied length is equal to the requested length instead of checking for negative values.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.156, 6.12.53, 6.17.3, 6.6.112
CVEs
CVE-2025-40056
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 08:27 UTC · Revision 1

Source evidence

vhost: vringh: Fix copy_to_iter return value check

core-osv · Original source

Published 28 Oct 2025, 11:48 UTC

In the Linux kernel, the following vulnerability has been resolved: vhost: vringh: Fix copy_to_iter return value check The return value of copy_to_iter can't be negative, check whether the copied length is equal to the requested length instead of checking for negative values.

osv:CVE-2025-40056

Kernel

Fixed versions: 6.1.156, 6.6.112, 6.12.53, 6.17.3

Complete source record
{
  "id": "8f3e66ec6f2017ca63e1553ae425d2bf09138dada233cd3a4e5eff969991ed4e",
  "url": "https://osv.dev/vulnerability/CVE-2025-40056",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "vhost: vringh: Fix copy_to_iter return value check",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: vhost: vringh: Fix copy_to_iter return value check The return value of copy_to_iter can't be negative, check whether the copied length is equal to the requested length instead of checking for negative values.",
    "evidence": "osv:CVE-2025-40056",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.156",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.112",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.53",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.17.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-40056",
      "aliases": [
        "CVE-2025-40056"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "309bba39c945ac8ab8083ac05cd6cfe5822968e0"
                },
                {
                  "fixed": "bd71e7e0a612740e4de5524880c7cd40293af5f7"
                },
                {
                  "fixed": "781226e11d5bdea0d69c7b5aa3cda874093c73b8"
                },
                {
                  "fixed": "b3a950d236e98440c07405ba597b11bce56a8050"
                },
                {
                  "fixed": "68aac2b335d474b938d154b9c95cbc58838cb2ce"
                },
                {
                  "fixed": "439263376c2c4e126cac0d07e4987568de4eaba5"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40056.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "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"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40056.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:33.806333683Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/439263376c2c4e126cac0d07e4987568de4eaba5",
        "https://git.kernel.org/stable/c/68aac2b335d474b938d154b9c95cbc58838cb2ce",
        "https://git.kernel.org/stable/c/781226e11d5bdea0d69c7b5aa3cda874093c73b8",
        "https://git.kernel.org/stable/c/b3a950d236e98440c07405ba597b11bce56a8050",
        "https://git.kernel.org/stable/c/bd71e7e0a612740e4de5524880c7cd40293af5f7",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40056.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-40056",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40056.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-40056",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 501124,
  "published_at": "2025-10-28T11:48:30.249+00:00"
}