---
id: CVE-2024-26760
title: |-
  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()…
summary: |-
  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()…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-476
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.19, < 6.1.80'
  - 'linux_kernel >= 6.2, < 6.6.19'
  - 'linux_kernel >= 6.7, < 6.7.7'
  - linux_kernel = 6.8
patched:
  - linux_kernel 6.7.7
published: '2024-04-03'
updated: '2026-08-04'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-26760'
references:
  - url: 'https://git.kernel.org/stable/c/1cfe9489fb563e9a0c9cdc5ca68257a44428c2ec'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4ebc079f0c7dcda1270843ab0f38ab4edb8f7921'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/de959094eb2197636f7c803af0943cb9d3b35804'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/f49b20fd0134da84a6bd8108f9e73c077b7d6231'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/1cfe9489fb563e9a0c9cdc5ca68257a44428c2ec'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/4ebc079f0c7dcda1270843ab0f38ab4edb8f7921'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/de959094eb2197636f7c803af0943cb9d3b35804'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/f49b20fd0134da84a6bd8108f9e73c077b7d6231'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00644
epssPercentile: 0.48706
ingestedAt: '2026-08-05T10:46:48.483Z'
---

## Overview

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().

## Affected

- `linux_kernel >= 5.19, < 6.1.80`
- `linux_kernel >= 6.2, < 6.6.19`
- `linux_kernel >= 6.7, < 6.7.7`
- `linux_kernel = 6.8`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.7.7`
