{"id":"CVE-2022-48854","aliases":["CVE-2022-48854"],"related":[],"kind":"vulnerability","state":"published","title":"net: arc_emac: Fix use after free in arc_mdio_probe()","summary":"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->state is equal to MDIOBUS_ALLOCATED, mdiobus_free(bus) will free\nthe \"bus\". But bus->name 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->name point to the rodata section \"name\",then use the name in the\nerror message without referring to bus to avoid the uaf.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->state is equal to MDIOBUS_ALLOCATED, mdiobus_free(bus) will free\nthe \"bus\". But bus->name 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->name point to the rodata section \"name\",then use the name in the\nerror message without referring to bus to avoid the uaf.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: arc_emac: corrige el use after free en arc_mdio_probe() Si bus-&gt;state es igual a MDIOBUS_ALLOCATED, mdiobus_free(bus) liberará el \"bus\". Pero bus-&gt;name todavía se usa en la siguiente línea, lo que conducirá a un uso posterior a free. Podemos solucionarlo poniendo el nombre en una variable local y haciendo que bus-&gt;nombre apunte a la sección \"nombre\" de rodata, luego use el nombre en el mensaje de error sin hacer referencia al bus para evitar el uaf.","source":"nvd"}],"published":"2024-07-16T12:25:20.477Z","modified":"2026-06-17T05:16:23.283Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"95b5fc03c189e4ea5c63785274cc0b77fcc3a818","fixed":"84c831803785c2c3bec5c28c0e8a0b72f6b41d4d","status":"affected"},{"type":"git","introduced":"95b5fc03c189e4ea5c63785274cc0b77fcc3a818","fixed":"bc0e610a6eb0d46e4123fafdbe5e6141d9fff3be","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.16","status":"unaffected"},{"type":"semver","introduced":"5.16.15","lastAffected":"5.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.16","fixed":"5.16.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/84c831803785c2c3bec5c28c0e8a0b72f6b41d4d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bc0e610a6eb0d46e4123fafdbe5e6141d9fff3be","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:25:55.573Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-48854","url":"https://www.cve.org/CVERecord?id=CVE-2022-48854","licence":"CVE Terms of Use","modified":"2026-05-11T18:48:26.100Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-48854","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48854","licence":"Public domain","modified":"2026-06-17T05:16:23.283Z"}],"updatedAt":"2026-11-25T22:58:19.919Z","epss":{"score":0.00202,"percentile":0.10707,"date":"2026-12-02T12:00:21.000Z"}}