* CVE-2026-143014: dm-crypt: defer async write submission to write thread
@ 2026-12-03 9:17 Greg Kroah-Hartman
0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-12-03 9:17 UTC (permalink / raw)
To: linux-cve-announce; +Cc: Greg Kroah-Hartman
From: Greg Kroah-Hartman <gregkh@kernel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dm-crypt: defer async write submission to write thread
With no_write_workqueue, kcryptd_crypt_write_io_submit() submits the
bio directly, even when called from kcryptd_async_done(). An async
cipher may run this callback in softirq or with BH disabled, where
submit_bio_noacct() must not be called because it can sleep.
Submit inline only when async is false. Async completions are sent to
the write thread, as is already done for submit_from_crypt_cpus. Use
the async flag rather than in_interrupt(), since callback context
depends on the cipher driver. Sync ciphers still submit inline.
Tested with cryptd in QEMU (x86_64 and arm64) with
CONFIG_DEBUG_ATOMIC_SLEEP, and on a P2020 running 6.18.55 without it.
In QEMU:
- 4k writes logging "sleeping function called from invalid context":
100/100 unpatched, 0/155 patched.
- nr_requests=4 on a loop device: 0/6 unpatched runs completed,
4/4 patched runs completed.
On the P2020, a warning in blk_mq_run_hw_queue() appeared in the
6th unpatched run and did not appear in 30 patched runs.
The Linux kernel CVE team has assigned CVE-2026-143014 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.9 with commit 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877 and fixed in 6.12.120 with commit 6eef2b2b0f6f8ea5b2988f932ad7fe2c279a85de
Issue introduced in 5.9 with commit 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877 and fixed in 6.18.66 with commit b21d25b0046d180095aecfa03b9805f38aae1d0a
Issue introduced in 5.9 with commit 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877 and fixed in 7.3.7 with commit 5d8858b8e0daf9323caa88e7093fdf97bad5673c
Issue introduced in 5.9 with commit 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877 and fixed in 7.4-rc3 with commit 6fed9e26810f0b466dbcebe35a73d1fd48793ff5
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-143014
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/md/dm-crypt.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-03 9:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 9:17 CVE-2026-143014: dm-crypt: defer async write submission to write thread Greg Kroah-Hartman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.