CVE-2024-41149 (GCVE-0-2024-41149)

Vulnerability from cvelistv5 – Published: 2025-01-11 12:35 – Updated: 2026-08-05 11:35
VLAI
Title
block: avoid to reuse `hctx` not removed from cpuhp callback list
Summary
In the Linux kernel, the following vulnerability has been resolved: block: avoid to reuse `hctx` not removed from cpuhp callback list If the 'hctx' isn't removed from cpuhp callback list, we can't reuse it, otherwise use-after-free may be triggered.
SSVC
Exploitation: none Automatable: no Technical Impact: total
CISA Coordinator (v2.0.3)
CWE
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 58bf93580fec30d84a46be41171c5fad98b5cc70 , < ee18012c80155f6809522804099621070c69ec72 (git)
Affected: c1291ea131d186296dc8d328a36c3caf38e8e159 , < b5792c162dcf6197bf3d2de2be6c8169435b73d0 (git)
Affected: 22465bbac53c821319089016f268a2437de9b00a , < 85672ca9ceeaa1dcf2777a7048af5f4aee3fd02b (git)
Create a notification for this product.
Linux Linux Affected: 6.12.6 , < 6.12.7 (semver)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 7.8,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "HIGH",
              "integrityImpact": "HIGH",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2024-41149",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-02-11T15:41:11.000102Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-416",
                "description": "CWE-416 Use After Free",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-02-11T15:45:20.309Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "block/blk-mq.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "ee18012c80155f6809522804099621070c69ec72",
              "status": "affected",
              "version": "58bf93580fec30d84a46be41171c5fad98b5cc70",
              "versionType": "git"
            },
            {
              "lessThan": "b5792c162dcf6197bf3d2de2be6c8169435b73d0",
              "status": "affected",
              "version": "c1291ea131d186296dc8d328a36c3caf38e8e159",
              "versionType": "git"
            },
            {
              "lessThan": "85672ca9ceeaa1dcf2777a7048af5f4aee3fd02b",
              "status": "affected",
              "version": "22465bbac53c821319089016f268a2437de9b00a",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "block/blk-mq.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "6.12.7",
              "status": "affected",
              "version": "6.12.6",
              "versionType": "semver"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.7",
                  "versionStartIncluding": "6.12.6",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nblock: avoid to reuse `hctx` not removed from cpuhp callback list\n\nIf the \u0027hctx\u0027 isn\u0027t removed from cpuhp callback list, we can\u0027t reuse it,\notherwise use-after-free may be triggered."
        }
      ],
      "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 generic block-layer hw-queue reallocation reached through local interfaces \u2014 sysfs queue reconfiguration, block ioctls/netlink, device reset, and suspend/resume \u2014 with no network-facing parser involved. Even the nvme-oF reconnect angle requires an already-established local block device, so the attack is local.\nAC:L - The reuse of a still-cpuhp-registered hctx is deterministic on any nr_hw_queues update, and the conditions that turn it into a free (allocation failure in blk_mq_init_hctx) or a concurrent callback are attacker-influenceable via memory pressure and repeated queue reconfiguration. Both sides of the race/window are driven by the attacker\u0027s own repeated operations.\nPR:L - An unprivileged local user can drive the queue-reallocation path indirectly \u2014 inducing NVMe controller resets through I/O timeouts and via logind-permitted suspend/resume (which also mass-offlines/onlines CPUs, walking the corrupted lists) \u2014 while supplying the memory pressure needed for the failing-init free. No root-only capability is strictly required for the influencing conditions.\nUI:N - No victim action is needed; the attacker triggers queue reallocation and the subsequent hotplug/list operations entirely through its own activity.\nS:U - The corruption is confined to kernel heap and kernel-global cpuhp instance lists within the same security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The dangling hlist node lets an attacker reallocate the freed blk_mq_hw_ctx slab object and have the kernel traverse attacker-controlled list pointers and dereference hctx-\u003equeue in blk_mq_hctx_notify_dead(), yielding an arbitrary kernel-memory read primitive.\nI:H - hlist_add_head() writes a kernel pointer into the freed object and hlist_del() through a reallocated node is a write-what-where; the callback path additionally reaches q-\u003emq_ops indirect calls from freed memory, enabling control-flow hijack and privilege escalation.\nA:H - A use-after-free on globally traversed cpuhp instance lists reliably produces list corruption, oopses, and kernel panics on the next CPU hotplug transition or block-queue setup/teardown."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:35:22.867Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/ee18012c80155f6809522804099621070c69ec72"
        },
        {
          "url": "https://git.kernel.org/stable/c/b5792c162dcf6197bf3d2de2be6c8169435b73d0"
        },
        {
          "url": "https://git.kernel.org/stable/c/85672ca9ceeaa1dcf2777a7048af5f4aee3fd02b"
        }
      ],
      "title": "block: avoid to reuse `hctx` not removed from cpuhp callback list",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-41149",
    "datePublished": "2025-01-11T12:35:33.428Z",
    "dateReserved": "2025-01-11T12:33:33.672Z",
    "dateUpdated": "2026-08-05T11:35:22.867Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2024-41149",
      "date": "2026-08-05",
      "epss": "0.00217",
      "percentile": "0.12186"
    },
    "fkie_nvd": {
      "descriptions": "[{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nblock: avoid to reuse `hctx` not removed from cpuhp callback list\\n\\nIf the \u0027hctx\u0027 isn\u0027t removed from cpuhp callback list, we can\u0027t reuse it,\\notherwise use-after-free may be triggered.\"}]",
      "id": "CVE-2024-41149",
      "lastModified": "2025-01-11T13:15:19.973",
      "published": "2025-01-11T13:15:19.973",
      "references": "[{\"url\": \"https://git.kernel.org/stable/c/85672ca9ceeaa1dcf2777a7048af5f4aee3fd02b\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}, {\"url\": \"https://git.kernel.org/stable/c/b5792c162dcf6197bf3d2de2be6c8169435b73d0\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}, {\"url\": \"https://git.kernel.org/stable/c/ee18012c80155f6809522804099621070c69ec72\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]",
      "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "vulnStatus": "Received"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2024-41149\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-01-11T13:15:19.973\",\"lastModified\":\"2026-06-17T07:47:22.313\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nblock: avoid to reuse `hctx` not removed from cpuhp callback list\\n\\nIf the \u0027hctx\u0027 isn\u0027t removed from cpuhp callback list, we can\u0027t reuse it,\\notherwise use-after-free may be triggered.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bloque: evitar reutilizar `hctx` no eliminado de la lista de devoluci\u00f3n de llamadas de cpuhp Si \u0027hctx\u0027 no se elimina de la lista de devoluci\u00f3n de llamadas de cpuhp, no podemos reutilizarlo, de lo contrario, se puede activar el use after free.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"block/blk-mq.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"58bf93580fec30d84a46be41171c5fad98b5cc70\",\"lessThan\":\"ee18012c80155f6809522804099621070c69ec72\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"c1291ea131d186296dc8d328a36c3caf38e8e159\",\"lessThan\":\"b5792c162dcf6197bf3d2de2be6c8169435b73d0\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"22465bbac53c821319089016f268a2437de9b00a\",\"lessThan\":\"85672ca9ceeaa1dcf2777a7048af5f4aee3fd02b\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"block/blk-mq.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.12.6\",\"lessThan\":\"6.12.7\",\"versionType\":\"semver\",\"status\":\"affected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"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}],\"ssvcV203\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"ssvcData\":{\"timestamp\":\"2025-02-11T15:41:11.000102Z\",\"id\":\"CVE-2024-41149\",\"options\":[{\"exploitation\":\"none\"},{\"automatable\":\"no\"},{\"technicalImpact\":\"total\"}],\"role\":\"CISA Coordinator\",\"version\":\"2.0.3\"}}]},\"weaknesses\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-416\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.12.6:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"C169004B-AF0C-4A52-A1D2-A5E9CB2B9F9D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"5A073481-106D-4B15-B4C7-FB0213B8E1D4\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:*\",\"matchCriteriaId\":\"DE491969-75AE-4A6B-9A58-8FC5AF98798F\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/85672ca9ceeaa1dcf2777a7048af5f4aee3fd02b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/b5792c162dcf6197bf3d2de2be6c8169435b73d0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/ee18012c80155f6809522804099621070c69ec72\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2025-11-21T13:51:20+00:00",
      "cve": "CVE-2024-41149",
      "id": "CVE-2024-41149",
      "initial_release_date": "2024-01-01T00:00:00+00:00",
      "product_status:known_affected": "28",
      "product_status:known_not_affected": "170",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: block: avoid to reuse `hctx` not removed from cpuhp callback list",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-41149.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-07-23T02:02:52Z",
      "cve": "CVE-2024-41149",
      "id": "CVE-2024-41149",
      "initial_release_date": "2025-01-12T00:22:13Z",
      "product_status:known_affected": "575",
      "product_status:known_not_affected": "143",
      "product_status:recommended": "362",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2024-41149",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2024-41149.json",
      "version": "51"
    },
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 7.8, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"HIGH\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-41149\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-02-11T15:41:11.000102Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-416\", \"description\": \"CWE-416 Use After Free\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-02-11T15:41:12.735Z\"}}], \"cna\": {\"title\": \"block: avoid to reuse `hctx` not removed from cpuhp callback list\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"58bf93580fec30d84a46be41171c5fad98b5cc70\", \"lessThan\": \"ee18012c80155f6809522804099621070c69ec72\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"c1291ea131d186296dc8d328a36c3caf38e8e159\", \"lessThan\": \"b5792c162dcf6197bf3d2de2be6c8169435b73d0\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"22465bbac53c821319089016f268a2437de9b00a\", \"lessThan\": \"85672ca9ceeaa1dcf2777a7048af5f4aee3fd02b\", \"versionType\": \"git\"}], \"programFiles\": [\"block/blk-mq.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.12.6\", \"lessThan\": \"6.12.7\", \"versionType\": \"semver\"}], \"programFiles\": [\"block/blk-mq.c\"], \"defaultStatus\": \"unaffected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/ee18012c80155f6809522804099621070c69ec72\"}, {\"url\": \"https://git.kernel.org/stable/c/b5792c162dcf6197bf3d2de2be6c8169435b73d0\"}, {\"url\": \"https://git.kernel.org/stable/c/85672ca9ceeaa1dcf2777a7048af5f4aee3fd02b\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nblock: avoid to reuse `hctx` not removed from cpuhp callback list\\n\\nIf the \u0027hctx\u0027 isn\u0027t removed from cpuhp callback list, we can\u0027t reuse it,\\notherwise use-after-free may be triggered.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.12.7\", \"versionStartIncluding\": \"6.12.6\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-05-04T09:22:05.525Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-41149\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-05-04T09:22:05.525Z\", \"dateReserved\": \"2025-01-11T12:33:33.672Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2025-01-11T12:35:33.428Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}



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…