# CVE-2024-47733: netfs: Delete subtree of 'fs/netfs' when netfs module exits

- 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.24%, higher than 15% of CVEs (2026-12-02)
- Published: 2024-10-21T12:14:04.544Z
- Modified: 2026-06-17T07:57:38.910Z
- Weaknesses: CWE-772
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

netfs: Delete subtree of 'fs/netfs' when netfs module exits

In netfs_init() or fscache_proc_init(), we create dentry under 'fs/netfs',
but in netfs_exit(), we only delete the proc entry of 'fs/netfs' without
deleting its subtree. This triggers the following WARNING:

==================================================================
remove_proc_entry: removing non-empty directory 'fs/netfs', leaking at least 'requests'
WARNING: CPU: 4 PID: 566 at fs/proc/generic.c:717 remove_proc_entry+0x160/0x1c0
Modules linked in: netfs(-)
CPU: 4 UID: 0 PID: 566 Comm: rmmod Not tainted 6.11.0-rc3 #860
RIP: 0010:remove_proc_entry+0x160/0x1c0
Call Trace:
 <TASK>
 netfs_exit+0x12/0x620 [netfs]
 __do_sys_delete_module.isra.0+0x14c/0x2e0
 do_syscall_64+0x4b/0x110
 entry_SYSCALL_64_after_hwframe+0x76/0x7e
==================================================================

Therefore use remove_proc_subtree() instead of remove_proc_entry() to
fix the above problem.

(As written by CVE List.)

## Affected

- Linux Linux: from 7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab before 603f95cefbee06a31b03137b777f03e3c2163d72; from 7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab before 7a9eaf97d56625e55b31a7beb558e1ee185ca461; from 7eb5b3e3a0a55f2d166ca949ef47ca6e0c704aab before 3c58a9575e02c2b90a3180007d57105ceaa7c246; 6.8 (not affected: before 6.8; from 6.10.13 up to 6.10.*; from 6.11.2 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.8 before 6.10.13; from 6.11 before 6.11.2

## References

- <https://git.kernel.org/stable/c/603f95cefbee06a31b03137b777f03e3c2163d72> (patch)
- <https://git.kernel.org/stable/c/7a9eaf97d56625e55b31a7beb558e1ee185ca461> (patch)
- <https://git.kernel.org/stable/c/3c58a9575e02c2b90a3180007d57105ceaa7c246> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-47733 · Whole record: https://cve.day/CVE-2024-47733.json · Rebuilt by cve.day 2026-11-25T22:58:46.991Z
