ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo() (Linux Linux)

CVE-2022-49731
MEDIUM 5.5

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo() In an unlikely (and probably wrong?) case that the 'ppi' parameter of ata_host_alloc_pinfo() points to an array starting with a NULL pointer, there's going to be a kernel oops as the 'pi' local variable won't get reassigned from the initial value of NULL. Initialize 'pi' instead to '&ata_dummy_port_info' to fix the possible kernel oops for good... Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool.

Faiblesses (CWE)

  • CWE-476 — Déréférencement de pointeur nul

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:HCISA-ADP
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)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected f5cda257296fbd3683b1f568f2d94d3caaacf74d < ca4693e6e06e4fd2b240c0fec47aa2498c94848e ; affected f5cda257296fbd3683b1f568f2d94d3caaacf74d < 1ac5efee33f29e704226506d429b84575a5d66f8 ; affected f5cda257296fbd3683b1f568f2d94d3caaacf74d < a810bd5af06977a847d1f202b22d7defd5c62497 ; affected f5cda257296fbd3683b1f568f2d94d3caaacf74d < 253334f84c81bc6a43af489f108c0bddad989eef ; affected f5cda257296fbd3683b1f568f2d94d3caaacf74d < 36cd19e7d4e5571d77a2ed20c5b6ef50cf57734a ; affected f5cda257296fbd3683b1f568f2d94d3caaacf74d < ff128fbea720bf763fa345680dda5f050bc24a47
Linux · Linuxaffected 2.6.22 ; unaffected 0 < 2.6.22 ; unaffected 4.9.320 ≤ 4.9.* ; unaffected 4.14.285 ≤ 4.14.* ; unaffected 4.19.249 ≤ 4.19.* ; unaffected 5.4.200 ≤ 5.4.*

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