{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "95b5fc03c189e4ea5c63785274cc0b77fcc3a818"
            },
            {
              "fixed": "84c831803785c2c3bec5c28c0e8a0b72f6b41d4d"
            },
            {
              "fixed": "bc0e610a6eb0d46e4123fafdbe5e6141d9fff3be"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48854.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: arc_emac: Fix use after free in arc_mdio_probe()\n\nIf bus-\u003estate is equal to MDIOBUS_ALLOCATED, mdiobus_free(bus) will free\nthe \"bus\". But bus-\u003ename is still used in the next line, which will lead\nto a use after free.\n\nWe can fix it by putting the name in a local variable and make the\nbus-\u003ename point to the rodata section \"name\",then use the name in the\nerror message without referring to bus to avoid the uaf.",
  "id": "CVE-2022-48854",
  "modified": "2026-03-13T21:54:22.249533065Z",
  "published": "2024-07-16T12:25:20.477Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/84c831803785c2c3bec5c28c0e8a0b72f6b41d4d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bc0e610a6eb0d46e4123fafdbe5e6141d9fff3be"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48854.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-48854"
    }
  ],
  "schema_version": "1.7.3",
  "summary": "net: arc_emac: Fix use after free in arc_mdio_probe()"
}