CVE-2024-55639 (GCVE-0-2024-55639)
Vulnerability from cvelistv5
Published
2025-01-11 12:29
Modified
2026-08-05 11:44
Summary
In the Linux kernel, the following vulnerability has been resolved: net: renesas: rswitch: avoid use-after-put for a device tree node The device tree node saved in the rswitch_device structure is used at several driver locations. So passing this node to of_node_put() after the first use is wrong. Move of_node_put() for this node to exit paths.
Impacted products
Vendor Product Version
Linux Linux Version: b46f1e5793298c67efc2f1b917350a2cefacf9d6
Version: b46f1e5793298c67efc2f1b917350a2cefacf9d6
Version: b46f1e5793298c67efc2f1b917350a2cefacf9d6
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/renesas/rswitch.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "bf8c6755f02029d1eddc3ff19b870240f054afc7",
              "status": "affected",
              "version": "b46f1e5793298c67efc2f1b917350a2cefacf9d6",
              "versionType": "git"
            },
            {
              "lessThan": "92007a28f95413058a7268dc84e5f44b700165d1",
              "status": "affected",
              "version": "b46f1e5793298c67efc2f1b917350a2cefacf9d6",
              "versionType": "git"
            },
            {
              "lessThan": "66b7e9f85b8459c823b11e9af69dbf4be5eb6be8",
              "status": "affected",
              "version": "b46f1e5793298c67efc2f1b917350a2cefacf9d6",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/renesas/rswitch.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.67",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.13",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.67",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.6",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.13",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: renesas: rswitch: avoid use-after-put for a device tree node\n\nThe device tree node saved in the rswitch_device structure is used at\nseveral driver locations. So passing this node to of_node_put() after\nthe first use is wrong.\n\nMove of_node_put() for this node to exit paths."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 8.4,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The affected code is entirely in the rswitch platform driver\u0027s probe/init path (`rswitch_probe()` \u2192 `rswitch_init()` \u2192 `rswitch_device_alloc()`/`rswitch_ether_port_init_all()`), reached through local device/driver lifecycle events such as module load, sysfs bind, or device-tree overlay attach \u2014 never from network traffic.\nAC:L - The premature `of_node_put()` executes unconditionally on every probe, so the dangling reference is created deterministically with no race to win and no memory-layout precondition; an attacker able to drive overlay attach/detach or driver rebind controls both the probe and the node teardown.\nPR:N - The vulnerable sequence runs automatically during driver probe at boot or on device-tree overlay/hotplug attach, requiring no authenticated account or credential for the dangling-reference window to be created, consistent with how comparable probe-path OF-node use-after-free issues are scored.\nUI:N - Probe and port initialization happen autonomously as part of device enumeration; no victim must open a file, mount anything, or take any other action.\nS:U - The freed `struct device_node` and all consequences of dereferencing it remain within the kernel\u0027s own security authority, with no crossing into a hypervisor, IOMMU, or other separate security scope.\nC:H - Use-after-free on a device-tree node lets reclaimed heap contents be interpreted as `struct device_node`/property lists by `of_get_phy_mode()`, `of_property_read_u32()`, and `of_parse_phandle()`, yielding attacker-directed pointer dereferences and disclosure of arbitrary kernel memory.\nI:H - The same UAF gives control over a freed object that is subsequently walked and passed to `devm_of_phy_get()` and phandle resolution, so heap spraying the reclaimed allocation provides write/control-flow-hijack primitives; the refcount imbalance additionally corrupts kobject state.\nA:H - Dereferencing the released node reliably produces a kernel oops or panic, and on static base-tree nodes the imbalance triggers the `refcount_t: underflow; use-after-free` path in `of_node_release()`, leaving the network device unusable on an automotive/embedded gateway SoC."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T11:44:52.040Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/bf8c6755f02029d1eddc3ff19b870240f054afc7"
        },
        {
          "url": "https://git.kernel.org/stable/c/92007a28f95413058a7268dc84e5f44b700165d1"
        },
        {
          "url": "https://git.kernel.org/stable/c/66b7e9f85b8459c823b11e9af69dbf4be5eb6be8"
        }
      ],
      "title": "net: renesas: rswitch: avoid use-after-put for a device tree node",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-55639",
    "datePublished": "2025-01-11T12:29:55.309Z",
    "dateReserved": "2025-01-09T09:51:32.415Z",
    "dateUpdated": "2026-08-05T11:44:52.040Z",
    "state": "PUBLISHED"
  },
  "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…