
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-48629 affects the Linux kernel's Qualcomm Random Number Generator (qcom-rng) implementation. The vulnerability was discovered in the crypto subsystem where the generate function in struct rng_alg could leave the destination buffer partially filled with randomness while the remaining part is zeroed, due to qcom_rng_generate() not checking return values properly (Kernel Patch).
The vulnerability exists in the qcom_rng_read() function where the buffer could be partially filled when the test 'val & PRNG_STATUS_DATA_AVAIL' fails. This results in sections of zeros in the output, significantly reducing the randomness quality. Testing showed the entropy dropped to 7.811590 bits per byte with a chi-square distribution that would be exceeded less than 0.01% of the time, indicating non-random output. The CVSS v3.1 score is 5.5 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).
The vulnerability affects the quality of random numbers generated by the system, potentially impacting cryptographic operations that rely on this randomness. When exploited, it results in predictable patterns in the random number output, with large sections containing zeros, which could weaken cryptographic operations depending on this RNG (Kernel Patch).
The issue can be reproduced using libkcapi by running 'kcapi-rng -b 9000000 > OUTFILE', which generates output files containing three large sections of zeros. The vulnerability requires local access and low privileges to exploit (NVD).
The vulnerability has been patched by ensuring qcom_rng_read() always returns with a full buffer on success and making qcom_rng_generate() return the correct value. After applying the patch, the entropy improved to 7.999979 bits per byte with a more random distribution. The fix has been implemented across multiple Linux kernel versions (Kernel Patch).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."