CVE-2022-48630

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

MEDIUM
5.5
CVSS Score
Published: March 5, 2024 at 11:18 AM UTC
Updated: June 17, 2026 at 05:15 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.16.174.19.236 ≤ v < 4.19.2455.10.108 ≤ v < 5.10.1185.15.31 ≤ v < 5.15.425.16.17 ≤ v < 5.175.17 ≤ v < 5.17.105.17 ≤ v < 5.185.4.187 ≤ v < 5.4.1960f9b7b8df17525e464294c916acc8194ce38446b184f7bd08ce56f003530fc19f160d54e75bf5c9d4.19.236485995cbc98a4f77cfd4f8ed4dd7ff8ab262964d5.10.1085.15.315.16.175.18 rc15.18 rc25.18 rc35.18 rc45.18 rc55.18 rc65.18 rc75.18 rc95.4.187a680b1832ced3b5fa7c93484248fd221ea0d614ba8e32bbb96c25b7ab29b1894dcd45e0b3b08fd9dab9337c7cb6f875b6286440b1adfbeeef2b2b2bd
Vendor states this is fixed in 05d4d17475d8d094c519bb51658bc47899c175e3 (fixed)
Vendor states this is fixed in 16287397ec5c08aa58db6acf7dbc55470d78087d (fixed)
Vendor states this is fixed in 233a3cc60e7a8fe0be8cf9934ae7b67ba25a866c (fixed)
Vendor states this is fixed in 71a89789552b7faf3ef27969b9bc783fa0df3550 (fixed)
Vendor states this is fixed in 8a06f25f5941c145773204f2f7abef95b4ffb8ce (fixed)
Vendor states this is fixed in 8be06f62b426801dba43ddf8893952a0e62ab6ae (fixed)
Vendor states this is fixed in 4.19.245 (unaffected)
Vendor states this is fixed in 5.10.118 (unaffected)
Vendor states this is fixed in 5.15.42 (unaffected)
Vendor states this is fixed in 5.17 (unaffected)
Vendor states this is fixed in 5.17.10 (unaffected)
Vendor states this is fixed in 5.18 (unaffected)
Vendor states this is fixed in 5.4.196 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/05d4d17475d8d094c519bb51658bc47899c175e3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/16287397ec5c08aa58db6acf7dbc55470d78087d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/233a3cc60e7a8fe0be8cf9934ae7b67ba25a866c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/71a89789552b7faf3ef27969b9bc783fa0df3550
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8a06f25f5941c145773204f2f7abef95b4ffb8ce
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8be06f62b426801dba43ddf8893952a0e62ab6ae

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-835

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card