CVE-2024-26760
JSON

9.8critical

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

Severity
9.8critical CVSS:3.1 by Linux
Exploit likelihood
0.65% (higher than 52% of CVEs; EPSS, by FIRST)
Published
Last changed
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().

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 5.19 before 6.1.80, from 6.2 before 6.6.19, from 6.7 before 6.7.7, 6.8NVD

All scores

Linux9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: scsi: target: pscsi: corrige bio_put() para el caso de error A partir del commit 066ff571011d ("bloque: convierte bio_kmalloc en un contenedor kmalloc simple"), una biografía asignada por bio_kmalloc() debe ser liberado por bio_uninit() y kfree(). Esto no se hace correctamente en el caso de error, al presionar WARN y desreferenciar el puntero NULL en bio_free().

References

Sources

SourceRecordLicence
CVE ListCVE-2024-26760 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-26760 changed 2026-08-04Public domain