CVE-2026-93163 PUBLISHED

hwrng: core - fix rng list on registration error

Assigner: Linux
Reserved: 17.09.2026 Published: 17.09.2026 Updated: 17.09.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 2bbb6983887fefc8026beab01198d30f47b7bd22 to de4f1bcb61a73cc896decdbd27d61a34add93b53 (excl.)
  • affected from 2bbb6983887fefc8026beab01198d30f47b7bd22 to cf293c9c7424de0d04b51367d07f40570ce80231 (excl.)
  • affected from 2bbb6983887fefc8026beab01198d30f47b7bd22 to bee8d1fcdc8f389b595b0a4cf6fe8440f499458a (excl.)
  • affected from 2bbb6983887fefc8026beab01198d30f47b7bd22 to 3a5834db2b1ce25649f330e78efe1ccde78967fd (excl.)
  • Version 42802952a2725f85f7e36ee3b29593af5fe87197 is affected
  • affected from 4.9.320 to 4.10 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 4.14 is affected
  • unaffected from 0 to 4.14 (excl.)
  • unaffected from 6.12.110 to 6.12.* (incl.)
  • unaffected from 6.18.52 to 6.18.* (incl.)
  • unaffected from 7.2.6 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References