dm crypt: add cond_resched() to dmcrypt_write() (Linux Linux)

CVE-2023-53051
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 12 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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

Weaknesses (CWE)

  • CWE-835 — Loop with Unreachable Exit Condition

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected dc2676210c425ee8e5cb1bec5bc84d004ddf4179 < e87cd83f70504f1cd2e428966f353c007d6d2d7f ; affected dc2676210c425ee8e5cb1bec5bc84d004ddf4179 < 7b9f8efb5fc888dd938d2964e705b8e00f1dc0f6 ; affected dc2676210c425ee8e5cb1bec5bc84d004ddf4179 < 885c28ceae7dab2b18c2cc0eb95f1f82b1f629d1 ; affected dc2676210c425ee8e5cb1bec5bc84d004ddf4179 < 66ff37993dd7e9954b6446237fe2453b380ce40d ; affected dc2676210c425ee8e5cb1bec5bc84d004ddf4179 < eb485b7404a281d974bd445ddc5b0b8d5958f371 ; affected dc2676210c425ee8e5cb1bec5bc84d004ddf4179 < f0eb61b493dbbc32529fbd0d2e945b71b0e47306
Linux · Linuxaffected 4.0 ; unaffected 0 < 4.0 ; unaffected 4.14.312 ≤ 4.14.* ; unaffected 4.19.280 ≤ 4.19.* ; unaffected 5.4.240 ≤ 5.4.* ; unaffected 5.10.177 ≤ 5.10.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD