Menu

Star on GitHub · 3.3k

CVE-2022-48629

8.1 · HIGH

In the Linux kernel, the following vulnerability has been resolved: crypto: qcom-rng - ensure buffer for generate is completely filled The generate function in struct rng_alg expects that the des…

Published Mar 5, 2024EPSS 0.53%

Overview

CVE-2022-48629 is a high-severity vulnerability. It was published on March 5, 2024 and has a CVSS 3.1 base score of 8.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.1, rated HIGH. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

crypto: qcom-rng - ensure buffer for generate is completely filled

The generate function in struct rng_alg expects that the destination

buffer is completely filled if the function returns 0. qcom_rng_read()

can run into a situation where the buffer is partially filled with

randomness and the remaining part of the buffer is zeroed since

qcom_rng_generate() doesn't check the return value. This issue can

be reproduced by running the following from libkcapi:

kcapi-rng -b 9000000 > OUTFILE

The generated OUTFILE will have three huge sections that contain all

zeros, and this is caused by the code where the test

'val & PRNG_STATUS_DATA_AVAIL' fails.

Let's fix this issue by ensuring that qcom_rng_read() always returns

with a full buffer if the function returns success. Let's also have

qcom_rng_generate() return the correct value.

Here's some statistics from the ent project

(https://www.fourmilab.ch/random/) that shows

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2022-48629?

CVE-2022-48629 is a high-severity vulnerability. It was published on March 5, 2024 and has a CVSS 3.1 base score of 8.1 (HIGH).

How severe is CVE-2022-48629?

This vulnerability has a CVSS 3.1 base score of 8.1, rated HIGH. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2022-48629?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-48629?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-48629 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2022

View all
LiveWatch live →