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
5
linux kernel
vulnerability
blk-mq
bio_integrity_prep
blk_integrity_unregister
kernel panic
bio merge

AI Score

6.7

Confidence

Low

EPSS

0

Percentile

15.5%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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

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

AI Score

6.7

Confidence

Low

EPSS

0

Percentile

15.5%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial