In the Linux kernel, the following vulnerability has been resolved:
dm crypt: add condresched() to dmcryptwrite()
The loop in dmcryptwrite may be running for unbounded amount of time, thus we need condresched() in it.
This commit fixes the following warning:
[ 3391.153255][ C12] watchdog: BUG: soft lockup - CPU#12 stuck for 23s! [dmcryptwrite/2:2897] ... [ 3391.387210][ C12] Call trace: [ 3391.390338][ C12] blkattemptbiomerge.part.6+0x38/0x158 [ 3391.395970][ C12] blkattemptplugmerge+0xc0/0x1b0 [ 3391.401085][ C12] blkmqsubmitbio+0x398/0x550 [ 3391.405856][ C12] submitbionoacct+0x308/0x380 [ 3391.410630][ C12] dmcryptwrite+0x1e4/0x208 [dmcrypt] [ 3391.416005][ C12] kthread+0x130/0x138 [ 3391.419911][ C12] retfromfork+0x10/0x18
{ "vanir_signatures": [ { "id": "CVE-2023-53051-0289c2c0", "signature_type": "Function", "target": { "file": "drivers/md/dm-crypt.c", "function": "dmcrypt_write" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@885c28ceae7dab2b18c2cc0eb95f1f82b1f629d1", "digest": { "function_hash": "42721164416997698578587716228271210207", "length": 826.0 }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2023-53051-0d860d1c", "signature_type": "Function", "target": { "file": "drivers/md/dm-crypt.c", "function": "dmcrypt_write" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0eb61b493dbbc32529fbd0d2e945b71b0e47306", "digest": { "function_hash": "42721164416997698578587716228271210207", "length": 826.0 }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2023-53051-132e0799", "signature_type": "Line", "target": { "file": "drivers/md/dm-crypt.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@885c28ceae7dab2b18c2cc0eb95f1f82b1f629d1", "digest": { "threshold": 0.9, "line_hashes": [ "270151366302187517573996008739416845113", "179852049649478582667668332882647994130", "52877631434417254032765878568861342634", "217389624221956447455029055459870235095" ] }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2023-53051-1b358be8", "signature_type": "Line", "target": { "file": "drivers/md/dm-crypt.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e87cd83f70504f1cd2e428966f353c007d6d2d7f", "digest": { "threshold": 0.9, "line_hashes": [ "270151366302187517573996008739416845113", "179852049649478582667668332882647994130", "52877631434417254032765878568861342634", "217389624221956447455029055459870235095" ] }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2023-53051-3a7d3eaa", "signature_type": "Function", "target": { "file": "drivers/md/dm-crypt.c", "function": "dmcrypt_write" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@66ff37993dd7e9954b6446237fe2453b380ce40d", "digest": { "function_hash": "42721164416997698578587716228271210207", "length": 826.0 }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2023-53051-505408a6", "signature_type": "Line", "target": { "file": "drivers/md/dm-crypt.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2c743db1193bf0e76c73d71ede08bd9b96e6c31d", "digest": { "threshold": 0.9, "line_hashes": [ "270151366302187517573996008739416845113", "179852049649478582667668332882647994130", "52877631434417254032765878568861342634", "217389624221956447455029055459870235095" ] }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2023-53051-68015ddb", "signature_type": "Function", "target": { "file": "drivers/md/dm-crypt.c", "function": "dmcrypt_write" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e87cd83f70504f1cd2e428966f353c007d6d2d7f", "digest": { "function_hash": "137701451842886757187604125483527861685", "length": 1037.0 }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2023-53051-752ea1c2", "signature_type": "Function", "target": { "file": "drivers/md/dm-crypt.c", "function": "dmcrypt_write" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fb294b1c0ba982144ca467a75e7d01ff26304e2b", "digest": { "function_hash": "42721164416997698578587716228271210207", "length": 826.0 }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2023-53051-7baccca9", "signature_type": "Line", "target": { "file": "drivers/md/dm-crypt.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0eb61b493dbbc32529fbd0d2e945b71b0e47306", "digest": { "threshold": 0.9, "line_hashes": [ "270151366302187517573996008739416845113", "179852049649478582667668332882647994130", "52877631434417254032765878568861342634", "217389624221956447455029055459870235095" ] }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2023-53051-833560f0", "signature_type": "Line", "target": { "file": "drivers/md/dm-crypt.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eb485b7404a281d974bd445ddc5b0b8d5958f371", "digest": { "threshold": 0.9, "line_hashes": [ "270151366302187517573996008739416845113", "179852049649478582667668332882647994130", "52877631434417254032765878568861342634", "217389624221956447455029055459870235095" ] }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2023-53051-8d807add", "signature_type": "Function", "target": { "file": "drivers/md/dm-crypt.c", "function": "dmcrypt_write" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7b9f8efb5fc888dd938d2964e705b8e00f1dc0f6", "digest": { "function_hash": "42721164416997698578587716228271210207", "length": 826.0 }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2023-53051-94d60e93", "signature_type": "Function", "target": { "file": "drivers/md/dm-crypt.c", "function": "dmcrypt_write" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eb485b7404a281d974bd445ddc5b0b8d5958f371", "digest": { "function_hash": "42721164416997698578587716228271210207", "length": 826.0 }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2023-53051-bb5f2afd", "signature_type": "Function", "target": { "file": "drivers/md/dm-crypt.c", "function": "dmcrypt_write" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2c743db1193bf0e76c73d71ede08bd9b96e6c31d", "digest": { "function_hash": "42721164416997698578587716228271210207", "length": 826.0 }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2023-53051-e83a9230", "signature_type": "Line", "target": { "file": "drivers/md/dm-crypt.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7b9f8efb5fc888dd938d2964e705b8e00f1dc0f6", "digest": { "threshold": 0.9, "line_hashes": [ "270151366302187517573996008739416845113", "179852049649478582667668332882647994130", "52877631434417254032765878568861342634", "217389624221956447455029055459870235095" ] }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2023-53051-f031f1b2", "signature_type": "Line", "target": { "file": "drivers/md/dm-crypt.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fb294b1c0ba982144ca467a75e7d01ff26304e2b", "digest": { "threshold": 0.9, "line_hashes": [ "270151366302187517573996008739416845113", "179852049649478582667668332882647994130", "52877631434417254032765878568861342634", "217389624221956447455029055459870235095" ] }, "deprecated": false, "signature_version": "v1" }, { "id": "CVE-2023-53051-fd05d0c5", "signature_type": "Line", "target": { "file": "drivers/md/dm-crypt.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@66ff37993dd7e9954b6446237fe2453b380ce40d", "digest": { "threshold": 0.9, "line_hashes": [ "270151366302187517573996008739416845113", "179852049649478582667668332882647994130", "52877631434417254032765878568861342634", "217389624221956447455029055459870235095" ] }, "deprecated": false, "signature_version": "v1" } ] }