scsi: pm80xx: Set phy->enable_completion only when we wait for it
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 869ddbdcae3b4fb83b99889abae31544c149b210 · < e4f949ef1516c0d74745ee54a0f4882c1f6c7aea| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s pm80xx SCSI driver can retain a pointer to a stack address after a PHY reset wait times out at 300 ms. If the PHY control response arrives later, the driver can use that invalid pointer and crash the kernel. The input does not establish an attacker path, authentication requirement, or user-interaction requirement.
Engineers running Linux kernels with the pm80xx SCSI driver should check their kernel version; affected versions were not provided.