CVE-2024-47666 scsi: pm80xx: Set phy->enable_completion only when we wait for it

Medium 5.5 Published Updated

A use-after-free bug in the pm80xx SCSI driver allows a late response to trigger a kernel crash, causing denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-47666?

CVE-2024-47666 is a medium-severity use after free vulnerability in Linux kernel, published on 9 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

scsi: pm80xx: Set phy->enable_completion only when we wait for it

pm8001_phy_control() populates the enable_completion pointer with a stack address, sends a PHY_LINK_RESET / PHY_HARD_RESET, waits 300 ms, and returns. The problem arises when a phy control response comes late. After 300 ms the pm8001_phy_control() function returns and the passed enable_completion stack address is no longer valid. Late phy control response invokes complete() on a dangling enable_completion pointer which leads to a kernel crash.

Weakness: CWE-416

Which versions are affected by CVE-2024-47666?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-47666?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2024-47666 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-50749, BELL-CVE-2024-47666, DEBIAN-CVE-2024-47666, GHSA-89mf-4cg3-w93v, ROOT-OS-DEBIAN-11-CVE-2024-47666, ROOT-OS-DEBIAN-12-CVE-2024-47666 and 2 more.

Is CVE-2024-47666 in your software?

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

Check your SBOMs for free