{"id":"CVE-2024-50006","aliases":["CVE-2024-50006"],"related":[],"kind":"vulnerability","state":"published","title":"ext4: fix i_data_sem unlock order in ext4_ind_migrate()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix i_data_sem unlock order in ext4_ind_migrate()\n\nFuzzing reports a possible deadlock in jbd2_log_wait_commit.\n\nThis issue is triggered when an EXT4_IOC_MIGRATE ioctl is set to require\nsynchronous updates because the file descriptor is opened with O_SYNC.\nThis can lead to the jbd2_journal_stop() function calling\njbd2_might_wait_for_commit(), potentially causing a deadlock if the\nEXT4_IOC_MIGRATE call races with a write(2) system call.\n\nThis problem only arises when CONFIG_PROVE_LOCKING is enabled. In this\ncase, the jbd2_might_wait_for_commit macro locks jbd2_handle in the\njbd2_journal_stop function while i_data_sem is locked. This triggers\nlockdep because the jbd2_journal_start function might also lock the same\njbd2_handle simultaneously.\n\nFound by Linux Verification Center (linuxtesting.org) with syzkaller.\n\nRule: add","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix i_data_sem unlock order in ext4_ind_migrate()\n\nFuzzing reports a possible deadlock in jbd2_log_wait_commit.\n\nThis issue is triggered when an EXT4_IOC_MIGRATE ioctl is set to require\nsynchronous updates because the file descriptor is opened with O_SYNC.\nThis can lead to the jbd2_journal_stop() function calling\njbd2_might_wait_for_commit(), potentially causing a deadlock if the\nEXT4_IOC_MIGRATE call races with a write(2) system call.\n\nThis problem only arises when CONFIG_PROVE_LOCKING is enabled. In this\ncase, the jbd2_might_wait_for_commit macro locks jbd2_handle in the\njbd2_journal_stop function while i_data_sem is locked. This triggers\nlockdep because the jbd2_journal_start function might also lock the same\njbd2_handle simultaneously.\n\nFound by Linux Verification Center (linuxtesting.org) with syzkaller.\n\nRule: add","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ext4: se corrige el orden de desbloqueo de i_data_sem en ext4_ind_migrate() Fuzzing informa un posible bloqueo en jbd2_log_wait_commit. Este problema se activa cuando se configura un ioctl EXT4_IOC_MIGRATE para requerir actualizaciones sincrónicas porque el descriptor de archivo se abre con O_SYNC. Esto puede provocar que la función jbd2_journal_stop() llame a jbd2_might_wait_for_commit(), lo que puede provocar un bloqueo si la llamada a EXT4_IOC_MIGRATE compite con una llamada del sistema write(2). Este problema solo surge cuando CONFIG_PROVE_LOCKING está habilitado. En este caso, la macro jbd2_might_wait_for_commit bloquea jbd2_handle en la función jbd2_journal_stop mientras i_data_sem está bloqueado. Esto activa lockdep porque la función jbd2_journal_start también podría bloquear el mismo jbd2_handle simultáneamente. Encontrado por Linux Verification Center (linuxtesting.org) con syzkaller. Regla: add","source":"nvd"}],"published":"2024-10-21T18:53:59.938Z","modified":"2026-10-15T01:19:04.183Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-667"],"affected":[{"ranges":[{"type":"git","introduced":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","fixed":"4192adefc9c570698821c5eb9873320eac2fcbf1","status":"affected"},{"type":"git","introduced":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","fixed":"3c46d6060d3e38de22196c1fe7706c5a3c696285","status":"affected"},{"type":"git","introduced":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","fixed":"53b1999cfd2c7addf2e581a32865fe8835467b44","status":"affected"},{"type":"git","introduced":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","fixed":"ef05572da0c0eb89614ed01cc17d3c882bdbd1ff","status":"affected"},{"type":"git","introduced":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","fixed":"9fedf51ab8cf7b69bff08f37fe0989fec7f5d870","status":"affected"},{"type":"git","introduced":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","fixed":"d43776b907659affef1de888525847d64b244194","status":"affected"},{"type":"git","introduced":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","fixed":"6252cb6bde7fc76cb8dcb49d1def7c326b190820","status":"affected"},{"type":"git","introduced":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","fixed":"d58a00e981d3118b91d503da263e640b7cde6729","status":"affected"},{"type":"git","introduced":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","fixed":"cc749e61c011c255d81b192a822db650c68b313f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.10","status":"unaffected"},{"type":"semver","introduced":"4.19.323","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.285","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.227","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.168","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.113","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.55","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.14","lastAffected":"6.10.*","status":"unaffected"},{"type":"semver","introduced":"6.11.3","lastAffected":"6.11.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.12","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":"5.10.227"},{"status":"affected","introduced":"5.11","fixed":"5.15.168"},{"status":"affected","introduced":"5.16","fixed":"6.1.113"},{"status":"affected","introduced":"6.2","fixed":"6.6.55"},{"status":"affected","introduced":"6.7","fixed":"6.10.14"},{"status":"affected","introduced":"6.11","fixed":"6.11.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/4192adefc9c570698821c5eb9873320eac2fcbf1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3c46d6060d3e38de22196c1fe7706c5a3c696285","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/53b1999cfd2c7addf2e581a32865fe8835467b44","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ef05572da0c0eb89614ed01cc17d3c882bdbd1ff","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9fedf51ab8cf7b69bff08f37fe0989fec7f5d870","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d43776b907659affef1de888525847d64b244194","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6252cb6bde7fc76cb8dcb49d1def7c326b190820","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d58a00e981d3118b91d503da263e640b7cde6729","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cc749e61c011c255d81b192a822db650c68b313f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-10-22T13:29:18.943Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-50006","url":"https://www.cve.org/CVERecord?id=CVE-2024-50006","licence":"CVE Terms of Use","modified":"2026-10-15T00:55:54.519Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-50006","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50006","licence":"Public domain","modified":"2026-10-15T01:19:04.183Z"}],"updatedAt":"2026-11-25T22:58:47.091Z","epss":{"score":0.00192,"percentile":0.09267,"date":"2026-12-02T12:00:21.000Z"}}