CVE-2022-49385
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-49385 is a Use-After-Free (UAF) vulnerability discovered in the Linux kernel's driver core. The vulnerability was disclosed and patched in 2022, affecting the driver base subsystem. The issue occurs when driverattach(drv) fails, causing the driverprivate to be freed while it remains added to the bus, resulting in a use-after-free condition (NVD).

Technical details

The vulnerability exists in the busadddriver function within the Linux kernel's driver core. When driverattach(drv) fails, the driverprivate structure is freed, but it remains linked to the bus, leading to a use-after-free condition. The CVSS v3.1 base score for this vulnerability is 7.8 (High), with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CISA-ADP).

Impact

The vulnerability could potentially lead to privilege escalation, system crashes, or arbitrary code execution in the context of the kernel. The high CVSS score indicates significant potential impact on the confidentiality, integrity, and availability of the affected system (NVD).

Mitigation and workarounds

The vulnerability has been patched by adding code to delete the driverprivate from the bus when driverattach fails. The fix involves modifying the error handling path in the busadddriver function to call klistdel(&priv->knodebus) before freeing the driver_private structure (Kernel Commit).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40205HIGH7.8
  • Linux KernelLinux Kernel
  • linux-hwe-6.14
NoYesNov 12, 2025
CVE-2025-40211HIGH7.1
  • Linux KernelLinux Kernel
  • linux-azure-fde-6.14
NoYesNov 21, 2025
CVE-2025-40206MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesNov 12, 2025
CVE-2025-40210MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-tools-libs-devel
NoYesNov 21, 2025
CVE-2025-40212N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesNov 24, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management