CVE-2024-43913 (GCVE-0-2024-43913)
Vulnerability from cvelistv5
Published
2024-08-26 10:11
Modified
2026-08-05 11:37
Summary
In the Linux kernel, the following vulnerability has been resolved: nvme: apple: fix device reference counting Drivers must call nvme_uninit_ctrl after a successful nvme_init_ctrl. Split the allocation side out to make the error handling boundary easier to navigate. The apple driver had been doing this wrong, leaking the controller device memory on a tagset failure.
Impacted products
Vendor Product Version
Linux Linux Version: 5bd2927aceba181b84286e00aa2f56e117e699c3
Version: 5bd2927aceba181b84286e00aa2f56e117e699c3
Version: 5bd2927aceba181b84286e00aa2f56e117e699c3
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-43913",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-10T15:28:07.669349Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-12T17:32:56.340Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/nvme/host/apple.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "f7d9a18572fcd7130459b7691bd19ee2a2e951ad",
              "status": "affected",
              "version": "5bd2927aceba181b84286e00aa2f56e117e699c3",
              "versionType": "git"
            },
            {
              "lessThan": "d59c4d0eb6adc24c2201f153ccb7fd0a335b0d3d",
              "status": "affected",
              "version": "5bd2927aceba181b84286e00aa2f56e117e699c3",
              "versionType": "git"
            },
            {
              "lessThan": "b9ecbfa45516182cd062fecd286db7907ba84210",
              "status": "affected",
              "version": "5bd2927aceba181b84286e00aa2f56e117e699c3",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/nvme/host/apple.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.64",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.10.*",
              "status": "unaffected",
              "version": "6.10.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.11",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.64",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.10.5",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.11",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvme: apple: fix device reference counting\n\nDrivers must call nvme_uninit_ctrl after a successful nvme_init_ctrl.\nSplit the allocation side out to make the error handling boundary easier\nto navigate. The apple driver had been doing this wrong, leaking the\ncontroller device memory on a tagset failure."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The affected code is the Apple ANS2 SoC-internal NVMe platform driver; the vulnerable state is created during local device probe and reached afterwards through ordinary local syscalls (reading `/sys/class/nvme/nvmeN/*`, opening `/dev/nvmeN`). No network, adjacent-network, or physical-access path exists \u2014 the controller is on-die, so physical presence buys nothing.\nAC:H - The only branch reaching the buggy `put_dev` label after `nvme_init_ctrl()` succeeds is a `blk_mq_alloc_queue()` failure, i.e. a `GFP_KERNEL` allocation failure inside device probe \u2014 small GFP_KERNEL allocations do not fail on demand (they retry and invoke the OOM killer), and probe normally runs only at boot. The attacker cannot influence whether this precondition occurs.\nPR:L - Once the probe has failed and left the controller device registered over freed devm memory, the dangling object is reached with no privileges beyond an unprivileged local account: `/sys/class/nvme/nvmeN/` is world-traversable and `model`, `serial`, `firmware_rev`, `state`, `transport`, `subsysnqn`, `address`, `cntlid`, `queue_count` are all `S_IRUGO` with no capability check in their show handlers.\nUI:N - No victim action is required \u2014 the failing probe occurs on its own during boot under memory pressure, and the attacker simply reads the leaked sysfs attributes or opens the leaked device node.\nS:U - The corruption is confined to kernel memory within the same security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - This is a use-after-free read of the `nvme_ctrl` embedded in the devres-freed `anv` block \u2014 `model_show`/`serial_show`/`firmware_rev_show` follow `ctrl-\u003esubsys` out of freed memory and `sysfs_emit()` the bytes straight to userspace, disclosing whatever kernel data has reclaimed that slab object.\nI:H - The still-registered device leaves function pointers (`ctrl-\u003eops-\u003eget_address`, `ctrl-\u003edevice-\u003erelease`, the cdev\u0027s `f_op`) inside a freed slab block the attacker can reclaim and groom by spraying same-size allocations, and `nvme_sysfs_show_address()` performs an indirect call through one of them \u2014 a control-flow hijack primitive, with `reset_controller`/`delete_controller`/`passthru_err_log_enabled` stores writing into the freed object as well.\nA:H - Dereferencing the freed controller (`ctrl-\u003esubsys-\u003emodel`, `ctrl-\u003eops-\u003eget_address()`) oopses the kernel, and because the stale `/dev/nvmeN` and sysfs nodes persist for the lifetime of the boot the crash can be re-triggered at will by any local user; the unreleased ida instance, discard page, and srcu struct also leak on every occurrence."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:37:05.201Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/f7d9a18572fcd7130459b7691bd19ee2a2e951ad"
        },
        {
          "url": "https://git.kernel.org/stable/c/d59c4d0eb6adc24c2201f153ccb7fd0a335b0d3d"
        },
        {
          "url": "https://git.kernel.org/stable/c/b9ecbfa45516182cd062fecd286db7907ba84210"
        }
      ],
      "title": "nvme: apple: fix device reference counting",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-43913",
    "datePublished": "2024-08-26T10:11:18.273Z",
    "dateReserved": "2024-08-17T09:11:59.295Z",
    "dateUpdated": "2026-08-05T11:37:05.201Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-43913\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T15:28:07.669349Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-11T12:42:12.347Z\"}}], \"cna\": {\"title\": \"nvme: apple: fix device reference counting\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5bd2927aceba181b84286e00aa2f56e117e699c3\", \"lessThan\": \"f7d9a18572fcd7130459b7691bd19ee2a2e951ad\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"5bd2927aceba181b84286e00aa2f56e117e699c3\", \"lessThan\": \"d59c4d0eb6adc24c2201f153ccb7fd0a335b0d3d\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"5bd2927aceba181b84286e00aa2f56e117e699c3\", \"lessThan\": \"b9ecbfa45516182cd062fecd286db7907ba84210\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/nvme/host/apple.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.19\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.19\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.6.64\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10.5\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.10.*\"}, {\"status\": \"unaffected\", \"version\": \"6.11\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/nvme/host/apple.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/f7d9a18572fcd7130459b7691bd19ee2a2e951ad\"}, {\"url\": \"https://git.kernel.org/stable/c/d59c4d0eb6adc24c2201f153ccb7fd0a335b0d3d\"}, {\"url\": \"https://git.kernel.org/stable/c/b9ecbfa45516182cd062fecd286db7907ba84210\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnvme: apple: fix device reference counting\\n\\nDrivers must call nvme_uninit_ctrl after a successful nvme_init_ctrl.\\nSplit the allocation side out to make the error handling boundary easier\\nto navigate. The apple driver had been doing this wrong, leaking the\\ncontroller device memory on a tagset failure.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.64\", \"versionStartIncluding\": \"5.19\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.10.5\", \"versionStartIncluding\": \"5.19\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.11\", \"versionStartIncluding\": \"5.19\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-05-11T20:32:12.038Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-43913\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-05-11T20:32:12.038Z\", \"dateReserved\": \"2024-08-17T09:11:59.295Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-08-26T10:11:18.273Z\", \"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…