{"schema_version":"1.9.0","id":"CVE-2024-50006","published":"2024-10-21T18:53:59.938Z","modified":"2026-08-12T03:51:47.488307752Z","related":["SUSE-SU-2024:3983-1","SUSE-SU-2024:3985-1","SUSE-SU-2024:4100-1","SUSE-SU-2024:4314-1","SUSE-SU-2024:4316-1","SUSE-SU-2024:4318-1","SUSE-SU-2024:4364-1","SUSE-SU-2024:4387-1","SUSE-SU-2025:0034-1","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1","USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"summary":"ext4: fix i_data_sem unlock order in ext4_ind_migrate()","details":"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","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333"},{"fixed":"4192adefc9c570698821c5eb9873320eac2fcbf1"},{"fixed":"3c46d6060d3e38de22196c1fe7706c5a3c696285"},{"fixed":"53b1999cfd2c7addf2e581a32865fe8835467b44"},{"fixed":"ef05572da0c0eb89614ed01cc17d3c882bdbd1ff"},{"fixed":"9fedf51ab8cf7b69bff08f37fe0989fec7f5d870"},{"fixed":"d43776b907659affef1de888525847d64b244194"},{"fixed":"6252cb6bde7fc76cb8dcb49d1def7c326b190820"},{"fixed":"d58a00e981d3118b91d503da263e640b7cde6729"},{"fixed":"cc749e61c011c255d81b192a822db650c68b313f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50006.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.10.0"},{"fixed":"4.19.323"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.285"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.168"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.113"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.55"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.10.14"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.11.0"},{"fixed":"6.11.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50006.json"}}],"references":[{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3c46d6060d3e38de22196c1fe7706c5a3c696285"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4192adefc9c570698821c5eb9873320eac2fcbf1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/53b1999cfd2c7addf2e581a32865fe8835467b44"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6252cb6bde7fc76cb8dcb49d1def7c326b190820"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9fedf51ab8cf7b69bff08f37fe0989fec7f5d870"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cc749e61c011c255d81b192a822db650c68b313f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d43776b907659affef1de888525847d64b244194"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d58a00e981d3118b91d503da263e640b7cde6729"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ef05572da0c0eb89614ed01cc17d3c882bdbd1ff"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50006.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50006"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50006.json"}}