CVE-2021-47470

mm, slub: fix potential use-after-free in slab_debugfs_fops

State
Published
Severity
Not scored
Published
May 22, 2024
Updated
May 11, 2026
Reserved
May 22, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 64dd68497be76ab4e237cca06f5324e220d0f050 to before 159d8cfbd0428d487c53be4722f33cdab0d25d83Affected
  • 64dd68497be76ab4e237cca06f5324e220d0f050 to before 67823a544414def2a36c212abadb55b23bcda00cAffected
LinuxLinux
  • 5.14Affected
  • before 5.14Not affected
  • 5.14.15 through 5.14.*Not affected
  • 5.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.