CVE-2026-64311 in Linuxinfo

Summary

by MITRE • 07/25/2026

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/[email protected] and https://lore.kernel.org/r/[email protected]

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.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 07/25/2026

The vulnerability addressed in this linux kernel update relates to the removal of the loongson-rng rng_alg implementation within the crypto subsystem. This particular driver represents a deprecated and non-functional component that has been identified as containing multiple security flaws including the absence of forward secrecy and a use-after-free condition. The technical flaw stems from improper handling of synchronization primitives through wait_for_completion_interruptible() which creates exploitable race conditions in the random number generation process. According to CWE standards, this vulnerability manifests as CWE-416 use after free and CWE-327 weak cryptographic randomness, both of which represent serious security concerns in cryptographic implementations.

The operational impact of this vulnerability extends beyond simple functionality degradation to potential cryptographic compromise within systems utilizing loongson processors. The lack of forward security means that previously generated random numbers could be compromised if the system's entropy pool becomes predictable, while the use-after-free condition presents a clear attack surface for privilege escalation or denial of service scenarios. Additionally, the absence of proper integration with the Linux kernel's actual RNG subsystem means that this code provides no meaningful security benefit despite its presence in the kernel tree. This situation aligns with ATT&CK framework techniques such as T1059.001 command and scripting interpreter and T1211 lateral movement through compromised cryptographic components.

The decision to remove rather than patch this component reflects a broader trend in kernel maintenance where deprecated or unused functionality is eliminated entirely rather than maintained with incomplete security fixes. The referenced patches and discussions indicate that similar rng_alg drivers are undergoing the same process of elimination, demonstrating consistent kernel hygiene practices. While the platform may theoretically support true random number generation capabilities, the current implementation fails to meet security requirements for hardware-based randomness. A proper hwrng driver implementation would be required for genuine hardware-based random number generation, but such an implementation would need to properly integrate with the Linux kernel's hardware random number subsystem rather than relying on the broken rng_alg framework that was the subject of this vulnerability. This approach aligns with established security practices that emphasize removing attack surfaces rather than patching them when the underlying functionality provides no legitimate purpose.

The resolution demonstrates proper vulnerability management through elimination of deprecated code rather than attempting to maintain insecure implementations. This strategy reduces the overall kernel attack surface and eliminates potential exploitation vectors while maintaining system stability through removal of non-functional components. The approach also reflects industry best practices for cryptographic implementation where unused or deprecated code is systematically removed to prevent accidental misuse or exploitation of incomplete security features.

Responsible

Linux

Reservation

07/19/2026

Disclosure

07/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!