# CVE-2024-53176: smb: During unmount, ensure all cached dir instances drop their dentry

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.75% (percentile 51, 2026-11-26)
- **Published:** 2024-12-27T13:49:20.518Z
- **Modified:** 2026-08-05T11:44:23.051Z

## Who should check

- Anyone running Linux \>= ebe98f1447bbccf8228335c62d86af02a0ed23f7, \< 73934e535cffbda1490fa97d82690a0f9aa73e94; \>= ebe98f1447bbccf8228335c62d86af02a0ed23f7, \< ff4528bbc82d0d90073751f7b49e7b9e9c7e5638; \>= ebe98f1447bbccf8228335c62d86af02a0ed23f7, \< 548812afd96982a76a93ba76c0582ea670c40d9e; \>= ebe98f1447bbccf8228335c62d86af02a0ed23f7, \< 3fa640d035e5ae526769615c35cb9ed4be6e3662
- Anyone running Linux 6.1

## Description

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

smb: During unmount, ensure all cached dir instances drop their dentry

The unmount process (cifs\_kill\_sb() calling close\_all\_cached\_dirs()) can
race with various cached directory operations, which ultimately results
in dentries not being dropped and these kernel BUGs:

BUG: Dentry ffff88814f37e358{i=1000000000080,n=/}  still in use (2) \[unmount of cifs cifs\]
VFS: Busy inodes after unmount of cifs (cifs)
------------\[ cut here \]------------
kernel BUG at fs/super.c:661!

This happens when a cfid is in the process of being cleaned up when, and
has been removed from the cfids-\>entries list, including:

- Receiving a lease break from the server
- Server reconnection triggers invalidate\_all\_cached\_dirs(), which
  removes all the cfids from the list
- The laundromat thread decides to expire an old cfid.

To solve these problems, dropping the dentry is done in queued work done
in a newly-added cfid\_put\_wq workqueue, and close\_all\_cached\_dirs()
flushes that workqueue after it drops all the dentries of which it's
aware. This is a global workqueue (rather than scoped to a mount), but
the queued work is minimal.

The final cleanup work for cleaning up a cfid is performed via work
queued in the serverclose\_wq workqueue; this is done separate from
dropping the dentries so that close\_all\_cached\_dirs() doesn't block on
any server operations.

Both of these queued works expect to invoked with a cfid reference and
a tcon reference to avoid those objects from being freed while the work
is ongoing.

While we're here, add proper locking to close\_all\_cached\_dirs(), and
locking around the freeing of cfid-\>dentry.

## Affected and fixed versions

- Linux: \>= ebe98f1447bbccf8228335c62d86af02a0ed23f7, \< 73934e535cffbda1490fa97d82690a0f9aa73e94; \>= ebe98f1447bbccf8228335c62d86af02a0ed23f7, \< ff4528bbc82d0d90073751f7b49e7b9e9c7e5638; \>= ebe98f1447bbccf8228335c62d86af02a0ed23f7, \< 548812afd96982a76a93ba76c0582ea670c40d9e; \>= ebe98f1447bbccf8228335c62d86af02a0ed23f7, \< 3fa640d035e5ae526769615c35cb9ed4be6e3662 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- Upgrade Linux to 3fa640d035e5ae526769615c35cb9ed4be6e3662 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-53176. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-53176.md
Affected: Linux >= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < 73934e535cffbda1490fa97d82690a0f9aa73e94; >= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < ff4528bbc82d0d90073751f7b49e7b9e9c7e5638; >= ebe98f1447bbccf8228335c62d86af02a0ed23f7, < 548812afd96982a76a93ba76c0582ea670c40d9e; >= ebe98f1447bbccf8228335c…
Fixed in: Linux 73934e535cffbda1490fa97d82690a0f9aa73e94, Linux 548812afd96982a76a93ba76c0582ea670c40d9e, Linux 3fa640d035e5ae526769615c35cb9ed4be6e3662

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-53176 being exploited?

There is no confirmed exploitation: CVE-2024-53176 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.75% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-53176?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-53176?

Linux \>= ebe98f1447bbccf8228335c62d86af02a0ed23f7, \< 73934e535cffbda1490fa97d82690a0f9aa73e94; \>= ebe98f1447bbccf8228335c62d86af02a0ed23f7, \< ff4528bbc82d0d90073751f7b49e7b9e9c7e5638; \>= ebe98f1447bbccf8228335c62d86af02a0ed23f7, \< 548812afd96982a76a93ba76c0582ea670c40d9e; \>= ebe98f1447bbccf8228335c62d86af02a0ed23f7, \< 3fa640d035e5ae526769615c35cb9ed4be6e3662; Linux 6.1.

### Is there a fix for CVE-2024-53176?

Yes. Fixed in Linux 73934e535cffbda1490fa97d82690a0f9aa73e94, Linux 548812afd96982a76a93ba76c0582ea670c40d9e, Linux 3fa640d035e5ae526769615c35cb9ed4be6e3662. Upgrade Linux to 3fa640d035e5ae526769615c35cb9ed4be6e3662 or later.

### How do I check if I'm affected by CVE-2024-53176?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/73934e535cffbda1490fa97d82690a0f9aa73e94>
- patch: <https://git.kernel.org/stable/c/ff4528bbc82d0d90073751f7b49e7b9e9c7e5638>
- patch: <https://git.kernel.org/stable/c/548812afd96982a76a93ba76c0582ea670c40d9e>
- patch: <https://git.kernel.org/stable/c/3fa640d035e5ae526769615c35cb9ed4be6e3662>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-53176>

HTML: <https://flawdb.com/CVE-2024-53176> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-53176>
