Look up another CVE · open CVE-2024-53147 in the interactive tracker
CVE-2024-53147
exfat: fix out-of-bounds access of directory entries
Published 2024-12-24 (22 months ago) by the Linux kernel CNA. Subsystem fs/exfat. Debian urgency: not yet assigned.
What to do, per Debian release
Debian's own status for CVE-2024-53147 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source
| Release | Status | Version | What this means |
|---|---|---|---|
| Debian 12bookworm | vulnerable | 6.1.190-1 | No fix published anywhere yet, neither in Debian nor upstream for the series bookworm tracks. Watch the Debian tracker page for this CVE. Advisories for bookworm have historically landed a median of 23 days after publication. |
| Debian 13trixie | fixed | 6.12.3-1 | Update the kernel and reboot. Fixed in 6.12.3-1. A running kernel keeps the old code until the machine restarts. |
| Debian 14forky | fixed | 6.12.3-1 | Update the kernel and reboot. Fixed in 6.12.3-1. A running kernel keeps the old code until the machine restarts. |
| Debian unstablesid | fixed | 6.12.3-1 | Update the kernel and reboot. Fixed in 6.12.3-1. A running kernel keeps the old code until the machine restarts. |
The vulnerability
What the bug is
In the case of the directory size is greater than or equal to the cluster size, if start_clu becomes an EOF cluster(an invalid cluster) due to file system corruption, then the directory entry where ei->hint_femp.eidx hint is outside the directory, resulting in an out-of-bounds access, which may cause further file system corruption. This commit adds a check for start_clu, if it is an invalid cluster, the file or directory will be treated as empty.
Where it lives
The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.
fs/exfat/namei.c
- What this is
- EXFAT FILE SYSTEMMAINTAINERS section matched on fs/exfat/ · linux-fsdevel@vger.kernel.org · Maintained
- Kernel module
- exfat
Check it on the machine
grep -w CONFIG_EXFAT_FS /boot/config-$(uname -r)Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.
lsmod | grep -w exfatPrints a line if that module is loaded right now, and nothing if it is not. One that is not loaded can still be loaded later by anything that needs it.
Show whether Debian builds this, per release
Debian builds this as a loadable module. Every release below compiles it as a module on every flavour, so whether the code is in the running kernel depends on whether that module is loaded.
- bookworm, trixie, forky, sidm
- m
- a loadable module on every flavour - check lsmod, can be blacklisted
- Build switch
- CONFIG_EXFAT_FS
From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages
Signals
- Published
- 2024-12-24 (22 months ago)source
- CVSS
- 7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hsource recompute it - Attack vector
- local (AV:L)source
- EPSS
- 0.22%, higher than 11.3% of all CVEssource
- CISA KEV
- not listedthe KEV catalogue
- Debian urgency
- not yet assignedsource
- Subsystem
- fs/exfat
Upstream fixes
The versions the CNA records as introducing and fixing this, and the commit for each. source
| Introduced | Fixed in | Commit |
|---|---|---|
| 5.7 | 6.11.11 | a0120d646336 |
| 5.7 | 6.12.2 | 3ddd1cb2b458 |
| 5.7 | 6.13 | 184fa506e392 |
Why the CNA scored it this way
Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source
- AV:LAttack vector, local
- Triggering requires a crafted exFAT image to be mounted and then a lookup/create performed in the corrupt directory, which is a local operation — an unprivileged desktop user can loop-mount an arbitrary image via udisks2, or operate on an automounted USB/SD card. There is no network-reachable path into fs/exfat.
- AC:LAttack complexity, low
- The attacker fully controls the on-disk bytes: setting a directory's stream-extension dentry to size >= cluster_size with an invalid start_clu is deterministic, and the follow-up lookup+create is a plain syscall sequence with no race, timing, or memory-layout dependency.
- PR:LPrivileges required, low
- Only ordinary local user privileges are needed — udisks2/automount lets an unprivileged session user get the crafted exFAT image mounted, and any low-privileged user can then run lookup/creat/mkdir in the corrupt directory to drive the out-of-bounds access. Real root in the init namespace is not required.
- UI:NUser interaction, none
- In the self-mount scenario the attacker performs every step themselves — mount the image via the automount/loop path, then issue the lookup and create — with no action by any other user required.
- S:UScope, unchanged
- The corruption and disclosure stay within the kernel's own security authority and the filesystem it manages; no VM, IOMMU, or sandbox boundary is crossed.
- C:HConfidentiality impact, high
- Because hint_femp.eidx and the inflated directory size index clusters outside the directory, readdir/lookup read clusters belonging to other files — or arbitrary sectors of the device with the unvalidated `cur_clu += clu_offset` path — and hand that content back to userspace as directory-entry names and attributes.
- I:HIntegrity impact, high
- Directory entries are written into clusters owned by other files, and exfat_chain_cont_cluster() rewrites FAT entries for clusters it does not own, splicing another file's clusters into the corrupt directory; this destroys unrelated user data and filesystem metadata, exactly the "further file system corruption" the commit cites.
- A:HAvailability impact, high
- The bogus accesses funnel into exfat_fs_error(), which calls panic() under the supported errors=panic mount option and forces the filesystem read-only under the default, and the resulting inconsistent inode (i_size claiming N+1 clusters over a one-cluster chain) yields repeated I/O failures on every subsequent operation.