Description
In the Linux kernel, the following vulnerability has been resolved:

crypto: loongson - Remove broken and unused loongson-rng

The loongson-rng rng_alg has several vulnerabilities, including not
providing forward security, and a use-after-free bug due to the use of
wait_for_completion_interruptible().

Meanwhile, the rng_alg framework doesn't really have any purpose in the
first place other than to access the software algorithms crypto/drbg.c
and crypto/jitterentropy.c. Hardware-specific rng_algs have no
in-kernel user, and unlike hwrng there's no feed into the actual Linux
RNG. As such, there's really no point to this code. There are of
course other rng_alg drivers that are similarly unused, but they're
similarly in the process of being phased out, e.g.
https://lore.kernel.org/r/20260529193648.18172-1-ebiggers@kernel.org and
https://lore.kernel.org/r/20260529220430.34135-1-ebiggers@kernel.org

Given that, there's no point in fixing forward these vulnerabilities,
and it makes much more sense to simply roll back the addition of this
driver. If this platform provides TRNG (not PRNG) functionality, it
could make sense to add a hwrng driver, but it would be quite different.
Published: 2026-07-25
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The loongson‑rng driver implements a software random number generator in the Linux kernel but suffers from multiple weaknesses, including a lack of forward security and a use‑after‑free bug triggered by wait_for_completion_interruptible(). The bug can corrupt kernel memory if the driver’s RNG functions are invoked, potentially leading to data corruption, denial of service, or privilege escalation within the kernel context. The driver also does not feed entropy into the core kernel RNG subsystem, rendering it effectively useless for system operation and exposing the system to the memory corruption risk.

Affected Systems

This vulnerability is present only in Linux kernel releases that still include the loongson‑rng algorithm. Any kernel built for Loongson processors which has not yet rolled back the driver contains the flaw. No specific kernel version numbers are named, but any kernel snapshot that has the implementation before its removal is affected.

Risk and Exploitability

The EPSS score indicates an exploitation probability of less than 1%, and the vulnerability has not been listed in the CISA KEV catalog. The CVSS score of 7.8 denotes high severity. Based on the description, it is inferred that the attack vector is local, requiring the ability to trigger RNG output via the loongson‑rng interface, which would typically be limited to users with local or root access. Because the driver’s API is tied to kernel‑level RNG calls and is not exposed to network interfaces, there is no documented remote exploitation path. An attacker exploiting the use‑after‑free could cause kernel memory corruption, potentially leading to denial of service or arbitrary code execution within the kernel if memory is overwritten with malicious content. The exposure window will shorten as the driver is removed in newer kernels.

Generated by OpenCVE AI on August 5, 2026 at 00:48 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel release in which the loongson‑rng driver has been removed.
  • If a kernel upgrade cannot be performed immediately, configure the system to blacklist or disable the loongson‑rng module so it will not load.
  • If the platform offers a hardware random number generator, install and enable an appropriate hwrng driver and disable the software RNG implementation.

Generated by OpenCVE AI on August 5, 2026 at 00:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 04 Aug 2026 15:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Wed, 29 Jul 2026 12:15:00 +0000


Tue, 28 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Mon, 27 Jul 2026 05:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: crypto: loongson - Remove broken and unused loongson-rng The loongson-rng rng_alg has several vulnerabilities, including not providing forward security, and a use-after-free bug due to the use of wait_for_completion_interruptible(). Meanwhile, the rng_alg framework doesn't really have any purpose in the first place other than to access the software algorithms crypto/drbg.c and crypto/jitterentropy.c. Hardware-specific rng_algs have no in-kernel user, and unlike hwrng there's no feed into the actual Linux RNG. As such, there's really no point to this code. There are of course other rng_alg drivers that are similarly unused, but they're similarly in the process of being phased out, e.g. https://lore.kernel.org/r/20260529193648.18172-1-ebiggers@kernel.org and https://lore.kernel.org/r/20260529220430.34135-1-ebiggers@kernel.org Given that, there's no point in fixing forward these vulnerabilities, and it makes much more sense to simply roll back the addition of this driver. If this platform provides TRNG (not PRNG) functionality, it could make sense to add a hwrng driver, but it would be quite different.
Title crypto: loongson - Remove broken and unused loongson-rng
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:40:49.542Z

Reserved: 2026-07-19T15:36:31.779Z

Link: CVE-2026-64311

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:12.263

Modified: 2026-08-11T15:00:57.447

Link: CVE-2026-64311

cve-icon Redhat

Severity :

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64311 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T01:00:07Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference