# CVE-2021-47466: mm, slub: fix potential memoryleak in kmem_cache_open()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-05-22T06:23:25.674Z
- Modified: 2026-06-17T04:17:32.470Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

mm, slub: fix potential memoryleak in kmem_cache_open()

In error path, the random_seq of slub cache might be leaked.  Fix this
by using __kmem_cache_release() to release all the relevant resources.

(As written by CVE List.)

## Affected

- Linux Linux: from 210e7a43fa905bccafa9bb5966fba1d71f33eb8b before 4f5d1c29cfab5cb0ab885059818751bdef32e2bb; from 210e7a43fa905bccafa9bb5966fba1d71f33eb8b before 568f906340b43120abd6fcc67c37396482f85930; from 210e7a43fa905bccafa9bb5966fba1d71f33eb8b before 42b81946e3ac9ea0372ba16e05160dc11e02694f; from 210e7a43fa905bccafa9bb5966fba1d71f33eb8b before 9037c57681d25e4dcc442d940d6dbe24dd31f461; 4.8 (not affected: before 4.8; from 5.4.156 up to 5.4.*; from 5.10.76 up to 5.10.*; from 5.14.15 up to 5.14.*; from 5.15 up to *)
- linux linux_kernel: from 4.8 before 5.4.156; from 5.5 before 5.10.76; from 5.11 before 5.14.15; 5.15

## References

- <https://git.kernel.org/stable/c/4f5d1c29cfab5cb0ab885059818751bdef32e2bb> (patch)
- <https://git.kernel.org/stable/c/568f906340b43120abd6fcc67c37396482f85930> (patch)
- <https://git.kernel.org/stable/c/42b81946e3ac9ea0372ba16e05160dc11e02694f> (patch)
- <https://git.kernel.org/stable/c/9037c57681d25e4dcc442d940d6dbe24dd31f461> (patch)

## Sources

- CVE List: [CVE-2021-47466](https://www.cve.org/CVERecord?id=CVE-2021-47466), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47466](https://nvd.nist.gov/vuln/detail/CVE-2021-47466), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47466 · Whole record: https://cve.day/CVE-2021-47466.json · Rebuilt by cve.day 2026-11-25T22:58:08.872Z
