CVE-2022-49385

driver: base: fix UAF when driver_attach failed

HIGH
7.8
CVSS Score
Published: February 26, 2025 at 02:11 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.9 ≤ v < 5.10.1223.9 ≤ v < 5.15.473.9 ≤ v < 5.17.153.9 ≤ v < 5.18.43.9 ≤ v < 5.193.9 ≤ v < 5.4.1985.11 ≤ v < 5.15.475.16 ≤ v < 5.17.155.18 ≤ v < 5.18.45.5 ≤ v < 5.10.122190888ac01d059e38ffe77a2291d44cafa9016fb3.9
Vendor states this is fixed in 310862e574001a97ad02272bac0fd13f75f42a27 (fixed)
Vendor states this is fixed in 5389101257828d1913d713d9a40acbe14f5961df (fixed)
Vendor states this is fixed in 5d709f58c743166fe1c6914b9de0ae8868600d9b (fixed)
Vendor states this is fixed in 823f24f2e329babd0330200d0b74882516fe57f4 (fixed)
Vendor states this is fixed in c059665c84feab46b7173d3a1bf36c2fb7f9df86 (fixed)
Vendor states this is fixed in cdf1a683a01583bca4b618dd16223cbd6e462e21 (fixed)
Vendor states this is fixed in 3.9 (unaffected)
Vendor states this is fixed in 5.10.122 (unaffected)
Vendor states this is fixed in 5.15.47 (unaffected)
Vendor states this is fixed in 5.17.15 (unaffected)
Vendor states this is fixed in 5.18.4 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.4.198 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/310862e574001a97ad02272bac0fd13f75f42a27
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5389101257828d1913d713d9a40acbe14f5961df
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5d709f58c743166fe1c6914b9de0ae8868600d9b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/823f24f2e329babd0330200d0b74882516fe57f4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c059665c84feab46b7173d3a1bf36c2fb7f9df86
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cdf1a683a01583bca4b618dd16223cbd6e462e21

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card