{"id":"CVE-2023-53051","summary":"dm crypt: add cond_resched() to dmcrypt_write()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm crypt: add cond_resched() to dmcrypt_write()\n\nThe loop in dmcrypt_write may be running for unbounded amount of time,\nthus we need cond_resched() in it.\n\nThis commit fixes the following warning:\n\n[ 3391.153255][   C12] watchdog: BUG: soft lockup - CPU#12 stuck for 23s! [dmcrypt_write/2:2897]\n...\n[ 3391.387210][   C12] Call trace:\n[ 3391.390338][   C12]  blk_attempt_bio_merge.part.6+0x38/0x158\n[ 3391.395970][   C12]  blk_attempt_plug_merge+0xc0/0x1b0\n[ 3391.401085][   C12]  blk_mq_submit_bio+0x398/0x550\n[ 3391.405856][   C12]  submit_bio_noacct+0x308/0x380\n[ 3391.410630][   C12]  dmcrypt_write+0x1e4/0x208 [dm_crypt]\n[ 3391.416005][   C12]  kthread+0x130/0x138\n[ 3391.419911][   C12]  ret_from_fork+0x10/0x18","modified":"2026-05-18T05:57:11.710330993Z","published":"2025-05-02T15:55:07.069Z","related":["SUSE-SU-2025:01620-1","SUSE-SU-2025:01640-1","SUSE-SU-2025:01918-1","SUSE-SU-2025:01983-1","SUSE-SU-2025:02262-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53051.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2c743db1193bf0e76c73d71ede08bd9b96e6c31d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/66ff37993dd7e9954b6446237fe2453b380ce40d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7b9f8efb5fc888dd938d2964e705b8e00f1dc0f6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/885c28ceae7dab2b18c2cc0eb95f1f82b1f629d1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e87cd83f70504f1cd2e428966f353c007d6d2d7f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eb485b7404a281d974bd445ddc5b0b8d5958f371"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f0eb61b493dbbc32529fbd0d2e945b71b0e47306"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fb294b1c0ba982144ca467a75e7d01ff26304e2b"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53051.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53051"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"dc2676210c425ee8e5cb1bec5bc84d004ddf4179"},{"fixed":"e87cd83f70504f1cd2e428966f353c007d6d2d7f"},{"fixed":"7b9f8efb5fc888dd938d2964e705b8e00f1dc0f6"},{"fixed":"885c28ceae7dab2b18c2cc0eb95f1f82b1f629d1"},{"fixed":"66ff37993dd7e9954b6446237fe2453b380ce40d"},{"fixed":"eb485b7404a281d974bd445ddc5b0b8d5958f371"},{"fixed":"f0eb61b493dbbc32529fbd0d2e945b71b0e47306"},{"fixed":"2c743db1193bf0e76c73d71ede08bd9b96e6c31d"},{"fixed":"fb294b1c0ba982144ca467a75e7d01ff26304e2b"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53051.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.14.312"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.280"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.240"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.177"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.105"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.22"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.2.9"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53051.json"}}],"schema_version":"1.7.5"}