{
  "id": "CVE-2026-46289",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-46289",
  "published_at": "2026-06-08T15:46:15.888Z",
  "title": "lib/scatterlist: fix length calculations in extract_kvec_to_sg",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/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\nlib/scatterlist: fix length calculations in extract_kvec_to_sg\n\nPatch series \"Fix bugs in extract_iter_to_sg()\", v3.\n\nFix bugs in the kvec and user variants of extract_iter_to_sg.  This series\nis growing due to useful remarks made by sashiko.dev.\n\nThe main bugs are:\n- The length for an sglist entry when extracting from\n  a kvec can exceed the number of bytes in the page. This\n  is obviously not intended.\n- When extracting a user buffer the sglist is temporarily\n  used as a scratch buffer for extracted page pointers.\n  If the sglist already contains some elements this scratch\n  buffer could overlap with existing entries in the sglist.\n\nThe series adds test cases to the kunit_iov_iter test that demonstrate all\nof these bugs.  Additionally, there is a memory leak fix for the test\nitself.\n\nThe bugs were orignally introduced into kernel v6.3 where the function\nlived in fs/netfs/iterator.c.  It was later moved to lib/scatterlist.c in\nv6.5.  Thus the actual fix is only marked for backports to v6.5+.\n\n\nThis patch (of 5):\n\nWhen extracting from a kvec to a scatterlist, do not cross page\nboundaries.  The required length was already calculated but not used as\nintended.\n\nAdjust the copied length if the loop runs out of sglist entries without\nextracting everything.\n\nWhile there, return immediately from extract_iter_to_sg if there are no\nsglist entries at all.\n\nA subsequent commit will add kunit test cases that demonstrate that the\npatch is necessary.",
  "cwe": "CWE-401",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 0185846975339a5c348373aa450a977f5242366b, \u003c 3f17500e86d730c76db638bb3ae52f9b5e496c76",
          "\u003e= 0185846975339a5c348373aa450a977f5242366b, \u003c e5e22fc9963469e678c4f4bb38d26adcec107f1e",
          "\u003e= 0185846975339a5c348373aa450a977f5242366b, \u003c 8fbba6829057979149d1b37d65690c037f3ddf4d",
          "\u003e= 0185846975339a5c348373aa450a977f5242366b, \u003c 9d38756d0a93b66163554219fa9c3365f40c4035",
          "\u003e= 0185846975339a5c348373aa450a977f5242366b, \u003c 07b7d66e65d9cfe6b9c2c34aa22cfcaac37a5c45"
        ],
        "fixed_in": [
          "3f17500e86d730c76db638bb3ae52f9b5e496c76",
          "e5e22fc9963469e678c4f4bb38d26adcec107f1e",
          "8fbba6829057979149d1b37d65690c037f3ddf4d",
          "9d38756d0a93b66163554219fa9c3365f40c4035",
          "07b7d66e65d9cfe6b9c2c34aa22cfcaac37a5c45"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.3"
        ],
        "fixed_in": [
          "0",
          "6.6.140",
          "6.12.88",
          "6.18.30",
          "7.0.7",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 3f17500e86d730c76db638bb3ae52f9b5e496c76 or e5e22fc9963469e678c4f4bb38d26adcec107f1e or 8fbba6829057979149d1b37d65690c037f3ddf4d or 9d38756d0a93b66163554219fa9c3365f40c4035 or 07b7d66e65d9cfe6b9c2c34aa22cfcaac37a5c45 or later.",
      "Upgrade Linux to 0 or 6.6.140 or 6.12.88 or 6.18.30 or 7.0.7 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
