HighFix available
driver: base: fix UAF when driver_attach failed
Type: advisorySources: OSV
In the Linux kernel, the following vulnerability has been resolved: driver: base: fix UAF when driver_attach failed When driver_attach(drv); failed, the driver_private will be freed. But it has been added to the bus, which caused a UAF. To fix it, we need to delete it from the bus when failed.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.122, 5.15.47, 5.17.15, 5.18.4, 5.4.198
- CVEs
- CVE-2022-49385
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 18:29 UTC · Revision 1
Source evidence
driver: base: fix UAF when driver_attach failed
core-osv · Original sourcePublished 26 Feb 2025, 02:11 UTC
In the Linux kernel, the following vulnerability has been resolved: driver: base: fix UAF when driver_attach failed When driver_attach(drv); failed, the driver_private will be freed. But it has been added to the bus, which caused a UAF. To fix it, we need to delete it from the bus when failed.
osv:CVE-2022-49385
Kernel
Fixed versions: 5.4.198, 5.10.122, 5.15.47, 5.17.15, 5.18.4
Complete source record
{
"id": "b778556ac8a2b13a26f8d655a53636970254524f267e923f2fdf9f60df5f6eca",
"url": "https://osv.dev/vulnerability/CVE-2022-49385",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "driver: base: fix UAF when driver_attach failed",
"summary": "In the Linux kernel, the following vulnerability has been resolved: driver: base: fix UAF when driver_attach failed When driver_attach(drv); failed, the driver_private will be freed. But it has been added to the bus, which caused a UAF. To fix it, we need to delete it from the bus when failed.",
"evidence": "osv:CVE-2022-49385",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.4.198",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.122",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.47",
"evidence": "/affected/1/ranges"
},
{
"value": "5.17.15",
"evidence": "/affected/1/ranges"
},
{
"value": "5.18.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2022-49385",
"aliases": [
"CVE-2022-49385"
],
"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": "190888ac01d059e38ffe77a2291d44cafa9016fb"
},
{
"fixed": "5d709f58c743166fe1c6914b9de0ae8868600d9b"
},
{
"fixed": "823f24f2e329babd0330200d0b74882516fe57f4"
},
{
"fixed": "cdf1a683a01583bca4b618dd16223cbd6e462e21"
},
{
"fixed": "5389101257828d1913d713d9a40acbe14f5961df"
},
{
"fixed": "c059665c84feab46b7173d3a1bf36c2fb7f9df86"
},
{
"fixed": "310862e574001a97ad02272bac0fd13f75f42a27"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49385.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.9.0"
},
{
"fixed": "5.4.198"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.122"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.47"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.17.15"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.18.0"
},
{
"fixed": "5.18.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49385.json"
}
}
],
"modified": "2026-10-28T02:30:51.784591327Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/310862e574001a97ad02272bac0fd13f75f42a27",
"https://git.kernel.org/stable/c/5389101257828d1913d713d9a40acbe14f5961df",
"https://git.kernel.org/stable/c/5d709f58c743166fe1c6914b9de0ae8868600d9b",
"https://git.kernel.org/stable/c/823f24f2e329babd0330200d0b74882516fe57f4",
"https://git.kernel.org/stable/c/c059665c84feab46b7173d3a1bf36c2fb7f9df86",
"https://git.kernel.org/stable/c/cdf1a683a01583bca4b618dd16223cbd6e462e21",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49385.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49385",
"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-49385.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49385",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 520096,
"published_at": "2025-02-26T02:11:20.725+00:00"
}