{"id":"CVE-2024-42315","aliases":["CVE-2024-42315"],"related":[],"kind":"vulnerability","state":"published","title":"exfat: fix potential deadlock on __exfat_get_dentry_set","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nexfat: fix potential deadlock on __exfat_get_dentry_set\n\nWhen accessing a file with more entries than ES_MAX_ENTRY_NUM, the bh-array\nis allocated in __exfat_get_entry_set. The problem is that the bh-array is\nallocated with GFP_KERNEL. It does not make sense. In the following cases,\na deadlock for sbi->s_lock between the two processes may occur.\n\n       CPU0                CPU1\n       ----                ----\n  kswapd\n   balance_pgdat\n    lock(fs_reclaim)\n                      exfat_iterate\n                       lock(&sbi->s_lock)\n                       exfat_readdir\n                        exfat_get_uniname_from_ext_entry\n                         exfat_get_dentry_set\n                          __exfat_get_dentry_set\n                           kmalloc_array\n                            ...\n                            lock(fs_reclaim)\n    ...\n    evict\n     exfat_evict_inode\n      lock(&sbi->s_lock)\n\nTo fix this, let's allocate bh-array with GFP_NOFS.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nexfat: fix potential deadlock on __exfat_get_dentry_set\n\nWhen accessing a file with more entries than ES_MAX_ENTRY_NUM, the bh-array\nis allocated in __exfat_get_entry_set. The problem is that the bh-array is\nallocated with GFP_KERNEL. It does not make sense. In the following cases,\na deadlock for sbi->s_lock between the two processes may occur.\n\n       CPU0                CPU1\n       ----                ----\n  kswapd\n   balance_pgdat\n    lock(fs_reclaim)\n                      exfat_iterate\n                       lock(&sbi->s_lock)\n                       exfat_readdir\n                        exfat_get_uniname_from_ext_entry\n                         exfat_get_dentry_set\n                          __exfat_get_dentry_set\n                           kmalloc_array\n                            ...\n                            lock(fs_reclaim)\n    ...\n    evict\n     exfat_evict_inode\n      lock(&sbi->s_lock)\n\nTo fix this, let's allocate bh-array with GFP_NOFS.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: exfat: corrige un posible punto muerto en __exfat_get_dentry_set Al acceder a un archivo con más entradas que ES_MAX_ENTRY_NUM, la matriz bh se asigna en __exfat_get_entry_set. El problema es que el bh-array está asignado con GFP_KERNEL. No tiene sentido. En los siguientes casos, puede ocurrir un punto muerto para sbi-&gt;s_lock entre los dos procesos. CPU0 CPU1 ---- ---- kswapd balance_pgdat lock(fs_reclaim) exfat_iterate lock(&amp;sbi-&gt;s_lock) exfat_readdir exfat_get_uniname_from_ext_entry exfat_get_dentry_set __exfat_get_dentry_set kmalloc_array ... lock(fs_reclaim) ... desalojar exfat_evict_inode lock(&amp;sbi-&gt;s_lock) para arreglar esto, asignemos bh-array con GFP_NOFS.","source":"nvd"}],"published":"2024-08-17T09:09:23.779Z","modified":"2026-06-17T07:49:14.643Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-667"],"affected":[{"ranges":[{"type":"git","introduced":"bd3bdb9e0d656f760b11d0c638d35d7f7068144d","fixed":"632fb232b6bbf8277edcbe9ecd4b4d98ecb122eb","status":"affected"},{"type":"git","introduced":"92dcd7d6c6068bf4fd35a6f64d606e27d634807e","fixed":"c052f775ee6ccacd3c97e4cf41a2a657e63d4259","status":"affected"},{"type":"git","introduced":"d8fe01ad2d8ab33aaf8f2efad9e8f1dae11c4b0c","fixed":"cd1c7858641384191ff7033fb1fc65dfcd559c6f","status":"affected"},{"type":"git","introduced":"a3ff29a95fde16906304455aa8c0bd84eb770258","fixed":"a7ac198f8dba791e3144c4da48a5a9b95773ee4b","status":"affected"},{"type":"git","introduced":"a3ff29a95fde16906304455aa8c0bd84eb770258","fixed":"1d1970493c289e3f44b9ec847ed26a5dbdf56a62","status":"affected"},{"type":"git","introduced":"a3ff29a95fde16906304455aa8c0bd84eb770258","fixed":"89fc548767a2155231128cb98726d6d2ea1256c9","status":"affected"},{"type":"semver","introduced":"5.10.190","fixed":"5.10.232","status":"affected"},{"type":"semver","introduced":"5.15.150","fixed":"5.15.175","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.2","status":"unaffected"},{"type":"semver","introduced":"5.10.232","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.175","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.6.44","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.3","lastAffected":"6.10.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.11","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.2","fixed":"6.6.44"},{"status":"affected","introduced":"6.7","fixed":"6.10.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/632fb232b6bbf8277edcbe9ecd4b4d98ecb122eb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c052f775ee6ccacd3c97e4cf41a2a657e63d4259","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cd1c7858641384191ff7033fb1fc65dfcd559c6f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a7ac198f8dba791e3144c4da48a5a9b95773ee4b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1d1970493c289e3f44b9ec847ed26a5dbdf56a62","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/89fc548767a2155231128cb98726d6d2ea1256c9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:09:45.977Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42315","url":"https://www.cve.org/CVERecord?id=CVE-2024-42315","licence":"CVE Terms of Use","modified":"2026-05-23T15:52:53.654Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42315","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42315","licence":"Public domain","modified":"2026-06-17T07:49:14.643Z"}],"updatedAt":"2026-11-25T22:58:44.481Z","epss":{"score":0.00168,"percentile":0.06332,"date":"2026-12-01T12:00:22.000Z"}}