Skip to main content
← All vulnerabilities
CVE-2026-93163

hwrng: core - fix rng list on registration error

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.10, 6.6.160, 6.12.110, 6.18.52, 7.2.6
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: hwrng: core - fix rng list on registration error hwrng_register(rng) does the following: 1. Checks if rng has name and read methods set 2. Checks if the name already exists 3. Adds rng to global rng_list 4. May try to set rng to current_rng If step 4 fails, it returns an error. However, it does not remove the rng from rng_list, causing a dangling reference which can result in use-after-free if the caller frees rng, since registration failed. Add a list_del_init() cleanup step.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 4.9.320 · fixed in 4.10

  • Linux Linux

    4.14

  • KernelLinux

    From 4.14.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6

References 6

git.kernel.org