usb: typec: ucsi: Fix null pointer dereference in trace (Linux Linux)

CVE-2024-46719
MEDIUM 5.5

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: usb: typec: ucsi: Fix null pointer dereference in trace ucsi_register_altmode checks IS_ERR for the alt pointer and treats NULL as valid. When CONFIG_TYPEC_DP_ALTMODE is not enabled, ucsi_register_displayport returns NULL which causes a NULL pointer dereference in trace. Rather than return NULL, call typec_port_register_altmode to register DisplayPort alternate mode as a non-controllable mode when CONFIG_TYPEC_DP_ALTMODE is not enabled.

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: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 af8622f6a585d8d82b11cd7987e082861fd0edd3 < 8095bf0579ed4906a33f7bec675bfb29b6b16a3b ; affected af8622f6a585d8d82b11cd7987e082861fd0edd3 < 7e64cabe81c303bdf6fd26b6a09a3289b33bc870 ; affected af8622f6a585d8d82b11cd7987e082861fd0edd3 < 3aa56313b0de06ce1911950b2cc0c269614a87a9 ; affected af8622f6a585d8d82b11cd7987e082861fd0edd3 < b4243c05d7e3db0bdbf9124e6fa59b4ca7c807ae ; affected af8622f6a585d8d82b11cd7987e082861fd0edd3 < 3b9f2d9301ae67070fe77a0c06758722fd7172b7 ; affected af8622f6a585d8d82b11cd7987e082861fd0edd3 < 99331fe68a8eaa4097143a33fb0c12d5e5e8e830
Linux · Linuxaffected 5.2 ; unaffected 0 < 5.2 ; unaffected 5.4.284 ≤ 5.4.* ; unaffected 5.10.226 ≤ 5.10.* ; unaffected 5.15.167 ≤ 5.15.* ; unaffected 6.1.109 ≤ 6.1.*

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