Latent Entropy Vulnerability in gcc-plugins

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001951: gcc-plugins: latent_entropy: use /dev/urandom. Affects Kernel versions >= 38addce8b600ca335dc86fa3d48c890f1c6fa1f4, < cc21ae932656483b07982afcec7e38a5bd6acc0c. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

gcc-plugins is a collection of plugins for the GNU Compiler Collection (GCC) that provide additional functionality and analysis capabilities. These plugins can be used to enhance the compilation process and perform various optimizations. The latent_entropy plugin, included in gcc-plugins, aims to improve the entropy of random number generation in the Linux Kernel. However, a vulnerability has been discovered in the plugin's usage of /dev/urandom.

Vulnerability Detail

The latent_entropy plugin in gcc-plugins uses /dev/urandom for random number generation. However, /dev/urandom may not provide sufficient entropy in certain scenarios, potentially leading to weak random numbers. This vulnerability could be exploited by an attacker to predict or manipulate the random numbers generated by the Linux Kernel, compromising the security of cryptographic operations, key generation, and other sensitive processes.

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 temporary workaround is to use a different source of random numbers for the latent_entropy plugin. One possible alternative is to modify the plugin's code to use /dev/random instead of /dev/urandom. However, this workaround may impact performance and should only be considered as a temporary solution until the Kernel can be updated.

Conclusion

The latent_entropy vulnerability in gcc-plugins exposes a weakness in the random number generation of the Linux Kernel. It is crucial to update the Kernel to the recommended version or apply the temporary workaround to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

gcc-plugins is a collection of plugins for the GNU Compiler Collection (GCC) that provide additional functionality and analysis capabilities.

The latent_entropy plugin is a part of gcc-plugins and aims to improve the entropy of random number generation in the Linux Kernel.

/dev/urandom is a special file in Unix-like operating systems that provides a source of random numbers. It is often used for cryptographic operations and other security-sensitive processes.

This vulnerability could allow an attacker to predict or manipulate the random numbers generated by the Linux Kernel, compromising the security of cryptographic operations, key generation, and other sensitive processes.

To fix this vulnerability, update the Linux Kernel to version v5.10.112 or later. This ensures that the latent_entropy plugin uses a more secure source of random numbers.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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