bus: fsl-mc-bus: fix KASAN use-after-free in fsl_mc_bus_remove()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.248, 5.15.49, 5.18.6
- CVEs
- CVE-2022-49711
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 19:51 UTC · Revision 1
Source evidence
bus: fsl-mc-bus: fix KASAN use-after-free in fsl_mc_bus_remove()
core-osv · Original sourcePublished 26 Feb 2025, 02:24 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.
osv:CVE-2022-49711
Kernel
Fixed versions: 5.10.248, 5.15.49, 5.18.6
Complete source record
{
"id": "098092384f2c6219e70cc57da11d3b456c5d167935f66bcce4b5dedc134c960f",
"url": "https://osv.dev/vulnerability/CVE-2022-49711",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "bus: fsl-mc-bus: fix KASAN use-after-free in fsl_mc_bus_remove()",
"summary": "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.",
"evidence": "osv:CVE-2022-49711",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.248",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.49",
"evidence": "/affected/1/ranges"
},
{
"value": "5.18.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2022-49711",
"aliases": [
"CVE-2022-49711"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "f93627146f0e371093966ed3d44c065aa077cfb1"
},
{
"fixed": "720ab105df7bf3eee62d2bddd41526b29d07d045"
},
{
"fixed": "ccd1751092341ac120a961835211f9f2e3735963"
},
{
"fixed": "161b68b0a728377aaa10a8e14c70e7734f3c9ff7"
},
{
"fixed": "928ea98252ad75118950941683893cf904541da9"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49711.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.8.0"
},
{
"fixed": "5.10.248"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.49"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.18.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49711.json"
}
}
],
"modified": "2026-10-28T02:30:23.363101284Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/161b68b0a728377aaa10a8e14c70e7734f3c9ff7",
"https://git.kernel.org/stable/c/720ab105df7bf3eee62d2bddd41526b29d07d045",
"https://git.kernel.org/stable/c/928ea98252ad75118950941683893cf904541da9",
"https://git.kernel.org/stable/c/ccd1751092341ac120a961835211f9f2e3735963",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49711.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49711",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49711.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49711",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 489423,
"published_at": "2025-02-26T02:24:28.224+00:00"
}