Lucene search

K
cvelistLinuxCVELIST:CVE-2024-26760
HistoryApr 03, 2024 - 5:00 p.m.

CVE-2024-26760 scsi: target: pscsi: Fix bio_put() for error case

2024-04-0317:00:44
Linux
www.cve.org
linux kernel
vulnerability
scsi
target
pscsi
fix
bio_put
commit"errors
bio_kmalloc
bio_uninit
kfree
warn
null pointer
dereference
bio_free

7.7 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.7%

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

scsi: target: pscsi: Fix bio_put() for error case

As of commit 066ff571011d (“block: turn bio_kmalloc into a simple kmalloc
wrapper”), a bio allocated by bio_kmalloc() must be freed by bio_uninit()
and kfree(). That is not done properly for the error case, hitting WARN and
NULL pointer dereference in bio_free().

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/target/target_core_pscsi.c"
    ],
    "versions": [
      {
        "version": "066ff571011d",
        "lessThan": "f49b20fd0134",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "066ff571011d",
        "lessThan": "4ebc079f0c7d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "066ff571011d",
        "lessThan": "1cfe9489fb56",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "066ff571011d",
        "lessThan": "de959094eb21",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/target/target_core_pscsi.c"
    ],
    "versions": [
      {
        "version": "5.19",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.19",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.80",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.19",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7.7",
        "lessThanOrEqual": "6.7.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

7.7 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.7%