All reports
Medium

kernel: hwrng: core - fix rng list on registration error

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-93163

Probability of exploitation in the next 30 days: 0.21%

FIRST EPSS · 2026-11-22

Description

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.

A flaw was found in the hwrng core component of the Linux kernel. When the hwrng_register function fails during the registration process, it does not properly remove the hardware random number generator (RNG) from the global list. This oversight creates a dangling reference, which can lead to a use-after-free vulnerability if the caller subsequently attempts to free the RNG. A local attacker could potentially exploit this to cause a denial of service or achieve arbitrary code execution.