Skip to content
Heist/ feed
Back to feed
HighFix available

io_uring: fix regbuf vector size truncation

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: io_uring: fix regbuf vector size truncation There is a report of io_estimate_bvec_size() truncating the calculated number of segments that leads to corruption issues. Check it doesn't overflow "int"s used later. Rough but simple, can be improved on top.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.17.8
CVEs
CVE-2025-40291
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 06:48 UTC · Revision 1

Source evidence

io_uring: fix regbuf vector size truncation

core-osv · Original source

Published 8 Dec 2025, 00:46 UTC

In the Linux kernel, the following vulnerability has been resolved: io_uring: fix regbuf vector size truncation There is a report of io_estimate_bvec_size() truncating the calculated number of segments that leads to corruption issues. Check it doesn't overflow "int"s used later. Rough but simple, can be improved on top.

osv:CVE-2025-40291

Kernel

Fixed versions: 6.17.8

Complete source record
{
  "id": "8ca421ee2931f47a125b38d8c693373d3928154fea237873badf013734bb8307",
  "url": "https://osv.dev/vulnerability/CVE-2025-40291",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "io_uring: fix regbuf vector size truncation",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: io_uring: fix regbuf vector size truncation There is a report of io_estimate_bvec_size() truncating the calculated number of segments that leads to corruption issues. Check it doesn't overflow \"int\"s used later. Rough but simple, can be improved on top.",
    "evidence": "osv:CVE-2025-40291",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.17.8",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-40291",
      "aliases": [
        "CVE-2025-40291"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9ef4cbbcb4ac3786a1a4164507511b76b2a572c5"
                },
                {
                  "fixed": "826ce37a842633efe1bb763e4b13045d74060d72"
                },
                {
                  "fixed": "146eb58629f45f8297e83d69e64d4eea4b28d972"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40291.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.15.0"
                },
                {
                  "fixed": "6.17.8"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40291.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:26.866558120Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/146eb58629f45f8297e83d69e64d4eea4b28d972",
        "https://git.kernel.org/stable/c/826ce37a842633efe1bb763e4b13045d74060d72",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40291.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-40291",
        "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-40291.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-40291",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 493134,
  "published_at": "2025-12-08T00:46:14.601+00:00"
}