Deadlock in driver core's __device_attach in Linux Kernel

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1002977: driver core: fix deadlock in __device_attach. Affects Kernel versions >= 765230b5f084863183aa8adb3405ab3f32c0b16e, < d53a227bfcd5160ce1b61d9954901968a20651e7. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux Kernel is the core component of the Linux operating system, responsible for managing system resources and providing an interface for software to interact with the hardware. The driver core is a subsystem within the Linux Kernel that handles device drivers and their interactions with the hardware. It provides mechanisms for device detection, initialization, and management. The vulnerability in the driver core's __device_attach function can lead to a deadlock situation, causing the system to become unresponsive.

Vulnerability Detail

The vulnerability arises from a deadlock condition in the __device_attach function of the driver core. A deadlock occurs when two or more processes or threads are unable to proceed because each is waiting for the other to release a resource. In this case, the deadlock can occur when multiple devices are being attached simultaneously, leading to a circular dependency in the locking order. This can result in a system freeze or crash, impacting the availability and reliability of the system.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If updating the Linux Kernel is not immediately feasible, a possible workaround is to avoid attaching multiple devices simultaneously. By ensuring that only one device is being attached at a time, the circular dependency and potential deadlock can be avoided. However, this workaround may not be practical in all scenarios and should be considered temporary until the kernel is updated.

Conclusion

The vulnerability in the driver core's __device_attach function of the Linux Kernel can lead to a deadlock situation, causing the system to become unresponsive. It is recommended to update the Linux Kernel to the latest version available to fix this vulnerability. If immediate update is not possible, a temporary workaround of avoiding simultaneous device attachments can be employed. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The driver core is a subsystem within the Linux Kernel that handles device drivers and their interactions with the hardware. It provides mechanisms for device detection, initialization, and management.

A deadlock is a situation where two or more processes or threads are unable to proceed because each is waiting for the other to release a resource. This can result in a system freeze or crash.

The vulnerability can lead to a deadlock situation in the Linux Kernel, causing the system to become unresponsive. This can impact the availability and reliability of the system.

To fix the vulnerability, users should update their Linux Kernel to the latest version available. This can be done by downloading the updated kernel source code from the official Linux Kernel repository and compiling it according to the provided instructions.

If updating the Linux Kernel is not immediately feasible, a possible workaround is to avoid attaching multiple devices simultaneously. By ensuring that only one device is being attached at a time, the circular dependency and potential deadlock can be avoided.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback