{"id":"CVE-2026-64311","aliases":["CVE-2026-64311"],"related":[],"kind":"vulnerability","state":"published","title":"crypto: loongson - Remove broken and unused loongson-rng","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: loongson - Remove broken and unused loongson-rng\n\nThe loongson-rng rng_alg has several vulnerabilities, including not\nproviding forward security, and a use-after-free bug due to the use of\nwait_for_completion_interruptible().\n\nMeanwhile, the rng_alg framework doesn't really have any purpose in the\nfirst place other than to access the software algorithms crypto/drbg.c\nand crypto/jitterentropy.c.  Hardware-specific rng_algs have no\nin-kernel user, and unlike hwrng there's no feed into the actual Linux\nRNG.  As such, there's really no point to this code.  There are of\ncourse other rng_alg drivers that are similarly unused, but they're\nsimilarly in the process of being phased out, e.g.\nhttps://lore.kernel.org/r/20260529193648.18172-1-ebiggers@kernel.org and\nhttps://lore.kernel.org/r/20260529220430.34135-1-ebiggers@kernel.org\n\nGiven that, there's no point in fixing forward these vulnerabilities,\nand it makes much more sense to simply roll back the addition of this\ndriver.  If this platform provides TRNG (not PRNG) functionality, it\ncould make sense to add a hwrng driver, but it would be quite different.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: loongson - Remove broken and unused loongson-rng\n\nThe loongson-rng rng_alg has several vulnerabilities, including not\nproviding forward security, and a use-after-free bug due to the use of\nwait_for_completion_interruptible().\n\nMeanwhile, the rng_alg framework doesn't really have any purpose in the\nfirst place other than to access the software algorithms crypto/drbg.c\nand crypto/jitterentropy.c.  Hardware-specific rng_algs have no\nin-kernel user, and unlike hwrng there's no feed into the actual Linux\nRNG.  As such, there's really no point to this code.  There are of\ncourse other rng_alg drivers that are similarly unused, but they're\nsimilarly in the process of being phased out, e.g.\nhttps://lore.kernel.org/r/20260529193648.18172-1-ebiggers@kernel.org and\nhttps://lore.kernel.org/r/20260529220430.34135-1-ebiggers@kernel.org\n\nGiven that, there's no point in fixing forward these vulnerabilities,\nand it makes much more sense to simply roll back the addition of this\ndriver.  If this platform provides TRNG (not PRNG) functionality, it\ncould make sense to add a hwrng driver, but it would be quite different.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncrypto: loongson - Eliminar loongson-rng roto y sin usar\n\nEl rng_alg loongson-rng tiene varias vulnerabilidades, incluyendo no proporcionar seguridad hacia adelante, y un error de uso después de liberación debido al uso de wait_for_completion_interruptible().\n\nMientras tanto, el framework rng_alg realmente no tiene ningún propósito en primer lugar aparte de acceder a los algoritmos de software crypto/drbg.c y crypto/jitterentropy.c. Los rng_algs específicos de hardware no tienen un usuario en el kernel, y a diferencia de hwrng no hay alimentación al RNG de Linux real. Como tal, realmente no tiene sentido este código. Hay, por supuesto, otros controladores rng_alg que están igualmente sin usar, pero están igualmente en proceso de ser eliminados gradualmente, p. ej. https://lore.kernel.org/r/20260529193648.18172-1-ebiggers@kernel.org y https://lore.kernel.org/r/20260529220430.34135-1-ebiggers@kernel.org\n\nDado eso, no tiene sentido corregir hacia adelante estas vulnerabilidades, y tiene mucho más sentido simplemente revertir la adición de este controlador. Si esta plataforma proporciona funcionalidad TRNG (no PRNG), podría tener sentido añadir un controlador hwrng, pero sería bastante diferente.","source":"nvd"}],"published":"2026-07-25T08:49:43.318Z","modified":"2026-10-24T13:10:00.147Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"766b2d724c8df071031412eea902b566a0049c31","fixed":"037ec8353711c79353b12d5634e0c9ff363a9efa","status":"affected"},{"type":"git","introduced":"766b2d724c8df071031412eea902b566a0049c31","fixed":"43de8b9f01b7dd2f6ca5360c6bf2f203c02288dc","status":"affected"},{"type":"git","introduced":"766b2d724c8df071031412eea902b566a0049c31","fixed":"af3d1bb9a09daf928fc3f173689fb7904d6a6d4f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.39","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.4","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.18","fixed":"6.18.39"},{"status":"affected","introduced":"6.19","fixed":"7.1.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/037ec8353711c79353b12d5634e0c9ff363a9efa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/43de8b9f01b7dd2f6ca5360c6bf2f203c02288dc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/af3d1bb9a09daf928fc3f173689fb7904d6a6d4f","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64311","url":"https://www.cve.org/CVERecord?id=CVE-2026-64311","licence":"CVE Terms of Use","modified":"2026-08-17T04:53:10.994Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64311","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64311","licence":"Public domain","modified":"2026-10-24T13:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:30.062Z","epss":{"score":0.00157,"percentile":0.05134,"date":"2026-12-01T12:00:22.000Z"}}