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

CVE-2024-47666
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.21 % · centile 11 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

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.

Faiblesses (CWE)

  • CWE-416 — Utilisation après libération

Références

Scores

VersionScoreVecteurÉvalué par
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)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected 869ddbdcae3b4fb83b99889abae31544c149b210 < ddc501f4130f4baa787cb6cfa309af697179f475 ; affected 869ddbdcae3b4fb83b99889abae31544c149b210 < a5d954802bda1aabcba49633cd94bad91c94113f ; affected 869ddbdcae3b4fb83b99889abae31544c149b210 < e23ee0cc5bded07e700553aecc333bb20c768546 ; affected 869ddbdcae3b4fb83b99889abae31544c149b210 < 7b1d779647afaea9185fa2f150b1721e7c1aae89 ; affected 869ddbdcae3b4fb83b99889abae31544c149b210 < f14d3e1aa613311c744af32d75125e95fc8ffb84 ; affected 869ddbdcae3b4fb83b99889abae31544c149b210 < e4f949ef1516c0d74745ee54a0f4882c1f6c7aea
Linux · Linuxaffected 4.15 ; unaffected 0 < 4.15 ; unaffected 5.10.247 ≤ 5.10.* ; unaffected 5.15.197 ≤ 5.15.* ; unaffected 6.1.159 ≤ 6.1.* ; unaffected 6.6.51 ≤ 6.6.*

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