# CVE-2023-52787: blk-mq: make sure active queue usage is held for bio_integrity_prep()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-05-21T15:31:04.343Z
- Modified: 2026-06-17T06:43:34.930Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

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

blk_integrity_unregister() 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 bio_integrity_prep() needs to be called
before bio merge.

Fix the issue by:

- call bio_integrity_prep() with one queue usage counter grabbed reliably

- call bio_integrity_prep() before bio merge

(As written by CVE List.)

## Affected

- Linux Linux: from 900e080752025f0016128f07c9ed4c50eba3654b before b5c8e0ff76d10f6bf70a7237678f27c20cf59bc9; from 900e080752025f0016128f07c9ed4c50eba3654b before e9c309ded295b7f8849097d71ae231456ca79f78; from 900e080752025f0016128f07c9ed4c50eba3654b before b80056bd75a16e4550873ecefe12bc8fd190b1cf; from 900e080752025f0016128f07c9ed4c50eba3654b before b0077e269f6c152e807fdac90b58caf012cdbaab; 5.16 (not affected: before 5.16; from 6.1.72 up to 6.1.*; from 6.5.13 up to 6.5.*; from 6.6.3 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: from 5.16 before 6.1.72; from 6.2 before 6.5.13; from 6.6 before 6.6.3; 6.7

## References

- <https://git.kernel.org/stable/c/b5c8e0ff76d10f6bf70a7237678f27c20cf59bc9> (patch)
- <https://git.kernel.org/stable/c/e9c309ded295b7f8849097d71ae231456ca79f78> (patch)
- <https://git.kernel.org/stable/c/b80056bd75a16e4550873ecefe12bc8fd190b1cf> (patch)
- <https://git.kernel.org/stable/c/b0077e269f6c152e807fdac90b58caf012cdbaab> (patch)

## Sources

- CVE List: [CVE-2023-52787](https://www.cve.org/CVERecord?id=CVE-2023-52787), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52787](https://nvd.nist.gov/vuln/detail/CVE-2023-52787), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52787 · Whole record: https://cve.day/CVE-2023-52787.json · Rebuilt by cve.day 2026-11-25T22:58:34.020Z
