CVE-2022-49711

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

High · published February 26, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
18.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00275 · 18.9th percentile
Published
2025-02-26T02:24Z
EPSS history
Timeline
  • 26 FEB 02:24Z
    bus: fsl-mc-bus: fix KASAN use-after-free in fsl_mc_bus_remove()
    cvelistv5