CVE-2023-52787

Source
https://cve.org/CVERecord?id=CVE-2023-52787
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52787.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-52787
Downstream
Related
Published
2024-05-21T15:31:04.343Z
Modified
2026-03-13T07:48:11.175466Z
Summary
blk-mq: make sure active queue usage is held for bio_integrity_prep()
Details

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

blk-mq: make sure active queue usage is held for biointegrityprep()

blkintegrityunregister() can come if queue usage counter isn't held for one bio with integrity prepared, so this request may be completed with calling profile->complete_fn, then kernel panic.

Another constraint is that biointegrityprep() needs to be called before bio merge.

Fix the issue by:

  • call biointegrityprep() with one queue usage counter grabbed reliably

  • call biointegrityprep() before bio merge

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52787.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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
900e080752025f0016128f07c9ed4c50eba3654b
Fixed
b5c8e0ff76d10f6bf70a7237678f27c20cf59bc9
Fixed
e9c309ded295b7f8849097d71ae231456ca79f78
Fixed
b80056bd75a16e4550873ecefe12bc8fd190b1cf
Fixed
b0077e269f6c152e807fdac90b58caf012cdbaab

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-52787.json"