{"id":"CVE-2024-40972","aliases":["CVE-2024-40972"],"related":[],"kind":"vulnerability","state":"published","title":"ext4: do not create EA inode under buffer lock","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: do not create EA inode under buffer lock\n\next4_xattr_set_entry() creates new EA inodes while holding buffer lock\non the external xattr block. This is problematic as it nests all the\nallocation locking (which acquires locks on other buffers) under the\nbuffer lock. This can even deadlock when the filesystem is corrupted and\ne.g. quota file is setup to contain xattr block as data block. Move the\nallocation of EA inode out of ext4_xattr_set_entry() into the callers.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: do not create EA inode under buffer lock\n\next4_xattr_set_entry() creates new EA inodes while holding buffer lock\non the external xattr block. This is problematic as it nests all the\nallocation locking (which acquires locks on other buffers) under the\nbuffer lock. This can even deadlock when the filesystem is corrupted and\ne.g. quota file is setup to contain xattr block as data block. Move the\nallocation of EA inode out of ext4_xattr_set_entry() into the callers.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ext4: no crear inodo EA bajo bloqueo de búfer ext4_xattr_set_entry() crea nuevos inodos EA mientras mantiene el bloqueo de búfer en el bloque xattr externo. Esto es problemático ya que anida todo el bloqueo de asignación (que adquiere bloqueos en otros búfer) bajo el bloqueo del búfer. Esto puede incluso bloquearse cuando el sistema de archivos está dañado y, por ejemplo, el archivo de cuota está configurado para contener el bloque xattr como bloque de datos. Mueva la asignación del inodo EA de ext4_xattr_set_entry() a las personas que llaman.","source":"nvd"}],"published":"2024-07-12T12:32:10.102Z","modified":"2026-06-17T07:46:59.553Z","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":"e50e5129f384ae282adebfb561189cdb19b81cee","fixed":"0752e7fb549d90c33b4d4186f11cfd25a556d1dd","status":"affected"},{"type":"git","introduced":"e50e5129f384ae282adebfb561189cdb19b81cee","fixed":"737fb7853acd5bc8984f6f42e4bfba3334be8ae1","status":"affected"},{"type":"git","introduced":"e50e5129f384ae282adebfb561189cdb19b81cee","fixed":"111103907234bffd0a34fba070ad9367de058752","status":"affected"},{"type":"git","introduced":"e50e5129f384ae282adebfb561189cdb19b81cee","fixed":"0a46ef234756dca04623b7591e8ebb3440622f0b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.13","status":"unaffected"},{"type":"semver","introduced":"6.1.107","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.47","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.9.7","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","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","fixed":"6.1.107"},{"status":"affected","introduced":"6.2","fixed":"6.6.47"},{"status":"affected","introduced":"6.7","fixed":"6.9.7"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0752e7fb549d90c33b4d4186f11cfd25a556d1dd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/737fb7853acd5bc8984f6f42e4bfba3334be8ae1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/111103907234bffd0a34fba070ad9367de058752","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0a46ef234756dca04623b7591e8ebb3440622f0b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T17:02:50.931Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-40972","url":"https://www.cve.org/CVERecord?id=CVE-2024-40972","licence":"CVE Terms of Use","modified":"2026-05-11T20:23:24.497Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-40972","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40972","licence":"Public domain","modified":"2026-06-17T07:46:59.553Z"}],"updatedAt":"2026-11-25T22:58:42.868Z","epss":{"score":0.00223,"percentile":0.13757,"date":"2026-12-01T12:00:22.000Z"}}