# CVE-2024-42315: exfat: fix potential deadlock on \_\_exfat\_get\_dentry\_set

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 9, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-08-17T09:09:23.779Z
- **Modified:** 2026-06-17T07:49:14.643Z

## Who should check

- Anyone running Linux \>= bd3bdb9e0d656f760b11d0c638d35d7f7068144d, \< 632fb232b6bbf8277edcbe9ecd4b4d98ecb122eb; \>= 92dcd7d6c6068bf4fd35a6f64d606e27d634807e, \< c052f775ee6ccacd3c97e4cf41a2a657e63d4259; \>= d8fe01ad2d8ab33aaf8f2efad9e8f1dae11c4b0c, \< cd1c7858641384191ff7033fb1fc65dfcd559c6f; \>= a3ff29a95fde16906304455aa8c0bd84eb770258, \< a7ac198f8dba791e3144c4da48a5a9b95773ee4b; \>= a3ff29a95fde16906304455aa8c0bd84eb770258, \< 1d1970493c289e3f44b9ec847ed26a5dbdf56a62; \>= a3ff29a95fde16906304455aa8c0bd84eb770258, \< 89fc548767a2155231128cb98726d6d2ea1256c9; \>= 5.10.190, \< 5.10.232; \>= 5.15.150, \< 5.15.175
- Anyone running Linux 6.2

## Description

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

exfat: fix potential deadlock on \_\_exfat\_get\_dentry\_set

When accessing a file with more entries than ES\_MAX\_ENTRY\_NUM, the bh-array
is allocated in \_\_exfat\_get\_entry\_set. The problem is that the bh-array is
allocated with GFP\_KERNEL. It does not make sense. In the following cases,
a deadlock for sbi-\>s\_lock between the two processes may occur.

       CPU0                CPU1
       ----                ----
  kswapd
   balance\_pgdat
    lock(fs\_reclaim)
                      exfat\_iterate
                       lock(&sbi-\>s\_lock)
                       exfat\_readdir
                        exfat\_get\_uniname\_from\_ext\_entry
                         exfat\_get\_dentry\_set
                          \_\_exfat\_get\_dentry\_set
                           kmalloc\_array
                            ...
                            lock(fs\_reclaim)
    ...
    evict
     exfat\_evict\_inode
      lock(&sbi-\>s\_lock)

To fix this, let's allocate bh-array with GFP\_NOFS.

## Affected and fixed versions

- Linux: \>= bd3bdb9e0d656f760b11d0c638d35d7f7068144d, \< 632fb232b6bbf8277edcbe9ecd4b4d98ecb122eb; \>= 92dcd7d6c6068bf4fd35a6f64d606e27d634807e, \< c052f775ee6ccacd3c97e4cf41a2a657e63d4259; \>= d8fe01ad2d8ab33aaf8f2efad9e8f1dae11c4b0c, \< cd1c7858641384191ff7033fb1fc65dfcd559c6f; \>= a3ff29a95fde16906304455aa8c0bd84eb770258, \< a7ac198f8dba791e3144c4da48a5a9b95773ee4b; \>= a3ff29a95fde16906304455aa8c0bd84eb770258, \< 1d1970493c289e3f44b9ec847ed26a5dbdf56a62; \>= a3ff29a95fde16906304455aa8c0bd84eb770258, \< 89fc548767a2155231128cb98726d6d2ea1256c9; \>= 5.10.190, \< 5.10.232; \>= 5.15.150, \< 5.15.175 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 5.15.175 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-42315. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-42315.md
Affected: Linux >= bd3bdb9e0d656f760b11d0c638d35d7f7068144d, < 632fb232b6bbf8277edcbe9ecd4b4d98ecb122eb; >= 92dcd7d6c6068bf4fd35a6f64d606e27d634807e, < c052f775ee6ccacd3c97e4cf41a2a657e63d4259; >= d8fe01ad2d8ab33aaf8f2efad9e8f1dae11c4b0c, < cd1c7858641384191ff7033fb1fc65dfcd559c6f; >= a3ff29a95fde16906304455…
Fixed in: Linux 632fb232b6bbf8277edcbe9ecd4b4d98ecb122eb, Linux 1d1970493c289e3f44b9ec847ed26a5dbdf56a62, Linux 89fc548767a2155231128cb98726d6d2ea1256c9, Linux 5.10.232, Linux 5.15.175

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-42315 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= bd3bdb9e0d656f760b11d0c638d35d7f7068144d, \< 632fb232b6bbf8277edcbe9ecd4b4d98ecb122eb; \>= 92dcd7d6c6068bf4fd35a6f64d606e27d634807e, \< c052f775ee6ccacd3c97e4cf41a2a657e63d4259; \>= d8fe01ad2d8ab33aaf8f2efad9e8f1dae11c4b0c, \< cd1c7858641384191ff7033fb1fc65dfcd559c6f; \>= a3ff29a95fde16906304455aa8c0bd84eb770258, \< a7ac198f8dba791e3144c4da48a5a9b95773ee4b; \>= a3ff29a95fde16906304455aa8c0bd84eb770258, \< 1d1970493c289e3f44b9ec847ed26a5dbdf56a62; \>= a3ff29a95fde16906304455aa8c0bd84eb770258, \< 89fc548767a2155231128cb98726d6d2ea1256c9; \>= 5.10.190, \< 5.10.232; \>= 5.15.150, \< 5.15.175; Linux 6.2.

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

Yes. Fixed in Linux 632fb232b6bbf8277edcbe9ecd4b4d98ecb122eb, Linux 1d1970493c289e3f44b9ec847ed26a5dbdf56a62, Linux 89fc548767a2155231128cb98726d6d2ea1256c9, Linux 5.10.232, Linux 5.15.175. Upgrade Linux to 5.15.175 or later.

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

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/a7ac198f8dba791e3144c4da48a5a9b95773ee4b>
- patch: <https://git.kernel.org/stable/c/1d1970493c289e3f44b9ec847ed26a5dbdf56a62>
- patch: <https://git.kernel.org/stable/c/89fc548767a2155231128cb98726d6d2ea1256c9>
- other: <https://git.kernel.org/stable/c/632fb232b6bbf8277edcbe9ecd4b4d98ecb122eb>
- other: <https://git.kernel.org/stable/c/c052f775ee6ccacd3c97e4cf41a2a657e63d4259>
- other: <https://git.kernel.org/stable/c/cd1c7858641384191ff7033fb1fc65dfcd559c6f>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## 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-42315>

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