CVE Catalog

CVE-2026-93163

Unknown
Published: Translated: NVD NIST

Summary

In the Linux kernel, hwrng_register() adds rng to the global rng_list and may then try to set it as current_rng. If that step fails, it returns an error but does not remove rng from the list, causing a dangling reference and potential use-after-free if the caller frees rng. The fix adds a list_del_init() cleanup step.

Risk Assessment

A use-after-free can lead to memory corruption, system crashes, or potential code execution by an attacker. It affects systems using the hwrng subsystem in the Linux kernel.

Recommendation

Update the Linux kernel to a version containing the hwrng subsystem fix. Until the update, avoid dynamic registration and unregistration of hwrng devices in production environments.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS