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

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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.65%, higher than 52% of CVEs (2026-12-01)
- Published: 2024-04-03T17:00:44.230Z
- Modified: 2026-08-05T11:27:03.216Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

(As written by CVE List.)

## Affected

- Linux Linux: from 066ff571011d8416e903d3d4f1f41e0b5eb91e1d before f49b20fd0134da84a6bd8108f9e73c077b7d6231; from 066ff571011d8416e903d3d4f1f41e0b5eb91e1d before 4ebc079f0c7dcda1270843ab0f38ab4edb8f7921; from 066ff571011d8416e903d3d4f1f41e0b5eb91e1d before 1cfe9489fb563e9a0c9cdc5ca68257a44428c2ec; from 066ff571011d8416e903d3d4f1f41e0b5eb91e1d before de959094eb2197636f7c803af0943cb9d3b35804; 5.19 (not affected: before 5.19; from 6.1.80 up to 6.1.*; from 6.6.19 up to 6.6.*; from 6.7.7 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 5.19 before 6.1.80; from 6.2 before 6.6.19; from 6.7 before 6.7.7; 6.8

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/f49b20fd0134da84a6bd8108f9e73c077b7d6231> (patch)
- <https://git.kernel.org/stable/c/4ebc079f0c7dcda1270843ab0f38ab4edb8f7921> (patch)
- <https://git.kernel.org/stable/c/1cfe9489fb563e9a0c9cdc5ca68257a44428c2ec> (patch)
- <https://git.kernel.org/stable/c/de959094eb2197636f7c803af0943cb9d3b35804> (patch)

## Sources

- CVE List: [CVE-2024-26760](https://www.cve.org/CVERecord?id=CVE-2024-26760), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-26760](https://nvd.nist.gov/vuln/detail/CVE-2024-26760), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-26760 · Whole record: https://cve.day/CVE-2024-26760.json · Rebuilt by cve.day 2026-11-25T22:58:38.689Z
