# CVE-2023-53051: dm crypt: add cond_resched() to dmcrypt_write()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-05-02T15:55:07.069Z
- Modified: 2026-11-05T21:17:09.297Z
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

dm crypt: add cond_resched() to dmcrypt_write()

The loop in dmcrypt_write may be running for unbounded amount of time,
thus we need cond_resched() in it.

This commit fixes the following warning:

[ 3391.153255][   C12] watchdog: BUG: soft lockup - CPU#12 stuck for 23s! [dmcrypt_write/2:2897]
...
[ 3391.387210][   C12] Call trace:
[ 3391.390338][   C12]  blk_attempt_bio_merge.part.6+0x38/0x158
[ 3391.395970][   C12]  blk_attempt_plug_merge+0xc0/0x1b0
[ 3391.401085][   C12]  blk_mq_submit_bio+0x398/0x550
[ 3391.405856][   C12]  submit_bio_noacct+0x308/0x380
[ 3391.410630][   C12]  dmcrypt_write+0x1e4/0x208 [dm_crypt]
[ 3391.416005][   C12]  kthread+0x130/0x138
[ 3391.419911][   C12]  ret_from_fork+0x10/0x18

(As written by CVE List.)

## Affected

- Linux Linux: from dc2676210c425ee8e5cb1bec5bc84d004ddf4179 before e87cd83f70504f1cd2e428966f353c007d6d2d7f; from dc2676210c425ee8e5cb1bec5bc84d004ddf4179 before 7b9f8efb5fc888dd938d2964e705b8e00f1dc0f6; from dc2676210c425ee8e5cb1bec5bc84d004ddf4179 before 885c28ceae7dab2b18c2cc0eb95f1f82b1f629d1; from dc2676210c425ee8e5cb1bec5bc84d004ddf4179 before 66ff37993dd7e9954b6446237fe2453b380ce40d; from dc2676210c425ee8e5cb1bec5bc84d004ddf4179 before eb485b7404a281d974bd445ddc5b0b8d5958f371; from dc2676210c425ee8e5cb1bec5bc84d004ddf4179 before f0eb61b493dbbc32529fbd0d2e945b71b0e47306; from dc2676210c425ee8e5cb1bec5bc84d004ddf4179 before 2c743db1193bf0e76c73d71ede08bd9b96e6c31d; from dc2676210c425ee8e5cb1bec5bc84d004ddf4179 before fb294b1c0ba982144ca467a75e7d01ff26304e2b; 4.0 (not affected: before 4.0; from 4.14.312 up to 4.14.*; from 4.19.280 up to 4.19.*; from 5.4.240 up to 5.4.*; from 5.10.177 up to 5.10.*; from 5.15.105 up to 5.15.*; from 6.1.22 up to 6.1.*; from 6.2.9 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 4.0 before 4.14.312; from 4.15 before 4.19.280; from 4.20 before 5.4.240; from 5.5 before 5.10.177; from 5.11 before 5.15.105; from 5.16 before 6.1.22; from 6.2 before 6.2.9; 6.3

## References

- <https://git.kernel.org/stable/c/e87cd83f70504f1cd2e428966f353c007d6d2d7f> (patch)
- <https://git.kernel.org/stable/c/7b9f8efb5fc888dd938d2964e705b8e00f1dc0f6> (patch)
- <https://git.kernel.org/stable/c/885c28ceae7dab2b18c2cc0eb95f1f82b1f629d1> (patch)
- <https://git.kernel.org/stable/c/66ff37993dd7e9954b6446237fe2453b380ce40d> (patch)
- <https://git.kernel.org/stable/c/eb485b7404a281d974bd445ddc5b0b8d5958f371> (patch)
- <https://git.kernel.org/stable/c/f0eb61b493dbbc32529fbd0d2e945b71b0e47306> (patch)
- <https://git.kernel.org/stable/c/2c743db1193bf0e76c73d71ede08bd9b96e6c31d> (patch)
- <https://git.kernel.org/stable/c/fb294b1c0ba982144ca467a75e7d01ff26304e2b> (patch)

## Sources

- CVE List: [CVE-2023-53051](https://www.cve.org/CVERecord?id=CVE-2023-53051), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2023-53051](https://nvd.nist.gov/vuln/detail/CVE-2023-53051), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2023-53051 · Whole record: https://cve.day/CVE-2023-53051.json · Rebuilt by cve.day 2026-11-25T22:58:34.638Z
