{
  "id": "CVE-2025-39793",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39793",
  "published_at": "2025-09-12T15:59:30.388Z",
  "title": "io_uring/memmap: cast nr_pages to size_t before shifting",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/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\nio_uring/memmap: cast nr_pages to size_t before shifting\n\nIf the allocated size exceeds UINT_MAX, then it's necessary to cast\nthe mr-\u003enr_pages value to size_t to prevent it from overflowing. In\npractice this isn't much of a concern as the required memory size will\nhave been validated upfront, and accounted to the user. And \u003e 4GB sizes\nwill be necessary to make the lack of a cast a problem, which greatly\nexceeds normal user locked_vm settings that are generally in the kb to\nmb range. However, if root is used, then accounting isn't done, and\nthen it's possible to hit this issue.",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 087f997870a948820ec366701d178f402c6a23a3, \u003c c6a2706e08b8a1b2d3740161c0977d38e596c1ee",
          "\u003e= 087f997870a948820ec366701d178f402c6a23a3, \u003c a69a9b53c54e2d33e2a5b1ea4a9a71fd01c6cf3a",
          "\u003e= 087f997870a948820ec366701d178f402c6a23a3, \u003c 33503c083fda048c77903460ac0429e1e2c0e341"
        ],
        "fixed_in": [
          "c6a2706e08b8a1b2d3740161c0977d38e596c1ee",
          "a69a9b53c54e2d33e2a5b1ea4a9a71fd01c6cf3a",
          "33503c083fda048c77903460ac0429e1e2c0e341"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.14"
        ],
        "fixed_in": [
          "0",
          "6.15.11",
          "6.16.2",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to c6a2706e08b8a1b2d3740161c0977d38e596c1ee or a69a9b53c54e2d33e2a5b1ea4a9a71fd01c6cf3a or 33503c083fda048c77903460ac0429e1e2c0e341 or later.",
      "Upgrade Linux to 0 or 6.15.11 or 6.16.2 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
