CVE-2022-48630

crypto: qcom-rng - fix infinite loop on requests not multiple of WORD_SZ

No CVSS score yet EPSS 0.23%

Published 5 Mar 2024 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2022-48630

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-48630 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

crypto: qcom-rng - fix infinite loop on requests not multiple of WORD_SZ

The commit referenced in the Fixes tag removed the 'break' from the else branch in qcom_rng_read(), causing an infinite loop whenever 'max' is not a multiple of WORD_SZ. This can be reproduced e.g. by running:

kcapi-rng -b 67 >/dev/null

There are many ways to fix this without adding back the 'break', but they all seem more awkward than simply adding it back, so do just that.

Tested on a machine with Qualcomm Amberwing processor.

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.1% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 6 Mar 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from a8e32bbb96c25b7ab29b1894dcd45e0b3b08fd9d, before 71a89789552b7faf3ef27969b9bc783fa0df3550
affected from 184f7bd08ce56f003530fc19f160d54e75bf5c9d, before 8be06f62b426801dba43ddf8893952a0e62ab6ae
affected from 0f9b7b8df17525e464294c916acc8194ce38446b, before 233a3cc60e7a8fe0be8cf9934ae7b67ba25a866c
affected from ab9337c7cb6f875b6286440b1adfbeeef2b2b2bd, before 8a06f25f5941c145773204f2f7abef95b4ffb8ce
affected from a680b1832ced3b5fa7c93484248fd221ea0d614b, before 05d4d17475d8d094c519bb51658bc47899c175e3
affected from a680b1832ced3b5fa7c93484248fd221ea0d614b, before 16287397ec5c08aa58db6acf7dbc55470d78087d
affected 485995cbc98a4f77cfd4f8ed4dd7ff8ab262964d
affected from 4.19.236, before 4.19.245
affected from 5.4.187, before 5.4.196
affected from 5.10.108, before 5.10.118
affected from 5.15.31, before 5.15.42
affected from 5.16.17, before 5.17
Other versions: unaffected
Linux
affected 5.17
unaffected before 5.17
unaffected from 4.19.245 up to and including 4.19.*
unaffected from 5.4.196 up to and including 5.4.*
unaffected from 5.10.118 up to and including 5.10.*
unaffected from 5.15.42 up to and including 5.15.*
unaffected from 5.17.10 up to and including 5.17.*
unaffected 5.18 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-48630 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-48630

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-48630
trivy image --scanners vuln IMAGE | grep CVE-2022-48630

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-48630 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.