CVE-2022-49711
JSON

7.8high

bus: fsl-mc-bus: fix KASAN use-after-free in fsl_mc_bus_remove()

Severity
7.8high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.27% (higher than 21% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: bus: fsl-mc-bus: fix KASAN use-after-free in fsl_mc_bus_remove() In fsl_mc_bus_remove(), mc->root_mc_bus_dev->mc_io is passed to fsl_destroy_mc_io(). However, mc->root_mc_bus_dev is already freed in fsl_mc_device_remove(). Then reference to mc->root_mc_bus_dev->mc_io triggers KASAN use-after-free. To avoid the use-after-free, keep the reference to mc->root_mc_bus_dev->mc_io in a local variable and pass to fsl_destroy_mc_io(). This patch needs rework to apply to kernels older than v5.15.

Affected

Product or packageVersionsReported by
Linux Linuxfrom f93627146f0e371093966ed3d44c065aa077cfb1 before 720ab105df7bf3eee62d2bddd41526b29d07d045, from f93627146f0e371093966ed3d44c065aa077cfb1 before ccd1751092341ac120a961835211f9f2e3735963, from f93627146f0e371093966ed3d44c065aa077cfb1 before 161b68b0a728377aaa10a8e14c70e7734f3c9ff7, from f93627146f0e371093966ed3d44c065aa077cfb1 before 928ea98252ad75118950941683893cf904541da9, 4.8
Not affected: before 4.8, from 5.10.248 up to 5.10.*, from 5.15.49 up to 5.15.*, from 5.18.6 up to 5.18.*, from 5.19 up to *
CVE List
linux linux_kernelfrom 4.8 before 5.10.248, from 5.11 before 5.15.49, from 5.16 before 5.18.6, 5.19NVD

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: bus: fsl-mc-bus: fix KASAN use-after-free in fsl_mc_bus_remove() In fsl_mc_bus_remove(), mc->root_mc_bus_dev->mc_io is passed to fsl_destroy_mc_io(). However, mc->root_mc_bus_dev is already freed in fsl_mc_device_remove(). Then reference to mc->root_mc_bus_dev->mc_io triggers KASAN use-after-free. To avoid the use-after-free, keep the reference to mc->root_mc_bus_dev->mc_io in a local variable and pass to fsl_destroy_mc_io(). This patch needs rework to apply to kernels older than v5.15.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bus: fsl-mc-bus: arregla el use-after-free de KASAN en fsl_mc_bus_remove() En fsl_mc_bus_remove(), mc->root_mc_bus_dev->mc_io se pasa a fsl_destroy_mc_io(). Sin embargo, mc->root_mc_bus_dev ya está liberado en fsl_mc_device_remove(). Entonces, la referencia a mc->root_mc_bus_dev->mc_io activa el use-after-free de KASAN. Para evitar el use-after-free, mantén la referencia a mc->root_mc_bus_dev->mc_io en una variable local y pásala a fsl_destroy_mc_io(). Este parche necesita ser rediseñado para que se aplique a kernels anteriores a la v5.15.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-49711 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-49711 changed 2026-06-17Public domain