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

CVE-2024-26760
CRITICAL 9.8

At a glance

Source
NVD
EPSS
EPSS 0.65 % · percentile 51 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1CRITICAL 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1CRITICAL 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 066ff571011d8416e903d3d4f1f41e0b5eb91e1d < f49b20fd0134da84a6bd8108f9e73c077b7d6231 ; affected 066ff571011d8416e903d3d4f1f41e0b5eb91e1d < 4ebc079f0c7dcda1270843ab0f38ab4edb8f7921 ; affected 066ff571011d8416e903d3d4f1f41e0b5eb91e1d < 1cfe9489fb563e9a0c9cdc5ca68257a44428c2ec ; affected 066ff571011d8416e903d3d4f1f41e0b5eb91e1d < de959094eb2197636f7c803af0943cb9d3b35804
Linux · Linuxaffected 5.19 ; unaffected 0 < 5.19 ; unaffected 6.1.80 ≤ 6.1.* ; unaffected 6.6.19 ≤ 6.6.* ; unaffected 6.7.7 ≤ 6.7.* ; unaffected 6.8 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD