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

Critical 9.8 Published Updated

A null pointer dereference in the Linux kernel SCSI target subsystem can cause a system crash when handling specific I/O errors.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-26760?

CVE-2024-26760 is a critical vulnerability in Linux kernel, published on 3 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-476

Which versions are affected by CVE-2024-26760?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-26760?

Apply the vendor's patch.

Is CVE-2024-26760 being exploited?

There is no known exploitation of CVE-2024-26760 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-26760, DEBIAN-CVE-2024-26760, GHSA-gcr9-247m-6cpp, UBUNTU-CVE-2024-26760.

Is CVE-2024-26760 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free