CVE-2021-47470Published May 22, 2024 · May 22Updated Jun 17
mm, slub: fix potential use-after-free in slab_debugfs_fops
Linux
High7.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel has a potential use-after-free in slab_debugfs_fops. If sysfs_slab_add fails but debugfs_slab_add is still called, the slab object can be freed and later used by slab_debugfs_fops. The input does not specify an attack path or access requirements.
Engineers running the Linux kernel should check their systems; affected versions are not specified.