Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2023-52787
HistoryMay 21, 2024 - 3:31 p.m.

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

2024-05-2115:31:04
Linux
github.com
linux kernel
vulnerability
blk-mq
bio_integrity_prep
blk_integrity_unregister
kernel panic
bio merge

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

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

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "block/blk-mq.c"
    ],
    "versions": [
      {
        "version": "900e08075202",
        "lessThan": "b5c8e0ff76d1",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "900e08075202",
        "lessThan": "e9c309ded295",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "900e08075202",
        "lessThan": "b80056bd75a1",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "900e08075202",
        "lessThan": "b0077e269f6c",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "block/blk-mq.c"
    ],
    "versions": [
      {
        "version": "5.16",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.16",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.72",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.5.13",
        "lessThanOrEqual": "6.5.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.3",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

Related for VULNRICHMENT:CVE-2023-52787