[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025022631-CVE-2022-49711-3cab@gregkh>
Date: Wed, 26 Feb 2025 03:24:34 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2022-49711: bus: fsl-mc-bus: fix KASAN use-after-free in fsl_mc_bus_remove()
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.
The Linux kernel CVE team has assigned CVE-2022-49711 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.8 with commit f93627146f0e371093966ed3d44c065aa077cfb1 and fixed in 5.15.49 with commit ccd1751092341ac120a961835211f9f2e3735963
Issue introduced in 4.8 with commit f93627146f0e371093966ed3d44c065aa077cfb1 and fixed in 5.18.6 with commit 161b68b0a728377aaa10a8e14c70e7734f3c9ff7
Issue introduced in 4.8 with commit f93627146f0e371093966ed3d44c065aa077cfb1 and fixed in 5.19 with commit 928ea98252ad75118950941683893cf904541da9
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2022-49711
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/bus/fsl-mc/fsl-mc-bus.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/ccd1751092341ac120a961835211f9f2e3735963
https://git.kernel.org/stable/c/161b68b0a728377aaa10a8e14c70e7734f3c9ff7
https://git.kernel.org/stable/c/928ea98252ad75118950941683893cf904541da9
Powered by blists - more mailing lists