CVE-2024-50055 (GCVE-0-2024-50055)
Vulnerability from cvelistv5
Published
2024-10-21 19:39
Modified
2026-08-05 11:41
Summary
In the Linux kernel, the following vulnerability has been resolved: driver core: bus: Fix double free in driver API bus_register() For bus_register(), any error which happens after kset_register() will cause that @priv are freed twice, fixed by setting @priv with NULL after the first free.
Impacted products
Vendor Product Version
Linux Linux Version: 3465e2e4a24eef9bc9f21aa29d83fd7000c1da48
Version: 3465e2e4a24eef9bc9f21aa29d83fd7000c1da48
Version: 3465e2e4a24eef9bc9f21aa29d83fd7000c1da48
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-50055",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-10-22T13:23:36.877414Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-10-22T13:28:43.087Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2025-11-03T20:43:22.001Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"
          },
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/base/bus.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "d885c464c25018b81a6b58f5d548fc2e3ef87dd1",
              "status": "affected",
              "version": "3465e2e4a24eef9bc9f21aa29d83fd7000c1da48",
              "versionType": "git"
            },
            {
              "lessThan": "9ce15f68abedfae7ae0a35e95895aeddfd0f0c6a",
              "status": "affected",
              "version": "3465e2e4a24eef9bc9f21aa29d83fd7000c1da48",
              "versionType": "git"
            },
            {
              "lessThan": "bfa54a793ba77ef696755b66f3ac4ed00c7d1248",
              "status": "affected",
              "version": "3465e2e4a24eef9bc9f21aa29d83fd7000c1da48",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/base/bus.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.3"
            },
            {
              "lessThan": "6.3",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.57",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.11.*",
              "status": "unaffected",
              "version": "6.11.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.12",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.57",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.11.4",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndriver core: bus: Fix double free in driver API bus_register()\n\nFor bus_register(), any error which happens after kset_register() will\ncause that @priv are freed twice, fixed by setting @priv with NULL after\nthe first free."
        }
      ],
      "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 - `bus_register()` is a driver-core API invoked only from subsystem initialization running on the local machine; the unprivileged trigger is a local `socket(AF_NETLINK, SOCK_RAW, NETLINK_ISCSI)` syscall that forces module autoload. No remote peer, network packet, or physical device is involved.\nAC:L - The attacker can drive the system into memory pressure and then repeatedly force `scsi_transport_iscsi` autoload, because a failed module init leaves the netlink protocol unregistered so the request_module can be replayed without limit until an allocation inside `bus_register()` fails. Nothing about the trigger depends on state outside the attacker\u0027s influence, and the two `kfree()` calls then execute back-to-back deterministically.\nPR:L - `netlink_create()` performs `request_module(\"net-pf-16-proto-8\")` with no capability check at all, so an ordinary unprivileged user reaches `iscsi_transport_init()` \u2192 `bus_register(\u0026iscsi_flashnode_bus)` with a single socket() call. No CAP_SYS_MODULE, no root, and no user-namespace trickery is needed for this path.\nUI:N - The attacker performs every step itself \u2014 create memory pressure, issue the socket() call that triggers autoload \u2014 with no victim action, mount, file open, or administrator involvement required.\nS:U - The corrupted object is a kernel slab allocation and the consequences stay entirely within the kernel\u0027s own security authority; no VM, hypervisor, IOMMU, or sandbox boundary is crossed.\nC:H - The double free makes the SLUB freelist self-referential so two later allocations of the same size class alias one address, giving type confusion between attacker-controlled and kernel objects and thus an arbitrary kernel-memory read primitive. Freed-object contents can be reclaimed and disclosed through the aliased structure.\nI:H - The same freelist aliasing lets an attacker-sprayed object overwrite the fields of an unrelated live kernel structure \u2014 including function pointers reachable from `struct subsys_private`-sized kmalloc objects \u2014 yielding an arbitrary write and control-flow hijack primitive, i.e. full local privilege escalation.\nA:H - Even without successful exploitation the double free corrupts the slab allocator and panics the machine; on kernels built with CONFIG_SLAB_FREELIST_HARDENED the `BUG_ON(object == fp)` in `set_freepointer()` fires immediately, and `bus_release()` additionally calls `lockdep_unregister_key()` on a never-registered key on the early error paths."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:41:17.222Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/d885c464c25018b81a6b58f5d548fc2e3ef87dd1"
        },
        {
          "url": "https://git.kernel.org/stable/c/9ce15f68abedfae7ae0a35e95895aeddfd0f0c6a"
        },
        {
          "url": "https://git.kernel.org/stable/c/bfa54a793ba77ef696755b66f3ac4ed00c7d1248"
        }
      ],
      "title": "driver core: bus: Fix double free in driver API bus_register()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-50055",
    "datePublished": "2024-10-21T19:39:46.476Z",
    "dateReserved": "2024-10-21T19:36:19.938Z",
    "dateUpdated": "2026-08-05T11:41:17.222Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html\"}, {\"url\": \"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html\"}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2025-11-03T20:43:22.001Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-50055\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-22T13:23:36.877414Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-22T13:23:40.396Z\"}}], \"cna\": {\"title\": \"driver core: bus: Fix double free in driver API bus_register()\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"3465e2e4a24eef9bc9f21aa29d83fd7000c1da48\", \"lessThan\": \"d885c464c25018b81a6b58f5d548fc2e3ef87dd1\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"3465e2e4a24eef9bc9f21aa29d83fd7000c1da48\", \"lessThan\": \"9ce15f68abedfae7ae0a35e95895aeddfd0f0c6a\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"3465e2e4a24eef9bc9f21aa29d83fd7000c1da48\", \"lessThan\": \"bfa54a793ba77ef696755b66f3ac4ed00c7d1248\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/base/bus.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.3\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.3\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.6.57\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.11.4\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.11.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/base/bus.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/d885c464c25018b81a6b58f5d548fc2e3ef87dd1\"}, {\"url\": \"https://git.kernel.org/stable/c/9ce15f68abedfae7ae0a35e95895aeddfd0f0c6a\"}, {\"url\": \"https://git.kernel.org/stable/c/bfa54a793ba77ef696755b66f3ac4ed00c7d1248\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ndriver core: bus: Fix double free in driver API bus_register()\\n\\nFor bus_register(), any error which happens after kset_register() will\\ncause that @priv are freed twice, fixed by setting @priv with NULL after\\nthe first free.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.57\", \"versionStartIncluding\": \"6.3\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.11.4\", \"versionStartIncluding\": \"6.3\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.12\", \"versionStartIncluding\": \"6.3\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-01-05T10:54:48.334Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-50055\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-01-05T10:54:48.334Z\", \"dateReserved\": \"2024-10-21T19:36:19.938Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T19:39:46.476Z\", \"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…