Skip to content
Fencer Vulns
medium 5.5

CVE-2021-46972 json

ovl: fix leaked dentry

published 2024-02-27 2 y ago modified 2026-06-17 4 mo ago also EUVD-2021-33620

cvss
5.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 16%
public exploits
0
none known

Summary

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

ovl: fix leaked dentry

Since commit 6815f479ca90 ("ovl: use only uppermetacopy state in ovl_lookup()"), overlayfs doesn't put temporary dentry when there is a metacopy error, which leads to dentry leaks when shutting down the related superblock:

overlayfs: refusing to follow metacopy origin for (/file0) ... BUG: Dentry (____ptrval____){i=3f33,n=file3} still in use (1) [unmount of overlay overlay] ... WARNING: CPU: 1 PID: 432 at umount_check.cold+0x107/0x14d CPU: 1 PID: 432 Comm: unmount-overlay Not tainted 5.12.0-rc5 #1 ... RIP: 0010:umount_check.cold+0x107/0x14d ... Call Trace: d_walk+0x28c/0x950 ? dentry_lru_isolate+0x2b0/0x2b0 ? __kasan_slab_free+0x12/0x20 do_one_tree+0x33/0x60 shrink_dcache_for_umount+0x78/0x1d0 generic_shutdown_super+0x70/0x440 kill_anon_super+0x3e/0x70 deactivate_locked_super+0xc4/0x160 deactivate_super+0xfa/0x140 cleanup_mnt+0x22e/0x370 __cleanup_mnt+0x1a/0x30 task_work_run+0x139/0x210 do_exit+0xb0c/0x2820 ? __kasan_check_read+0x1d/0x30 ? find_held_lock+0x35/0x160 ? lock_release+0x1b6/0x660 ? mm_update_next_owner+0xa20/0xa20 ? reacquire_held_locks+0x3f0/0x3f0 ? __sanitizer_cov_trace_const_cmp4+0x22/0x30 do_group_exit+0x135/0x380 __do_sys_exit_group.isra.0+0x20/0x20 __x64_sys_exit_group+0x3c/0x50 do_syscall_64+0x45/0x70 entry_SYSCALL_64_after_hwframe+0x44/0xae ... VFS: Busy inodes after unmount of overlay. Self-destruct in 5 seconds. Have a nice day...

This fix has been tested with a syzkaller reproducer.

Patch / fix

  • Linux Linux 5.10.35, 5.11.19, 5.12.2, 5.13
  • linux Debian 14, Debian 13, Debian 12 5.10.38-1

debian advisories DEBIAN-CVE-2021-46972

  • kernel RHEL 8 4.18.0-553.8.1.el8_10
  • perf RHEL 8 4.18.0-553.8.1.el8_10
  • bpftool RHEL 8 4.18.0-553.8.1.el8_10
  • kernel-core RHEL 8 4.18.0-553.8.1.el8_10
  • kernel-tools RHEL 8 4.18.0-553.8.1.el8_10
  • python3-perf RHEL 8 4.18.0-553.8.1.el8_10
  • kernel-modules RHEL 8 4.18.0-553.8.1.el8_10
  • kernel-zfcpdump RHEL 8 4.18.0-553.8.1.el8_10

red hat advisories RHSA-2024:4211RHSA-2024:4352

  • kernel-rt AlmaLinux 8 4.18.0-553.8.1.rt7.349.el8_10
  • kernel-rt-kvm AlmaLinux 8 4.18.0-553.8.1.rt7.349.el8_10
  • kernel-rt-core AlmaLinux 8 4.18.0-553.8.1.rt7.349.el8_10
  • kernel-rt-modules AlmaLinux 8 4.18.0-553.8.1.rt7.349.el8_10
  • kernel-rt-debug-kvm AlmaLinux 8 4.18.0-553.8.1.rt7.349.el8_10
  • kernel-rt-debug-core AlmaLinux 8 4.18.0-553.8.1.rt7.349.el8_10
  • kernel-rt-debug-modules AlmaLinux 8 4.18.0-553.8.1.rt7.349.el8_10
  • kernel-rt-modules-extra AlmaLinux 8 4.18.0-553.8.1.rt7.349.el8_10

almalinux advisories ALSA-2024:4352ALSA-2024:4211

  • kernel-rt Rocky Linux 8 4.18.0-553.8.1.rt7.349.el8_10
  • kernel Rocky Linux 8 4.18.0-553.8.1.el8_10

rocky linux advisories RLSA-2024:4352RLSA-2024:4211

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-46972 updated cvss 5.5

kernel: ovl: fix leaked dentry

  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-553.8.1.el8_10, kernel 4.18.0-553.8.1.el8_10, bpftool 4.18.0-553.8.1.el8_10, kernel-core 4.18.0-553.8.1.el8_10, kernel-tools 4.18.0-553.8.1.el8_10, python3-perf 4.18.0-553.8.1.el8_10, +15 more Red Hat Enterprise Linux CRB (v. 8) kernel-debuginfo-common-x86_64 4.18.0-553.8.1.el8_10, kernel-debuginfo-common-aarch64 4.18.0-553.8.1.el8_10, kernel-debuginfo-common-ppc64le 4.18.0-553.8.1.el8_10
    fixed: vendor fix RHSA-2024:4211
  • Red Hat Enterprise Linux NFV (v. 8) kernel-rt 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-kvm 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-core 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-modules 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-debug-kvm 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-debug-core 4.18.0-553.8.1.rt7.349.el8_10, +4 more Red Hat Enterprise Linux RT (v. 8) kernel-rt 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-core 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-modules 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-debug-core 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-debug-modules 4.18.0-553.8.1.rt7.349.el8_10, kernel-rt-modules-extra 4.18.0-553.8.1.rt7.349.el8_10, +2 more
    fixed: vendor fix RHSA-2024:4352
  • Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux BaseOS (v. 8) kernel-headers 4.18.0-553.8.1.el8_10, kernel-cross-headers 4.18.0-553.8.1.el8_10
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.25% chance of exploitation in the next 30 days, higher than 16% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

  • Linux Linux

Classification

Weakness
  • CWE-401 Missing Release of Memory after Effective Lifetime
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.