CVE-2024-50005 (GCVE-0-2024-50005)

Vulnerability from cvelistv5 – Published: 2024-10-21 18:53 – Updated: 2025-05-04 09:43
VLAI?
Title
mac802154: Fix potential RCU dereference issue in mac802154_scan_worker
Summary
In the Linux kernel, the following vulnerability has been resolved: mac802154: Fix potential RCU dereference issue in mac802154_scan_worker In the `mac802154_scan_worker` function, the `scan_req->type` field was accessed after the RCU read-side critical section was unlocked. According to RCU usage rules, this is illegal and can lead to unpredictable behavior, such as accessing memory that has been updated or causing use-after-free issues. This possible bug was identified using a static analysis tool developed by myself, specifically designed to detect RCU-related issues. To address this, the `scan_req->type` value is now stored in a local variable `scan_req_type` while still within the RCU read-side critical section. The `scan_req_type` is then used after the RCU lock is released, ensuring that the type value is safely accessed without violating RCU rules.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: e2c3e6f53a7a8a00ffeed127cfd1b397c3b016f8 , < e676e4ea76bbe7f1156d8c326b9b6753849481c2 (git)
Affected: e2c3e6f53a7a8a00ffeed127cfd1b397c3b016f8 , < 540138377b22f601f06f55ebfa3ca171dcab471a (git)
Affected: e2c3e6f53a7a8a00ffeed127cfd1b397c3b016f8 , < d18f669461811dfe2915d5554ab2a9834f810013 (git)
Affected: e2c3e6f53a7a8a00ffeed127cfd1b397c3b016f8 , < bff1709b3980bd7f80be6786f64cc9a9ee9e56da (git)
Create a notification for this product.
    Linux Linux Affected: 6.5
Unaffected: 0 , < 6.5 (semver)
Unaffected: 6.6.55 , ≤ 6.6.* (semver)
Unaffected: 6.10.14 , ≤ 6.10.* (semver)
Unaffected: 6.11.3 , ≤ 6.11.* (semver)
Unaffected: 6.12 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-50005",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-10-22T13:29:26.338058Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-10-22T13:38:40.499Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/mac802154/scan.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "e676e4ea76bbe7f1156d8c326b9b6753849481c2",
              "status": "affected",
              "version": "e2c3e6f53a7a8a00ffeed127cfd1b397c3b016f8",
              "versionType": "git"
            },
            {
              "lessThan": "540138377b22f601f06f55ebfa3ca171dcab471a",
              "status": "affected",
              "version": "e2c3e6f53a7a8a00ffeed127cfd1b397c3b016f8",
              "versionType": "git"
            },
            {
              "lessThan": "d18f669461811dfe2915d5554ab2a9834f810013",
              "status": "affected",
              "version": "e2c3e6f53a7a8a00ffeed127cfd1b397c3b016f8",
              "versionType": "git"
            },
            {
              "lessThan": "bff1709b3980bd7f80be6786f64cc9a9ee9e56da",
              "status": "affected",
              "version": "e2c3e6f53a7a8a00ffeed127cfd1b397c3b016f8",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/mac802154/scan.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.5"
            },
            {
              "lessThan": "6.5",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.55",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.10.*",
              "status": "unaffected",
              "version": "6.10.14",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.11.*",
              "status": "unaffected",
              "version": "6.11.3",
              "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.55",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.10.14",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.11.3",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12",
                  "versionStartIncluding": "6.5",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmac802154: Fix potential RCU dereference issue in mac802154_scan_worker\n\nIn the `mac802154_scan_worker` function, the `scan_req-\u003etype` field was\naccessed after the RCU read-side critical section was unlocked. According\nto RCU usage rules, this is illegal and can lead to unpredictable\nbehavior, such as accessing memory that has been updated or causing\nuse-after-free issues.\n\nThis possible bug was identified using a static analysis tool developed\nby myself, specifically designed to detect RCU-related issues.\n\nTo address this, the `scan_req-\u003etype` value is now stored in a local\nvariable `scan_req_type` while still within the RCU read-side critical\nsection. The `scan_req_type` is then used after the RCU lock is released,\nensuring that the type value is safely accessed without violating RCU\nrules."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T09:43:36.186Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/e676e4ea76bbe7f1156d8c326b9b6753849481c2"
        },
        {
          "url": "https://git.kernel.org/stable/c/540138377b22f601f06f55ebfa3ca171dcab471a"
        },
        {
          "url": "https://git.kernel.org/stable/c/d18f669461811dfe2915d5554ab2a9834f810013"
        },
        {
          "url": "https://git.kernel.org/stable/c/bff1709b3980bd7f80be6786f64cc9a9ee9e56da"
        }
      ],
      "title": "mac802154: Fix potential RCU dereference issue in mac802154_scan_worker",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-50005",
    "datePublished": "2024-10-21T18:53:59.259Z",
    "dateReserved": "2024-10-21T12:17:06.059Z",
    "dateUpdated": "2025-05-04T09:43:36.186Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-50005\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-22T13:29:26.338058Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-22T13:29:29.412Z\"}}], \"cna\": {\"title\": \"mac802154: Fix potential RCU dereference issue in mac802154_scan_worker\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"e2c3e6f53a7a8a00ffeed127cfd1b397c3b016f8\", \"lessThan\": \"e676e4ea76bbe7f1156d8c326b9b6753849481c2\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"e2c3e6f53a7a8a00ffeed127cfd1b397c3b016f8\", \"lessThan\": \"540138377b22f601f06f55ebfa3ca171dcab471a\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"e2c3e6f53a7a8a00ffeed127cfd1b397c3b016f8\", \"lessThan\": \"d18f669461811dfe2915d5554ab2a9834f810013\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"e2c3e6f53a7a8a00ffeed127cfd1b397c3b016f8\", \"lessThan\": \"bff1709b3980bd7f80be6786f64cc9a9ee9e56da\", \"versionType\": \"git\"}], \"programFiles\": [\"net/mac802154/scan.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.5\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.5\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.6.55\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10.14\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.10.*\"}, {\"status\": \"unaffected\", \"version\": \"6.11.3\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.11.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"net/mac802154/scan.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/e676e4ea76bbe7f1156d8c326b9b6753849481c2\"}, {\"url\": \"https://git.kernel.org/stable/c/540138377b22f601f06f55ebfa3ca171dcab471a\"}, {\"url\": \"https://git.kernel.org/stable/c/d18f669461811dfe2915d5554ab2a9834f810013\"}, {\"url\": \"https://git.kernel.org/stable/c/bff1709b3980bd7f80be6786f64cc9a9ee9e56da\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmac802154: Fix potential RCU dereference issue in mac802154_scan_worker\\n\\nIn the `mac802154_scan_worker` function, the `scan_req-\u003etype` field was\\naccessed after the RCU read-side critical section was unlocked. According\\nto RCU usage rules, this is illegal and can lead to unpredictable\\nbehavior, such as accessing memory that has been updated or causing\\nuse-after-free issues.\\n\\nThis possible bug was identified using a static analysis tool developed\\nby myself, specifically designed to detect RCU-related issues.\\n\\nTo address this, the `scan_req-\u003etype` value is now stored in a local\\nvariable `scan_req_type` while still within the RCU read-side critical\\nsection. The `scan_req_type` is then used after the RCU lock is released,\\nensuring that the type value is safely accessed without violating RCU\\nrules.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-12-19T09:31:07.474Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-50005\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-12-19T09:31:07.474Z\", \"dateReserved\": \"2024-10-21T12:17:06.059Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T18:53:59.259Z\", \"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…

Sightings

Author Source Type Date

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…