Skip to main content
← All vulnerabilities
CVE-2022-48630

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.19.245, 5.4.196, 5.10.118, 5.15.42, 5.17
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 4.19.236 · fixed in 4.19.245; From 5.4.187 · fixed in 5.4.196; From 5.10.108 · fixed in 5.10.118; From 5.15.31 · fixed in 5.15.42; From 5.16.17 · fixed in 5.17

  • Linux Linux

    5.17

References 6

git.kernel.org