CVE-2022-48630 json
crypto: qcom-rng - fix infinite loop on requests not multiple of WORD_SZ
published 2024-03-05 2 y ago modified 2026-06-17 4 mo ago also EUVD-2022-51325
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 13%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 4.19.245, 5.4.196, 5.10.118, 5.15.42, 5.17, 5.17.10, 5.18
- linux Debian 14, Debian 13, Debian 12 5.17.11-1
debian advisories DEBIAN-CVE-2022-48630
- linux Ubuntu 20.04 LTS 5.4.0-126.142
- linux Ubuntu 22.04 LTS 5.15.0-47.51
- linux-aws Ubuntu 20.04 LTS 5.4.0-1085.92
- linux-aws Ubuntu 22.04 LTS 5.15.0-1019.23
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1089.97
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1017.23
- linux-gke Ubuntu 22.04 LTS 5.15.0-1015.18
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1033.37
ubuntu advisories UBUNTU-CVE-2022-48630
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-azure SLE Module for Public Cloud 15 SP5, openSUSE Leap 15.5 5.14.21-150500.33.48.1
- kernel-syms-azure SLE Module for Public Cloud 15 SP5, openSUSE Leap 15.5 5.14.21-150500.33.48.1
- kernel-source-azure SLE Module for Public Cloud 15 SP5, openSUSE Leap 15.5 5.14.21-150500.33.48.1
- dtb-aarch64 openSUSE Leap 15.5 5.14.21-150500.55.59.1
- kernel-64kb SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.59.1
- kernel-syms SLE Module for Development Tools 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.59.1
- kernel-obs-qa openSUSE Leap 15.5 5.14.21-150500.55.59.1
- kernel-source SLE Module for Development Tools 15 SP5, SLE Module for Basesystem 15 SP5, openSUSE Leap 15.5 5.14.21-150500.55.59.1
suse advisories SUSE-SU-2024:1490-1SUSE-SU-2024:1480-1SUSE-SU-2024:1466-1SUSE-SU-2024:1321-1SUSE-SU-2024:1320-1
- git.kernel.org/stable/c/71a89789552b7faf3ef27969b9bc783fa0df3550 commit
- git.kernel.org/stable/c/8be06f62b426801dba43ddf8893952a0e62ab6ae commit
- git.kernel.org/stable/c/233a3cc60e7a8fe0be8cf9934ae7b67ba25a866c commit
- git.kernel.org/stable/c/8a06f25f5941c145773204f2f7abef95b4ffb8ce commit
- git.kernel.org/stable/c/05d4d17475d8d094c519bb51658bc47899c175e3 commit
- git.kernel.org/stable/c/16287397ec5c08aa58db6acf7dbc55470d78087d commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-48630 updated cvss 4.4
kernel: crypto: qcom-rng - fix infinite loop on requests not multiple of WORD_SZ
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.23% chance of exploitation in the next 30 days, higher than 13% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-835 Loop with Unreachable Exit Condition
- Technology feeds
References
-
git.kernel.org
/stable/c/71a89789552b7faf3ef27969b9bc783fa0df3550
patch
-
git.kernel.org
/stable/c/8be06f62b426801dba43ddf8893952a0e62ab6ae
patch
-
git.kernel.org
/stable/c/233a3cc60e7a8fe0be8cf9934ae7b67ba25a866c
patch
-
git.kernel.org
/stable/c/8a06f25f5941c145773204f2f7abef95b4ffb8ce
patch
-
git.kernel.org
/stable/c/05d4d17475d8d094c519bb51658bc47899c175e3
patch
-
git.kernel.org
/stable/c/16287397ec5c08aa58db6acf7dbc55470d78087d
patch
Sources
- CVE List CVE-2022-48630
- NVD CVE-2022-48630
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.