CVE-2024-35880 (GCVE-0-2024-35880)
Vulnerability from cvelistv5
Published
2024-05-19 08:34
Modified
2026-08-05 11:30
Summary
In the Linux kernel, the following vulnerability has been resolved: io_uring/kbuf: hold io_buffer_list reference over mmap If we look up the kbuf, ensure that it doesn't get unregistered until after we're done with it. Since we're inside mmap, we cannot safely use the io_uring lock. Rely on the fact that we can lookup the buffer list under RCU now and grab a reference to it, preventing it from being unregistered until we're done with it. The lookup returns the io_buffer_list directly with it referenced.
Impacted products
Vendor Product Version
Linux Linux Version: 09f7520048eaaee9709091cd2787966f807da7c5
Version: 5cf4f52e6d8aa2d3b7728f568abbf9d42a3af252
Version: 5cf4f52e6d8aa2d3b7728f568abbf9d42a3af252
Version: 6.6.5   
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "affected": [
          {
            "cpes": [
              "cpe:2.3:o:linux:linux_kernel:6.7:-:*:*:*:*:*:*"
            ],
            "defaultStatus": "affected",
            "product": "linux_kernel",
            "vendor": "linux",
            "versions": [
              {
                "status": "affected",
                "version": "6.7"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
            ],
            "defaultStatus": "affected",
            "product": "linux_kernel",
            "vendor": "linux",
            "versions": [
              {
                "lessThan": "65938e81df21",
                "status": "affected",
                "version": "09f7520048ea",
                "versionType": "git"
              },
              {
                "lessThan": "5fd8e2359498",
                "status": "affected",
                "version": "5cf4f52e6d8a",
                "versionType": "git"
              },
              {
                "lessThan": "561e4f9451d6",
                "status": "affected",
                "version": "5cf4f52e6d8a",
                "versionType": "git"
              }
            ]
          }
        ],
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-35880",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-08-01T03:55:54.843818Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-08-01T13:23:38.879Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T03:21:48.591Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/65938e81df2197203bda4b9a0c477e7987218d66"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/5fd8e2359498043e0b5329a05f02d10a9eb91eb9"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/561e4f9451d65fc2f7eef564e0064373e3019793"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "io_uring/io_uring.c",
            "io_uring/kbuf.c",
            "io_uring/kbuf.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "65938e81df2197203bda4b9a0c477e7987218d66",
              "status": "affected",
              "version": "09f7520048eaaee9709091cd2787966f807da7c5",
              "versionType": "git"
            },
            {
              "lessThan": "5fd8e2359498043e0b5329a05f02d10a9eb91eb9",
              "status": "affected",
              "version": "5cf4f52e6d8aa2d3b7728f568abbf9d42a3af252",
              "versionType": "git"
            },
            {
              "lessThan": "561e4f9451d65fc2f7eef564e0064373e3019793",
              "status": "affected",
              "version": "5cf4f52e6d8aa2d3b7728f568abbf9d42a3af252",
              "versionType": "git"
            },
            {
              "lessThan": "6.6.26",
              "status": "affected",
              "version": "6.6.5",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "io_uring/io_uring.c",
            "io_uring/kbuf.c",
            "io_uring/kbuf.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.7"
            },
            {
              "lessThan": "6.7",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.26",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.8.*",
              "status": "unaffected",
              "version": "6.8.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.9",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.26",
                  "versionStartIncluding": "6.6.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.8.5",
                  "versionStartIncluding": "6.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.9",
                  "versionStartIncluding": "6.7",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/kbuf: hold io_buffer_list reference over mmap\n\nIf we look up the kbuf, ensure that it doesn\u0027t get unregistered until\nafter we\u0027re done with it. Since we\u0027re inside mmap, we cannot safely use\nthe io_uring lock. Rely on the fact that we can lookup the buffer list\nunder RCU now and grab a reference to it, preventing it from being\nunregistered until we\u0027re done with it. The lookup returns the\nio_buffer_list directly with it referenced."
        }
      ],
      "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 path is entered only through local syscalls on an io_uring file descriptor \u2014 `mmap()` with `IORING_OFF_PBUF_RING` racing `io_uring_register(IORING_UNREGISTER_PBUF_RING)`. There is no network, adjacent, or remote-peer path into `io_uring_validate_mmap_request()`.\nAC:L - The attacker owns both sides of the race: one thread loops `mmap()` on the provided-buffer-ring offset while a second thread loops register/unregister of the same bgid on the same fd, with unlimited retries and no dependence on any condition outside the attacker\u0027s control.\nPR:L - Only an unprivileged local account is required \u2014 `io_uring_allowed()` permits any user when `sysctl_io_uring_disabled` is 0, which is the kernel default, and `IORING_REGISTER_PBUF_RING` with `IOU_PBUF_RING_MMAP` carries no capability check. This is reachable from inside containers and sandboxes as well.\nUI:N - The attacker performs every step itself \u2014 creating the ring, registering the buffer ring, and driving both racing threads. No victim action or interaction with any other user is needed.\nS:U - The defect and its consequences are confined to kernel memory within the same security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - Without the reference, mmap consumes a `bl-\u003ebuf_ring` address belonging to a buffer list being concurrently destroyed, and `remap_pfn_range()` installs a persistent `VM_PFNMAP` window onto kernel-allocated ring memory that has already been released back to the context\u0027s reusable region pool and can be re-handed to a different buffer group \u2014 an uncontrolled read of kernel memory, and per use-after-free scoring this is High.\nI:H - The resulting mapping is a writable `MAP_SHARED` view of that stale kernel region, so the attacker can write into memory the kernel no longer treats as belonging to the mapping\u0027s owner; use-after-free of a refcounted object also enables heap grooming toward a controlled-write primitive.\nA:H - Racing the teardown lets mmap operate on a `buf_ring` pointer being NULLed and on an `io_buffer_list` on its way to `kfree_rcu()`, producing oops/kernel panic; the race is repeatable at will by any local user, so availability loss is complete."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:30:38.073Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/65938e81df2197203bda4b9a0c477e7987218d66"
        },
        {
          "url": "https://git.kernel.org/stable/c/5fd8e2359498043e0b5329a05f02d10a9eb91eb9"
        },
        {
          "url": "https://git.kernel.org/stable/c/561e4f9451d65fc2f7eef564e0064373e3019793"
        }
      ],
      "title": "io_uring/kbuf: hold io_buffer_list reference over mmap",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-35880",
    "datePublished": "2024-05-19T08:34:37.262Z",
    "dateReserved": "2024-05-17T13:50:33.111Z",
    "dateUpdated": "2026-08-05T11:30:38.073Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/65938e81df2197203bda4b9a0c477e7987218d66\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/5fd8e2359498043e0b5329a05f02d10a9eb91eb9\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/561e4f9451d65fc2f7eef564e0064373e3019793\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T03:21:48.591Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-35880\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-08-01T03:55:54.843818Z\"}}}], \"affected\": [{\"cpes\": [\"cpe:2.3:o:linux:linux_kernel:6.7:-:*:*:*:*:*:*\"], \"vendor\": \"linux\", \"product\": \"linux_kernel\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.7\"}], \"defaultStatus\": \"affected\"}, {\"cpes\": [\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\"], \"vendor\": \"linux\", \"product\": \"linux_kernel\", \"versions\": [{\"status\": \"affected\", \"version\": \"09f7520048ea\", \"lessThan\": \"65938e81df21\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"5cf4f52e6d8a\", \"lessThan\": \"5fd8e2359498\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"5cf4f52e6d8a\", \"lessThan\": \"561e4f9451d6\", \"versionType\": \"git\"}], \"defaultStatus\": \"affected\"}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-05-23T19:01:24.769Z\"}}], \"cna\": {\"title\": \"io_uring/kbuf: hold io_buffer_list reference over mmap\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.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\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"AV:L - The vulnerable path is entered only through local syscalls on an io_uring file descriptor \\u2014 `mmap()` with `IORING_OFF_PBUF_RING` racing `io_uring_register(IORING_UNREGISTER_PBUF_RING)`. There is no network, adjacent, or remote-peer path into `io_uring_validate_mmap_request()`.\\nAC:L - The attacker owns both sides of the race: one thread loops `mmap()` on the provided-buffer-ring offset while a second thread loops register/unregister of the same bgid on the same fd, with unlimited retries and no dependence on any condition outside the attacker\u0027s control.\\nPR:L - Only an unprivileged local account is required \\u2014 `io_uring_allowed()` permits any user when `sysctl_io_uring_disabled` is 0, which is the kernel default, and `IORING_REGISTER_PBUF_RING` with `IOU_PBUF_RING_MMAP` carries no capability check. This is reachable from inside containers and sandboxes as well.\\nUI:N - The attacker performs every step itself \\u2014 creating the ring, registering the buffer ring, and driving both racing threads. No victim action or interaction with any other user is needed.\\nS:U - The defect and its consequences are confined to kernel memory within the same security authority; no VM, IOMMU, or sandbox boundary is crossed.\\nC:H - Without the reference, mmap consumes a `bl-\u003ebuf_ring` address belonging to a buffer list being concurrently destroyed, and `remap_pfn_range()` installs a persistent `VM_PFNMAP` window onto kernel-allocated ring memory that has already been released back to the context\u0027s reusable region pool and can be re-handed to a different buffer group \\u2014 an uncontrolled read of kernel memory, and per use-after-free scoring this is High.\\nI:H - The resulting mapping is a writable `MAP_SHARED` view of that stale kernel region, so the attacker can write into memory the kernel no longer treats as belonging to the mapping\u0027s owner; use-after-free of a refcounted object also enables heap grooming toward a controlled-write primitive.\\nA:H - Racing the teardown lets mmap operate on a `buf_ring` pointer being NULLed and on an `io_buffer_list` on its way to `kfree_rcu()`, producing oops/kernel panic; the race is repeatable at will by any local user, so availability loss is complete.\"}]}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"09f7520048eaaee9709091cd2787966f807da7c5\", \"lessThan\": \"65938e81df2197203bda4b9a0c477e7987218d66\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"5cf4f52e6d8aa2d3b7728f568abbf9d42a3af252\", \"lessThan\": \"5fd8e2359498043e0b5329a05f02d10a9eb91eb9\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"5cf4f52e6d8aa2d3b7728f568abbf9d42a3af252\", \"lessThan\": \"561e4f9451d65fc2f7eef564e0064373e3019793\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"6.6.5\", \"lessThan\": \"6.6.26\", \"versionType\": \"semver\"}], \"programFiles\": [\"io_uring/io_uring.c\", \"io_uring/kbuf.c\", \"io_uring/kbuf.h\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.7\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.7\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.6.26\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.8.5\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.8.*\"}, {\"status\": \"unaffected\", \"version\": \"6.9\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"io_uring/io_uring.c\", \"io_uring/kbuf.c\", \"io_uring/kbuf.h\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/65938e81df2197203bda4b9a0c477e7987218d66\"}, {\"url\": \"https://git.kernel.org/stable/c/5fd8e2359498043e0b5329a05f02d10a9eb91eb9\"}, {\"url\": \"https://git.kernel.org/stable/c/561e4f9451d65fc2f7eef564e0064373e3019793\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nio_uring/kbuf: hold io_buffer_list reference over mmap\\n\\nIf we look up the kbuf, ensure that it doesn\u0027t get unregistered until\\nafter we\u0027re done with it. Since we\u0027re inside mmap, we cannot safely use\\nthe io_uring lock. Rely on the fact that we can lookup the buffer list\\nunder RCU now and grab a reference to it, preventing it from being\\nunregistered until we\u0027re done with it. The lookup returns the\\nio_buffer_list directly with it referenced.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.26\", \"versionStartIncluding\": \"6.6.5\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.8.5\", \"versionStartIncluding\": \"6.7\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.9\", \"versionStartIncluding\": \"6.7\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-05T11:30:38.073Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-35880\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-08-05T11:30:38.073Z\", \"dateReserved\": \"2024-05-17T13:50:33.111Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-05-19T08:34:37.262Z\", \"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…