Critical Vulnerability in Linux Package: Sleeping in Atomic Context

linux Updated 02 Oct 2025

Summary

17/09/2025
N/A
Yes i
Unrated
Not published

CVE-2022-50371: In the Linux kernel, the following vulnerability has been resolved: led: qcom-lpg: Fix sleeping in atomic lpg_brighness_set() function can sleep, while led's brightness_set() callback must be non-blocking. Affects linux versions < 6.1.4-1. Fixed in 6.1.4-1. 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 Penetration testing for web, API and mobile 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 package is a core component of the Debian operating system, providing essential functionalities for managing hardware and system resources. It serves as the foundation for various applications and services, ensuring efficient operation and performance. This vulnerability specifically affects the LED driver in the Linux kernel, which is responsible for controlling LED brightness. The issue arises from the 'lpg_brightness_set()' function, which can sleep in an atomic context, leading to potential system instability.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the LED driver related to the Qualcomm Low Power GPIO (lpg) functionality. The 'lpg_brightness_set()' function is designed to adjust LED brightness but is incorrectly implemented to allow sleeping in an atomic context, which is not permitted. This can lead to system crashes or unexpected behavior, as the kernel expects non-blocking operations in this context. The vulnerability is documented under CVE-2022-50371 and affects multiple Debian versions, including Debian 12, 13, and 14.

How To Fix

Minimum fixed version

6.1.4-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the available patch by updating to the fixed version of the Linux package.

Conclusion

The vulnerability CVE-2022-50371 in the Linux kernel poses a significant risk due to its potential to cause system instability. It is essential for users to update to the patched version of the Linux package to mitigate this risk. Regular monitoring and timely updates are crucial for maintaining system security.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-50371 is a vulnerability in the Linux kernel related to the LED driver, which can cause system instability due to improper handling of atomic context.

You can use the Vulert platform to check if your application is affected by this vulnerability. Visit Vulert Scanner to analyze your manifest file.

If exploited, this vulnerability can lead to system crashes, unexpected behavior, and potential data loss due to improper handling of LED brightness adjustments.

Yes, a patch is available. Users should update to version 6.1.4-1 or later of the Linux package to mitigate this vulnerability.

While there are no specific workarounds, it is advisable to monitor your system closely and apply the patch as soon as possible to ensure system stability.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.1.4-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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