Bug 2347708 (CVE-2022-49711) - CVE-2022-49711 kernel: bus: fsl-mc-bus: fix KASAN use-after-free in fsl_mc_bus_remove()
Summary: CVE-2022-49711 kernel: bus: fsl-mc-bus: fix KASAN use-after-free in fsl_mc_bu...
Keywords:
Status: NEW
Alias: CVE-2022-49711
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:03 UTC by OSIDB Bzimport
Modified: 2025-03-03 03:50 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:03:57 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 13:35:48 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022631-CVE-2022-49711-3cab@gregkh/T

Comment 2 Avinash Hanwate 2025-02-26 17:37:36 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022631-CVE-2022-49711-3cab@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.