CVE-2025-21836 (GCVE-0-2025-21836)

Vulnerability from cvelistv5 – Published: 2025-03-07 09:09 – Updated: 2026-08-05 11:54
VLAI
Title
io_uring/kbuf: reallocate buf lists on upgrade
Summary
In the Linux kernel, the following vulnerability has been resolved: io_uring/kbuf: reallocate buf lists on upgrade IORING_REGISTER_PBUF_RING can reuse an old struct io_buffer_list if it was created for legacy selected buffer and has been emptied. It violates the requirement that most of the field should stay stable after publish. Always reallocate it instead.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 2fcabce2d7d34f69a888146dab15b36a917f09d4 , < 146a185f6c05ee263db715f860620606303c4633 (git)
Affected: 2fcabce2d7d34f69a888146dab15b36a917f09d4 , < 7d0dc28dae836caf7645fef62a10befc624dd17b (git)
Affected: 2fcabce2d7d34f69a888146dab15b36a917f09d4 , < 2a5febbef40ce968e295a7aeaa5d5cbd9e3e5ad4 (git)
Affected: 2fcabce2d7d34f69a888146dab15b36a917f09d4 , < 8802766324e1f5d414a81ac43365c20142e85603 (git)
Create a notification for this product.
Linux Linux Affected: 5.19
Unaffected: 0 , < 5.19 (semver)
Unaffected: 6.6.79 , ≤ 6.6.* (semver)
Unaffected: 6.12.16 , ≤ 6.12.* (semver)
Unaffected: 6.13.4 , ≤ 6.13.* (semver)
Unaffected: 6.14 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "io_uring/kbuf.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "146a185f6c05ee263db715f860620606303c4633",
              "status": "affected",
              "version": "2fcabce2d7d34f69a888146dab15b36a917f09d4",
              "versionType": "git"
            },
            {
              "lessThan": "7d0dc28dae836caf7645fef62a10befc624dd17b",
              "status": "affected",
              "version": "2fcabce2d7d34f69a888146dab15b36a917f09d4",
              "versionType": "git"
            },
            {
              "lessThan": "2a5febbef40ce968e295a7aeaa5d5cbd9e3e5ad4",
              "status": "affected",
              "version": "2fcabce2d7d34f69a888146dab15b36a917f09d4",
              "versionType": "git"
            },
            {
              "lessThan": "8802766324e1f5d414a81ac43365c20142e85603",
              "status": "affected",
              "version": "2fcabce2d7d34f69a888146dab15b36a917f09d4",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "io_uring/kbuf.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.19"
            },
            {
              "lessThan": "5.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.79",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.13.*",
              "status": "unaffected",
              "version": "6.13.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.14",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.79",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.16",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.13.4",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.14",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/kbuf: reallocate buf lists on upgrade\n\nIORING_REGISTER_PBUF_RING can reuse an old struct io_buffer_list if it\nwas created for legacy selected buffer and has been emptied. It violates\nthe requirement that most of the field should stay stable after publish.\nAlways reallocate it instead."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The vulnerable code is reached only through the io_uring_setup/io_uring_register syscalls; there is no network or adjacent path, so exploitation requires local access to issue syscalls.\nAC:L - The attacker performs every step themselves (create a legacy buffer group, empty it, upgrade the same bgid via PBUF_RING, then mmap), controlling both sides of any race; the trigger is fully deterministic and reliable.\nPR:L - io_uring is available to unprivileged users by default (kernel.io_uring_disabled=0) and provided-buffer registration needs no capability, so only a basic local user account is required.\nUI:N - The entire sequence is driven by the attacking process; no action by any other user or victim is needed.\nS:U - The corruption is confined to the kernel\u0027s own security authority (standard local privilege escalation) and does not cross a VM, IOMMU, or sandbox boundary.\nC:H - The type confusion / use-after-free of the io_buffer_list and the retained user mapping to freed kernel pages give the attacker read access to reallocated kernel memory, enabling arbitrary kernel information disclosure.\nI:H - The same UAF and shared-page primitive give write access to freed/reallocated kernel memory, exploitable for arbitrary kernel write and privilege escalation as demonstrated for this io_uring buffer-ring bug class.\nA:H - At minimum the type confusion and use-after-free corrupt kernel structures, causing an oops/panic and denial of service."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:54:49.695Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/146a185f6c05ee263db715f860620606303c4633"
        },
        {
          "url": "https://git.kernel.org/stable/c/7d0dc28dae836caf7645fef62a10befc624dd17b"
        },
        {
          "url": "https://git.kernel.org/stable/c/2a5febbef40ce968e295a7aeaa5d5cbd9e3e5ad4"
        },
        {
          "url": "https://git.kernel.org/stable/c/8802766324e1f5d414a81ac43365c20142e85603"
        },
        {
          "url": "https://u1f383.github.io/slides/talks/2025_Hexacon-Deja_Vu_in_Linux_io_uring_Breaking_Memory_Sharing_Again_After_Generations_of_Fixes.pdf"
        }
      ],
      "title": "io_uring/kbuf: reallocate buf lists on upgrade",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-21836",
    "datePublished": "2025-03-07T09:09:56.127Z",
    "dateReserved": "2024-12-29T08:45:45.777Z",
    "dateUpdated": "2026-08-05T11:54:49.695Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-21836",
      "date": "2026-08-05",
      "epss": "0.00247",
      "percentile": "0.15976"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-21836\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-03-07T09:15:16.600\",\"lastModified\":\"2026-07-30T06:21:40.310\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nio_uring/kbuf: reallocate buf lists on upgrade\\n\\nIORING_REGISTER_PBUF_RING can reuse an old struct io_buffer_list if it\\nwas created for legacy selected buffer and has been emptied. It violates\\nthe requirement that most of the field should stay stable after publish.\\nAlways reallocate it instead.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: io_uring/kbuf: reasignar listas de b\u00faferes en la actualizaci\u00f3n IORING_REGISTER_PBUF_RING puede reutilizar una estructura io_buffer_list antigua si se cre\u00f3 para un b\u00fafer seleccionado heredado y se vaci\u00f3. Viola el requisito de que la mayor parte del campo debe permanecer estable despu\u00e9s de la publicaci\u00f3n. Siempre reasignarlo en su lugar.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"io_uring/kbuf.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"2fcabce2d7d34f69a888146dab15b36a917f09d4\",\"lessThan\":\"146a185f6c05ee263db715f860620606303c4633\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2fcabce2d7d34f69a888146dab15b36a917f09d4\",\"lessThan\":\"7d0dc28dae836caf7645fef62a10befc624dd17b\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2fcabce2d7d34f69a888146dab15b36a917f09d4\",\"lessThan\":\"2a5febbef40ce968e295a7aeaa5d5cbd9e3e5ad4\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"2fcabce2d7d34f69a888146dab15b36a917f09d4\",\"lessThan\":\"8802766324e1f5d414a81ac43365c20142e85603\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"io_uring/kbuf.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.19\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.19\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.79\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.16\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.13.4\",\"lessThanOrEqual\":\"6.13.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.14\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"NVD-CWE-noinfo\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.19\",\"versionEndExcluding\":\"6.6.79\",\"matchCriteriaId\":\"682C77CE-42DC-42F5-AF33-8EDD5817357D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.7\",\"versionEndExcluding\":\"6.12.16\",\"matchCriteriaId\":\"13C8DB18-FC60-425F-84E5-3EDDEC61B2FC\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.13\",\"versionEndExcluding\":\"6.13.4\",\"matchCriteriaId\":\"2A2093ED-74A9-43F9-AC72-50030F374EA4\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"186716B6-2B66-4BD0-852E-D48E71C0C85F\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"0D3E781C-403A-498F-9DA9-ECEE50F41E75\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/146a185f6c05ee263db715f860620606303c4633\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/2a5febbef40ce968e295a7aeaa5d5cbd9e3e5ad4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/7d0dc28dae836caf7645fef62a10befc624dd17b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/8802766324e1f5d414a81ac43365c20142e85603\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://u1f383.github.io/slides/talks/2025_Hexacon-Deja_Vu_in_Linux_io_uring_Breaking_Memory_Sharing_Again_After_Generations_of_Fixes.pdf\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-07-30T09:39:02+00:00",
      "cve": "CVE-2025-21836",
      "id": "CVE-2025-21836",
      "initial_release_date": "2025-03-07T00:00:00+00:00",
      "product_status:known_affected": "184",
      "product_status:known_not_affected": "90",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: io_uring/kbuf: re-using old struct io_buffer_list may lead to a use-after-free situation",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-21836.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-07-17T13:15:51Z",
      "cve": "CVE-2025-21836",
      "id": "CVE-2025-21836",
      "initial_release_date": "2025-03-08T02:50:28Z",
      "product_status:known_affected": "499",
      "product_status:known_not_affected": "211",
      "product_status:recommended": "395",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2025-21836",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2025-21836.json",
      "version": "48"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…