{"id":"CVE-2024-50006","state":"PUBLISHED","title":"ext4: fix i_data_sem unlock order in ext4_ind_migrate()","description":"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","publishedAt":"2024-10-21T18:53:59.938Z","updatedAt":"2026-10-15T00:55:54.519Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"4192adefc9c570698821c5eb9873320eac2fcbf1","versionType":"git"},{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"3c46d6060d3e38de22196c1fe7706c5a3c696285","versionType":"git"},{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"53b1999cfd2c7addf2e581a32865fe8835467b44","versionType":"git"},{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"ef05572da0c0eb89614ed01cc17d3c882bdbd1ff","versionType":"git"},{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"9fedf51ab8cf7b69bff08f37fe0989fec7f5d870","versionType":"git"},{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"d43776b907659affef1de888525847d64b244194","versionType":"git"},{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"6252cb6bde7fc76cb8dcb49d1def7c326b190820","versionType":"git"},{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"d58a00e981d3118b91d503da263e640b7cde6729","versionType":"git"},{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"cc749e61c011c255d81b192a822db650c68b313f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ext4/migrate.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.10","versionType":"semver"},{"version":"4.19.323","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.285","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.227","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.168","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.113","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.55","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.14","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11.3","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ext4/migrate.c"]}],"references":["https://git.kernel.org/stable/c/4192adefc9c570698821c5eb9873320eac2fcbf1","https://git.kernel.org/stable/c/3c46d6060d3e38de22196c1fe7706c5a3c696285","https://git.kernel.org/stable/c/53b1999cfd2c7addf2e581a32865fe8835467b44","https://git.kernel.org/stable/c/ef05572da0c0eb89614ed01cc17d3c882bdbd1ff","https://git.kernel.org/stable/c/9fedf51ab8cf7b69bff08f37fe0989fec7f5d870","https://git.kernel.org/stable/c/d43776b907659affef1de888525847d64b244194","https://git.kernel.org/stable/c/6252cb6bde7fc76cb8dcb49d1def7c326b190820","https://git.kernel.org/stable/c/d58a00e981d3118b91d503da263e640b7cde6729","https://git.kernel.org/stable/c/cc749e61c011c255d81b192a822db650c68b313f","https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","https://cert-portal.siemens.com/productcert/html/ssa-398330.html","https://cert-portal.siemens.com/productcert/html/ssa-265688.html","https://cert-portal.siemens.com/productcert/html/ssa-355557.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/50xxx/CVE-2024-50006.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-50006","state":"PUBLISHED","datePublished":"2024-10-21T18:53:59.938Z","dateUpdated":"2026-10-15T00:55:54.519Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-10-21T12:17:06.060Z"},"containers":{"cna":{"title":"ext4: fix i_data_sem unlock order in ext4_ind_migrate()","descriptions":[{"lang":"en","value":"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":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"4192adefc9c570698821c5eb9873320eac2fcbf1","versionType":"git"},{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"3c46d6060d3e38de22196c1fe7706c5a3c696285","versionType":"git"},{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"53b1999cfd2c7addf2e581a32865fe8835467b44","versionType":"git"},{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"ef05572da0c0eb89614ed01cc17d3c882bdbd1ff","versionType":"git"},{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"9fedf51ab8cf7b69bff08f37fe0989fec7f5d870","versionType":"git"},{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"d43776b907659affef1de888525847d64b244194","versionType":"git"},{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"6252cb6bde7fc76cb8dcb49d1def7c326b190820","versionType":"git"},{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"d58a00e981d3118b91d503da263e640b7cde6729","versionType":"git"},{"version":"e8238f9a8339b3578c85e4192a7a23bc2bdc0333","status":"affected","lessThan":"cc749e61c011c255d81b192a822db650c68b313f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ext4/migrate.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.10","versionType":"semver"},{"version":"4.19.323","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.285","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.227","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.168","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.113","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.55","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.14","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11.3","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ext4/migrate.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4192adefc9c570698821c5eb9873320eac2fcbf1"},{"url":"https://git.kernel.org/stable/c/3c46d6060d3e38de22196c1fe7706c5a3c696285"},{"url":"https://git.kernel.org/stable/c/53b1999cfd2c7addf2e581a32865fe8835467b44"},{"url":"https://git.kernel.org/stable/c/ef05572da0c0eb89614ed01cc17d3c882bdbd1ff"},{"url":"https://git.kernel.org/stable/c/9fedf51ab8cf7b69bff08f37fe0989fec7f5d870"},{"url":"https://git.kernel.org/stable/c/d43776b907659affef1de888525847d64b244194"},{"url":"https://git.kernel.org/stable/c/6252cb6bde7fc76cb8dcb49d1def7c326b190820"},{"url":"https://git.kernel.org/stable/c/d58a00e981d3118b91d503da263e640b7cde6729"},{"url":"https://git.kernel.org/stable/c/cc749e61c011c255d81b192a822db650c68b313f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:43:43.427Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"4.19.323"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"5.4.285"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"5.10.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"5.15.168"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"6.1.113"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"6.6.55"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"6.10.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"6.11.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.10","versionEndExcluding":"6.12"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-50006","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-10-22T13:29:18.943550Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-22T13:38:40.371Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:24:21.923Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V1.1.1","versionType":"custom"}]},{"vendor":"Siemens","product":"SIPLUS S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"RUGGEDCOM RST2428P","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V3.2","versionType":"custom"}]},{"vendor":"Siemens","product":"SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V3.2","versionType":"custom"}]},{"vendor":"Siemens","product":"SCALANCE XCM-/XRM-/XCH-/XRH-300 family","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V3.2","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-15T00:55:54.519Z"},"x_adpType":"supplier"}]}}}