CVE-2026-72411 (GCVE-0-2026-72411)

Vulnerability from cvelistv5 – Published: 2026-08-15 05:56 – Updated: 2026-08-17 05:43
VLAI
Title
net: dsa: mxl862xx: fix use-after-free of DSA ports in crc_err_work
Summary
In the Linux kernel, the following vulnerability has been resolved: net: dsa: mxl862xx: fix use-after-free of DSA ports in crc_err_work Upon an MDIO CRC error mxl862xx_crc_err_work_fn() walks the DSA ports and closes the CPU port conduits: dsa_switch_for_each_cpu_port(dp, priv->ds) dev_close(dp->conduit); mxl862xx_remove() unregisters the switch before cancelling this work: set_bit(MXL862XX_FLAG_WORK_STOPPED, &priv->flags); cancel_delayed_work_sync(&priv->stats_work); dsa_unregister_switch(ds); mxl862xx_host_shutdown(priv); dsa_unregister_switch() frees the dsa_port objects. If a CRC error schedules the work during teardown it can run after the ports have been freed and dereference freed memory. Guard the port walk with MXL862XX_FLAG_WORK_STOPPED, which is already set before dsa_unregister_switch(). DSA tears the ports down under rtnl_lock(), so checking the flag under rtnl_lock() means the work either runs before teardown and sees valid ports, or runs afterwards, observes the flag and skips the walk. This mirrors the host_flood_work handler, which skips torn-down ports under rtnl_lock().
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: a319d0c8c8cede3b63538c9f111f84651d078bf6 , < cf52622fbc274eb4ca9a2066b258da2ae3dc7406 (git)
Affected: a319d0c8c8cede3b63538c9f111f84651d078bf6 , < bcb3b8314611ed9cb4ff4bff484ef9b154fd1b83 (git)
guessed Create a notification for this product.
Linux Linux Affected: 7.1
Unaffected: 0 , < 7.1 (semver)
Unaffected: 7.1.5 , ≤ 7.1.* (semver)
Unaffected: 7.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/dsa/mxl862xx/mxl862xx-host.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "cf52622fbc274eb4ca9a2066b258da2ae3dc7406",
              "status": "affected",
              "version": "a319d0c8c8cede3b63538c9f111f84651d078bf6",
              "versionType": "git"
            },
            {
              "lessThan": "bcb3b8314611ed9cb4ff4bff484ef9b154fd1b83",
              "status": "affected",
              "version": "a319d0c8c8cede3b63538c9f111f84651d078bf6",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/dsa/mxl862xx/mxl862xx-host.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "7.1"
            },
            {
              "lessThan": "7.1",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.5",
                  "versionStartIncluding": "7.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "7.1",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: mxl862xx: fix use-after-free of DSA ports in crc_err_work\n\nUpon an MDIO CRC error mxl862xx_crc_err_work_fn() walks the DSA ports\nand closes the CPU port conduits:\n\n\tdsa_switch_for_each_cpu_port(dp, priv-\u003eds)\n\t\tdev_close(dp-\u003econduit);\n\nmxl862xx_remove() unregisters the switch before cancelling this work:\n\n\tset_bit(MXL862XX_FLAG_WORK_STOPPED, \u0026priv-\u003eflags);\n\tcancel_delayed_work_sync(\u0026priv-\u003estats_work);\n\tdsa_unregister_switch(ds);\n\tmxl862xx_host_shutdown(priv);\n\ndsa_unregister_switch() frees the dsa_port objects. If a CRC error\nschedules the work during teardown it can run after the ports have been\nfreed and dereference freed memory.\n\nGuard the port walk with MXL862XX_FLAG_WORK_STOPPED, which is already set\nbefore dsa_unregister_switch(). DSA tears the ports down under\nrtnl_lock(), so checking the flag under rtnl_lock() means the work either\nruns before teardown and sees valid ports, or runs afterwards, observes\nthe flag and skips the walk. This mirrors the host_flood_work handler,\nwhich skips torn-down ports under rtnl_lock()."
        }
      ],
      "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 UAF is in mxl862xx_remove() racing crc_err_work; reachable only via local MDIO driver teardown (module unload, sysfs unbind) after MDIO CRC errors on the on-board management bus, not from remote network packet handling.\nAC:L - An attacker controls the teardown side via repeated sysfs unbind/rmmod while crc_err_work is armed by automatic 2s stats polling or MDIO CRC failures during cancel_delayed_work_sync; both race sides are repeatable without uncontrollable conditions.\nPR:L - Per kernel CNA precedent for driver remove-path work-item UAFs, PR:L applies: crc_err_work is queued autonomously by kernel MDIO/stats paths without elevated capability, and a local user can drive removal via sysfs unbind or module unload.\nUI:N - No victim interaction is required; crc_err_work is scheduled by automatic kernel MDIO activity and the UAF occurs when driver teardown frees dsa_port objects before the still-pending workqueue handler runs.\nS:U - Corruption is confined to kernel heap objects (freed dsa_port and net_device) within the same kernel security authority, with no VM, IOMMU, or namespace boundary crossed.\nC:H - mxl862xx_crc_err_work_fn() walks freed dsa_port structures and reads dp-\u003econduit from reclaimed slab memory before dev_close(), yielding sprayable arbitrary kernel memory disclosure per UAF guidance.\nI:H - dev_close() on a dangling net_device* dereferences netdev ops and mutates device state through pointers read from freed dsa_port memory, providing control-flow hijack and arbitrary write primitives after heap grooming.\nA:H - The use-after-free dereference of freed dsa_port/net_device during dev_close() causes a kernel oops or panic even without deliberate exploitation, repeatable by cycling driver removal against pending crc_err_work."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-17T05:43:51.843Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/cf52622fbc274eb4ca9a2066b258da2ae3dc7406"
        },
        {
          "url": "https://git.kernel.org/stable/c/bcb3b8314611ed9cb4ff4bff484ef9b154fd1b83"
        }
      ],
      "title": "net: dsa: mxl862xx: fix use-after-free of DSA ports in crc_err_work",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-72411",
    "datePublished": "2026-08-15T05:56:33.508Z",
    "dateReserved": "2026-08-09T03:40:39.926Z",
    "dateUpdated": "2026-08-17T05:43:51.843Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-72411",
      "date": "2026-08-23",
      "epss": "0.00154",
      "percentile": "0.05048"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-72411\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-08-15T06:22:14.720\",\"lastModified\":\"2026-08-17T06:19:07.950\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: dsa: mxl862xx: fix use-after-free of DSA ports in crc_err_work\\n\\nUpon an MDIO CRC error mxl862xx_crc_err_work_fn() walks the DSA ports\\nand closes the CPU port conduits:\\n\\n\\tdsa_switch_for_each_cpu_port(dp, priv-\u003eds)\\n\\t\\tdev_close(dp-\u003econduit);\\n\\nmxl862xx_remove() unregisters the switch before cancelling this work:\\n\\n\\tset_bit(MXL862XX_FLAG_WORK_STOPPED, \u0026priv-\u003eflags);\\n\\tcancel_delayed_work_sync(\u0026priv-\u003estats_work);\\n\\tdsa_unregister_switch(ds);\\n\\tmxl862xx_host_shutdown(priv);\\n\\ndsa_unregister_switch() frees the dsa_port objects. If a CRC error\\nschedules the work during teardown it can run after the ports have been\\nfreed and dereference freed memory.\\n\\nGuard the port walk with MXL862XX_FLAG_WORK_STOPPED, which is already set\\nbefore dsa_unregister_switch(). DSA tears the ports down under\\nrtnl_lock(), so checking the flag under rtnl_lock() means the work either\\nruns before teardown and sees valid ports, or runs afterwards, observes\\nthe flag and skips the walk. This mirrors the host_flood_work handler,\\nwhich skips torn-down ports under rtnl_lock().\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/net/dsa/mxl862xx/mxl862xx-host.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"a319d0c8c8cede3b63538c9f111f84651d078bf6\",\"lessThan\":\"cf52622fbc274eb4ca9a2066b258da2ae3dc7406\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"a319d0c8c8cede3b63538c9f111f84651d078bf6\",\"lessThan\":\"bcb3b8314611ed9cb4ff4bff484ef9b154fd1b83\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/net/dsa/mxl862xx/mxl862xx-host.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"7.1\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"7.1\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.5\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"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}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/bcb3b8314611ed9cb4ff4bff484ef9b154fd1b83\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/cf52622fbc274eb4ca9a2066b258da2ae3dc7406\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-17T16:06:50+00:00",
      "cve": "CVE-2026-72411",
      "id": "CVE-2026-72411",
      "initial_release_date": "2026-08-15T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: net: dsa: mxl862xx: fix use-after-free of DSA ports in crc_err_work",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-72411.json",
      "version": "3"
    }
  }
}



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…