CVE-2025-39718 (GCVE-0-2025-39718)
Vulnerability from cvelistv5
Published
2025-09-05 17:21
Modified
2026-10-15 22:02
Summary
In the Linux kernel, the following vulnerability has been resolved: vsock/virtio: Validate length in packet header before skb_put() When receiving a vsock packet in the guest, only the virtqueue buffer size is validated prior to virtio_vsock_skb_rx_put(). Unfortunately, virtio_vsock_skb_rx_put() uses the length from the packet header as the length argument to skb_put(), potentially resulting in SKB overflow if the host has gone wonky. Validate the length as advertised by the packet header before calling virtio_vsock_skb_rx_put().
Impacted products
Vendor Product Version
Linux Linux Version: baddcc2c71572968cdaeee1c4ab3dc0ad90fa765
Version: 71dc9ec9ac7d3eee785cdc986c3daeb821381e20
Version: 71dc9ec9ac7d3eee785cdc986c3daeb821381e20
Version: 71dc9ec9ac7d3eee785cdc986c3daeb821381e20
Version: 71dc9ec9ac7d3eee785cdc986c3daeb821381e20
Version: 6.1.63   ≤
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2025-11-03T17:42:44.024Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "affected": [
          {
            "defaultStatus": "unknown",
            "product": "SIMATIC CN 4100",
            "vendor": "Siemens",
            "versions": [
              {
                "lessThan": "V5.0",
                "status": "affected",
                "version": "0",
                "versionType": "custom"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-05-12T12:06:34.737Z",
          "orgId": "0b142b55-0307-4c5a-b3c9-f314f3fb7c5e",
          "shortName": "siemens-SADP"
        },
        "references": [
          {
            "url": "https://cert-portal.siemens.com/productcert/html/ssa-032379.html"
          }
        ],
        "x_adpType": "supplier"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2025-39718",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-10-15T21:53:42.566432Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-10-15T22:02:30.928Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/vmw_vsock/virtio_transport.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "969b06bd8b7560efb100a34227619e7d318fbe05",
              "status": "affected",
              "version": "baddcc2c71572968cdaeee1c4ab3dc0ad90fa765",
              "versionType": "git"
            },
            {
              "lessThan": "ee438c492b2e0705d819ac0e25d04fae758d8f8f",
              "status": "affected",
              "version": "71dc9ec9ac7d3eee785cdc986c3daeb821381e20",
              "versionType": "git"
            },
            {
              "lessThan": "faf332a10372390ce65d0b803888f4b25a388335",
              "status": "affected",
              "version": "71dc9ec9ac7d3eee785cdc986c3daeb821381e20",
              "versionType": "git"
            },
            {
              "lessThan": "676f03760ca1d69c2470cef36c44dc152494b47c",
              "status": "affected",
              "version": "71dc9ec9ac7d3eee785cdc986c3daeb821381e20",
              "versionType": "git"
            },
            {
              "lessThan": "0dab92484474587b82e8e0455839eaf5ac7bf894",
              "status": "affected",
              "version": "71dc9ec9ac7d3eee785cdc986c3daeb821381e20",
              "versionType": "git"
            },
            {
              "lessThan": "6.1.149",
              "status": "affected",
              "version": "6.1.63",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/vmw_vsock/virtio_transport.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.3"
            },
            {
              "lessThan": "6.3",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.149",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.103",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.44",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.16.*",
              "status": "unaffected",
              "version": "6.16.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.17",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.149",
                  "versionStartIncluding": "6.1.63",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.103",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.44",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.16.4",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.17",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nvsock/virtio: Validate length in packet header before skb_put()\n\nWhen receiving a vsock packet in the guest, only the virtqueue buffer\nsize is validated prior to virtio_vsock_skb_rx_put(). Unfortunately,\nvirtio_vsock_skb_rx_put() uses the length from the packet header as the\nlength argument to skb_put(), potentially resulting in SKB overflow if\nthe host has gone wonky.\n\nValidate the length as advertised by the packet header before calling\nvirtio_vsock_skb_rx_put()."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 8.4,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The attack surface is the virtio-vsock RX virtqueue, which is host/hypervisor-local to the guest rather than network-reachable; vsock carries no routed network traffic. This matches the kernel CNA convention of AV:L for malicious-virtio-backend attacks on guest drivers.\nAC:L - The backend simply writes an arbitrary 32-bit value into the packet header\u0027s len field; no race, no memory-layout dependency, and the wraparound window that defeats skb_over_panic() is a fixed, deterministic 44-value range. Every trigger condition is fully under the attacker\u0027s control.\nPR:N - No privileges exist in the vulnerable component \u2014 the guest kernel \u2014 for the attacker to hold; virtio_transport_rx_work() consumes the buffer from a workqueue as soon as the device completes it, with no guest socket, user, or capability involved. Userspace VMMs (Firecracker, crosvm, vhost-user-vsock) are deliberately deprivileged, and under SEV-SNP/TDX/CCA the host is untrusted by design.\nUI:N - The RX work item processes the malicious buffer automatically on device completion, and the vsockmon tap path runs before any socket lookup. No guest user opens a socket, reads data, or performs any action.\nS:U - The vulnerable component and every impacted resource are the guest kernel and its own userspace, which share one security authority. Consistent with the S:U precedent for device\u2192guest virtio driver bugs (CVE-2026-46123, CVE-2026-64456, CVE-2026-64490); S:C in this subsystem has been reserved for guest\u2192host direction.\nC:H - A header len exceeding the bytes the device actually wrote makes skb_put() expose uninitialized kmalloc-8k slab contents, which recvmsg() copies straight to guest userspace, and the u32-wrap case leaves skb-\u003elen at ~4 GiB so skb_copy_datagram_iter() reads essentially unbounded guest kernel memory. Repeatable per packet with heap grooming, this is an arbitrary kernel-memory read.\nI:H - The wraparound bypasses skb_over_panic() and leaves a corrupted skb whose len/tail are desynchronized from the allocation; virtio_transport_build_skb() then truncates the size_t allocation size to 75 bytes and performs skb_put_data() of 0xFFFFFFFF, an unbounded out-of-bounds memcpy write out of a small slab object. Combined with the read primitive this is a heap-corruption primitive suitable for control-flow hijack in the guest.\nA:H - Any header len outside the narrow wrap window drives skb-\u003etail past skb-\u003eend, hitting skb_over_panic() \u2192 BUG() in the virtio_vsock workqueue, and the wrap path instead faults on a multi-gigabyte copy. Either way the guest kernel oopses or panics, triggerable at will and repeatedly."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T12:04:50.190Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/969b06bd8b7560efb100a34227619e7d318fbe05"
        },
        {
          "url": "https://git.kernel.org/stable/c/ee438c492b2e0705d819ac0e25d04fae758d8f8f"
        },
        {
          "url": "https://git.kernel.org/stable/c/faf332a10372390ce65d0b803888f4b25a388335"
        },
        {
          "url": "https://git.kernel.org/stable/c/676f03760ca1d69c2470cef36c44dc152494b47c"
        },
        {
          "url": "https://git.kernel.org/stable/c/0dab92484474587b82e8e0455839eaf5ac7bf894"
        }
      ],
      "title": "vsock/virtio: Validate length in packet header before skb_put()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-39718",
    "datePublished": "2025-09-05T17:21:25.959Z",
    "dateReserved": "2025-04-16T07:20:57.117Z",
    "dateUpdated": "2026-10-15T22:02:30.928Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html\"}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2025-11-03T17:42:44.024Z\"}}, {\"affected\": [{\"vendor\": \"Siemens\", \"product\": \"SIMATIC CN 4100\", \"versions\": [{\"status\": \"affected\", \"version\": \"0\", \"lessThan\": \"V5.0\", \"versionType\": \"custom\"}], \"defaultStatus\": \"unknown\"}], \"x_adpType\": \"supplier\", \"references\": [{\"url\": \"https://cert-portal.siemens.com/productcert/html/ssa-032379.html\"}], \"providerMetadata\": {\"orgId\": \"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e\", \"shortName\": \"siemens-SADP\", \"dateUpdated\": \"2026-05-12T12:06:34.737Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2025-39718\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-10-15T21:53:42.566432Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-10-15T21:53:43.451Z\"}}], \"cna\": {\"title\": \"vsock/virtio: Validate length in packet header before skb_put()\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 8.4, \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"AV:L - The attack surface is the virtio-vsock RX virtqueue, which is host/hypervisor-local to the guest rather than network-reachable; vsock carries no routed network traffic. This matches the kernel CNA convention of AV:L for malicious-virtio-backend attacks on guest drivers.\\nAC:L - The backend simply writes an arbitrary 32-bit value into the packet header\u0027s len field; no race, no memory-layout dependency, and the wraparound window that defeats skb_over_panic() is a fixed, deterministic 44-value range. Every trigger condition is fully under the attacker\u0027s control.\\nPR:N - No privileges exist in the vulnerable component \\u2014 the guest kernel \\u2014 for the attacker to hold; virtio_transport_rx_work() consumes the buffer from a workqueue as soon as the device completes it, with no guest socket, user, or capability involved. Userspace VMMs (Firecracker, crosvm, vhost-user-vsock) are deliberately deprivileged, and under SEV-SNP/TDX/CCA the host is untrusted by design.\\nUI:N - The RX work item processes the malicious buffer automatically on device completion, and the vsockmon tap path runs before any socket lookup. No guest user opens a socket, reads data, or performs any action.\\nS:U - The vulnerable component and every impacted resource are the guest kernel and its own userspace, which share one security authority. Consistent with the S:U precedent for device\\u2192guest virtio driver bugs (CVE-2026-46123, CVE-2026-64456, CVE-2026-64490); S:C in this subsystem has been reserved for guest\\u2192host direction.\\nC:H - A header len exceeding the bytes the device actually wrote makes skb_put() expose uninitialized kmalloc-8k slab contents, which recvmsg() copies straight to guest userspace, and the u32-wrap case leaves skb-\u003elen at ~4 GiB so skb_copy_datagram_iter() reads essentially unbounded guest kernel memory. Repeatable per packet with heap grooming, this is an arbitrary kernel-memory read.\\nI:H - The wraparound bypasses skb_over_panic() and leaves a corrupted skb whose len/tail are desynchronized from the allocation; virtio_transport_build_skb() then truncates the size_t allocation size to 75 bytes and performs skb_put_data() of 0xFFFFFFFF, an unbounded out-of-bounds memcpy write out of a small slab object. Combined with the read primitive this is a heap-corruption primitive suitable for control-flow hijack in the guest.\\nA:H - Any header len outside the narrow wrap window drives skb-\u003etail past skb-\u003eend, hitting skb_over_panic() \\u2192 BUG() in the virtio_vsock workqueue, and the wrap path instead faults on a multi-gigabyte copy. Either way the guest kernel oopses or panics, triggerable at will and repeatedly.\"}]}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"baddcc2c71572968cdaeee1c4ab3dc0ad90fa765\", \"lessThan\": \"969b06bd8b7560efb100a34227619e7d318fbe05\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"71dc9ec9ac7d3eee785cdc986c3daeb821381e20\", \"lessThan\": \"ee438c492b2e0705d819ac0e25d04fae758d8f8f\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"71dc9ec9ac7d3eee785cdc986c3daeb821381e20\", \"lessThan\": \"faf332a10372390ce65d0b803888f4b25a388335\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"71dc9ec9ac7d3eee785cdc986c3daeb821381e20\", \"lessThan\": \"676f03760ca1d69c2470cef36c44dc152494b47c\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"71dc9ec9ac7d3eee785cdc986c3daeb821381e20\", \"lessThan\": \"0dab92484474587b82e8e0455839eaf5ac7bf894\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"6.1.63\", \"lessThan\": \"6.1.149\", \"versionType\": \"semver\"}], \"programFiles\": [\"net/vmw_vsock/virtio_transport.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.3\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.3\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.1.149\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.103\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12.44\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.12.*\"}, {\"status\": \"unaffected\", \"version\": \"6.16.4\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.16.*\"}, {\"status\": \"unaffected\", \"version\": \"6.17\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"net/vmw_vsock/virtio_transport.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/969b06bd8b7560efb100a34227619e7d318fbe05\"}, {\"url\": \"https://git.kernel.org/stable/c/ee438c492b2e0705d819ac0e25d04fae758d8f8f\"}, {\"url\": \"https://git.kernel.org/stable/c/faf332a10372390ce65d0b803888f4b25a388335\"}, {\"url\": \"https://git.kernel.org/stable/c/676f03760ca1d69c2470cef36c44dc152494b47c\"}, {\"url\": \"https://git.kernel.org/stable/c/0dab92484474587b82e8e0455839eaf5ac7bf894\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nvsock/virtio: Validate length in packet header before skb_put()\\n\\nWhen receiving a vsock packet in the guest, only the virtqueue buffer\\nsize is validated prior to virtio_vsock_skb_rx_put(). Unfortunately,\\nvirtio_vsock_skb_rx_put() uses the length from the packet header as the\\nlength argument to skb_put(), potentially resulting in SKB overflow if\\nthe host has gone wonky.\\n\\nValidate the length as advertised by the packet header before calling\\nvirtio_vsock_skb_rx_put().\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1.149\", \"versionStartIncluding\": \"6.1.63\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.103\", \"versionStartIncluding\": \"6.3\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.12.44\", \"versionStartIncluding\": \"6.3\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.16.4\", \"versionStartIncluding\": \"6.3\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.17\", \"versionStartIncluding\": \"6.3\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-05T12:04:50.190Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2025-39718\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-10-15T22:02:30.928Z\", \"dateReserved\": \"2025-04-16T07:20:57.117Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2025-09-05T17:21:25.959Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…