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
[
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@885c28ceae7dab2b18c2cc0eb95f1f82b1f629d1",
"id": "CVE-2023-53051-0289c2c0",
"digest": {
"function_hash": "42721164416997698578587716228271210207",
"length": 826.0
},
"target": {
"function": "dmcrypt_write",
"file": "drivers/md/dm-crypt.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0eb61b493dbbc32529fbd0d2e945b71b0e47306",
"id": "CVE-2023-53051-0d860d1c",
"digest": {
"function_hash": "42721164416997698578587716228271210207",
"length": 826.0
},
"target": {
"function": "dmcrypt_write",
"file": "drivers/md/dm-crypt.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@885c28ceae7dab2b18c2cc0eb95f1f82b1f629d1",
"id": "CVE-2023-53051-132e0799",
"digest": {
"line_hashes": [
"270151366302187517573996008739416845113",
"179852049649478582667668332882647994130",
"52877631434417254032765878568861342634",
"217389624221956447455029055459870235095"
],
"threshold": 0.9
},
"target": {
"file": "drivers/md/dm-crypt.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e87cd83f70504f1cd2e428966f353c007d6d2d7f",
"id": "CVE-2023-53051-1b358be8",
"digest": {
"line_hashes": [
"270151366302187517573996008739416845113",
"179852049649478582667668332882647994130",
"52877631434417254032765878568861342634",
"217389624221956447455029055459870235095"
],
"threshold": 0.9
},
"target": {
"file": "drivers/md/dm-crypt.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@66ff37993dd7e9954b6446237fe2453b380ce40d",
"id": "CVE-2023-53051-3a7d3eaa",
"digest": {
"function_hash": "42721164416997698578587716228271210207",
"length": 826.0
},
"target": {
"function": "dmcrypt_write",
"file": "drivers/md/dm-crypt.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2c743db1193bf0e76c73d71ede08bd9b96e6c31d",
"id": "CVE-2023-53051-505408a6",
"digest": {
"line_hashes": [
"270151366302187517573996008739416845113",
"179852049649478582667668332882647994130",
"52877631434417254032765878568861342634",
"217389624221956447455029055459870235095"
],
"threshold": 0.9
},
"target": {
"file": "drivers/md/dm-crypt.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e87cd83f70504f1cd2e428966f353c007d6d2d7f",
"id": "CVE-2023-53051-68015ddb",
"digest": {
"function_hash": "137701451842886757187604125483527861685",
"length": 1037.0
},
"target": {
"function": "dmcrypt_write",
"file": "drivers/md/dm-crypt.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fb294b1c0ba982144ca467a75e7d01ff26304e2b",
"id": "CVE-2023-53051-752ea1c2",
"digest": {
"function_hash": "42721164416997698578587716228271210207",
"length": 826.0
},
"target": {
"function": "dmcrypt_write",
"file": "drivers/md/dm-crypt.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0eb61b493dbbc32529fbd0d2e945b71b0e47306",
"id": "CVE-2023-53051-7baccca9",
"digest": {
"line_hashes": [
"270151366302187517573996008739416845113",
"179852049649478582667668332882647994130",
"52877631434417254032765878568861342634",
"217389624221956447455029055459870235095"
],
"threshold": 0.9
},
"target": {
"file": "drivers/md/dm-crypt.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eb485b7404a281d974bd445ddc5b0b8d5958f371",
"id": "CVE-2023-53051-833560f0",
"digest": {
"line_hashes": [
"270151366302187517573996008739416845113",
"179852049649478582667668332882647994130",
"52877631434417254032765878568861342634",
"217389624221956447455029055459870235095"
],
"threshold": 0.9
},
"target": {
"file": "drivers/md/dm-crypt.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7b9f8efb5fc888dd938d2964e705b8e00f1dc0f6",
"id": "CVE-2023-53051-8d807add",
"digest": {
"function_hash": "42721164416997698578587716228271210207",
"length": 826.0
},
"target": {
"function": "dmcrypt_write",
"file": "drivers/md/dm-crypt.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@eb485b7404a281d974bd445ddc5b0b8d5958f371",
"id": "CVE-2023-53051-94d60e93",
"digest": {
"function_hash": "42721164416997698578587716228271210207",
"length": 826.0
},
"target": {
"function": "dmcrypt_write",
"file": "drivers/md/dm-crypt.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2c743db1193bf0e76c73d71ede08bd9b96e6c31d",
"id": "CVE-2023-53051-bb5f2afd",
"digest": {
"function_hash": "42721164416997698578587716228271210207",
"length": 826.0
},
"target": {
"function": "dmcrypt_write",
"file": "drivers/md/dm-crypt.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7b9f8efb5fc888dd938d2964e705b8e00f1dc0f6",
"id": "CVE-2023-53051-e83a9230",
"digest": {
"line_hashes": [
"270151366302187517573996008739416845113",
"179852049649478582667668332882647994130",
"52877631434417254032765878568861342634",
"217389624221956447455029055459870235095"
],
"threshold": 0.9
},
"target": {
"file": "drivers/md/dm-crypt.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fb294b1c0ba982144ca467a75e7d01ff26304e2b",
"id": "CVE-2023-53051-f031f1b2",
"digest": {
"line_hashes": [
"270151366302187517573996008739416845113",
"179852049649478582667668332882647994130",
"52877631434417254032765878568861342634",
"217389624221956447455029055459870235095"
],
"threshold": 0.9
},
"target": {
"file": "drivers/md/dm-crypt.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@66ff37993dd7e9954b6446237fe2453b380ce40d",
"id": "CVE-2023-53051-fd05d0c5",
"digest": {
"line_hashes": [
"270151366302187517573996008739416845113",
"179852049649478582667668332882647994130",
"52877631434417254032765878568861342634",
"217389624221956447455029055459870235095"
],
"threshold": 0.9
},
"target": {
"file": "drivers/md/dm-crypt.c"
},
"signature_type": "Line",
"signature_version": "v1"
}
]