# CVE-2021-47470: mm, slub: fix potential use-after-free in slab_debugfs_fops

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2024-05-22T06:23:28.263Z
- Modified: 2026-06-17T04:17:32.923Z
- Weaknesses: CWE-416
- 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 use-after-free in slab_debugfs_fops

When sysfs_slab_add failed, we shouldn't call debugfs_slab_add() for s
because s will be freed soon.  And slab_debugfs_fops will use s later
leading to a use-after-free.

(As written by CVE List.)

## Affected

- Linux Linux: from 64dd68497be76ab4e237cca06f5324e220d0f050 before 159d8cfbd0428d487c53be4722f33cdab0d25d83; from 64dd68497be76ab4e237cca06f5324e220d0f050 before 67823a544414def2a36c212abadb55b23bcda00c; 5.14 (not affected: before 5.14; from 5.14.15 up to 5.14.*; from 5.15 up to *)
- linux linux_kernel: from 5.14 before 5.14.15; 5.15

## References

- <https://git.kernel.org/stable/c/159d8cfbd0428d487c53be4722f33cdab0d25d83> (patch)
- <https://git.kernel.org/stable/c/67823a544414def2a36c212abadb55b23bcda00c> (patch)

## Sources

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

---

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