{"id":"CVE-2026-143014","state":"PUBLISHED","title":"dm-crypt: defer async write submission to write thread","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm-crypt: defer async write submission to write thread\n\nWith no_write_workqueue, kcryptd_crypt_write_io_submit() submits the\nbio directly, even when called from kcryptd_async_done(). An async\ncipher may run this callback in softirq or with BH disabled, where\nsubmit_bio_noacct() must not be called because it can sleep.\n\nSubmit inline only when async is false. Async completions are sent to\nthe write thread, as is already done for submit_from_crypt_cpus. Use\nthe async flag rather than in_interrupt(), since callback context\ndepends on the cipher driver. Sync ciphers still submit inline.\n\nTested with cryptd in QEMU (x86_64 and arm64) with\nCONFIG_DEBUG_ATOMIC_SLEEP, and on a P2020 running 6.18.55 without it.\n\nIn QEMU:\n\n- 4k writes logging \"sleeping function called from invalid context\":\n  100/100 unpatched, 0/155 patched.\n- nr_requests=4 on a loop device: 0/6 unpatched runs completed,\n  4/4 patched runs completed.\n\nOn the P2020, a warning in blk_mq_run_hw_queue() appeared in the\n6th unpatched run and did not appear in 30 patched runs.","publishedAt":"2026-12-03T09:17:48.862Z","updatedAt":"2026-12-03T09:17:48.862Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877","status":"affected","lessThan":"6eef2b2b0f6f8ea5b2988f932ad7fe2c279a85de","versionType":"git"},{"version":"39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877","status":"affected","lessThan":"b21d25b0046d180095aecfa03b9805f38aae1d0a","versionType":"git"},{"version":"39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877","status":"affected","lessThan":"5d8858b8e0daf9323caa88e7093fdf97bad5673c","versionType":"git"},{"version":"39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877","status":"affected","lessThan":"6fed9e26810f0b466dbcebe35a73d1fd48793ff5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-crypt.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.9","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-crypt.c"]}],"references":["https://git.kernel.org/stable/c/6eef2b2b0f6f8ea5b2988f932ad7fe2c279a85de","https://git.kernel.org/stable/c/b21d25b0046d180095aecfa03b9805f38aae1d0a","https://git.kernel.org/stable/c/5d8858b8e0daf9323caa88e7093fdf97bad5673c","https://git.kernel.org/stable/c/6fed9e26810f0b466dbcebe35a73d1fd48793ff5"],"weaknesses":[],"ingestedAt":"2026-12-03T09:26:06.073Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143014.json","commit":"9fd484e43f2e14021809e195d28c1172759faad0","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143014","state":"PUBLISHED","datePublished":"2026-12-03T09:17:48.862Z","dateUpdated":"2026-12-03T09:17:48.862Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.343Z"},"containers":{"cna":{"title":"dm-crypt: defer async write submission to write thread","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm-crypt: defer async write submission to write thread\n\nWith no_write_workqueue, kcryptd_crypt_write_io_submit() submits the\nbio directly, even when called from kcryptd_async_done(). An async\ncipher may run this callback in softirq or with BH disabled, where\nsubmit_bio_noacct() must not be called because it can sleep.\n\nSubmit inline only when async is false. Async completions are sent to\nthe write thread, as is already done for submit_from_crypt_cpus. Use\nthe async flag rather than in_interrupt(), since callback context\ndepends on the cipher driver. Sync ciphers still submit inline.\n\nTested with cryptd in QEMU (x86_64 and arm64) with\nCONFIG_DEBUG_ATOMIC_SLEEP, and on a P2020 running 6.18.55 without it.\n\nIn QEMU:\n\n- 4k writes logging \"sleeping function called from invalid context\":\n  100/100 unpatched, 0/155 patched.\n- nr_requests=4 on a loop device: 0/6 unpatched runs completed,\n  4/4 patched runs completed.\n\nOn the P2020, a warning in blk_mq_run_hw_queue() appeared in the\n6th unpatched run and did not appear in 30 patched runs."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877","status":"affected","lessThan":"6eef2b2b0f6f8ea5b2988f932ad7fe2c279a85de","versionType":"git"},{"version":"39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877","status":"affected","lessThan":"b21d25b0046d180095aecfa03b9805f38aae1d0a","versionType":"git"},{"version":"39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877","status":"affected","lessThan":"5d8858b8e0daf9323caa88e7093fdf97bad5673c","versionType":"git"},{"version":"39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877","status":"affected","lessThan":"6fed9e26810f0b466dbcebe35a73d1fd48793ff5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-crypt.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.9","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/dm-crypt.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/6eef2b2b0f6f8ea5b2988f932ad7fe2c279a85de"},{"url":"https://git.kernel.org/stable/c/b21d25b0046d180095aecfa03b9805f38aae1d0a"},{"url":"https://git.kernel.org/stable/c/5d8858b8e0daf9323caa88e7093fdf97bad5673c"},{"url":"https://git.kernel.org/stable/c/6fed9e26810f0b466dbcebe35a73d1fd48793ff5"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:17:48.862Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}