nfc: nci: Fix uninit-value in nci_dev_up and nci_ntf_packet (Linux Linux)

CVE-2024-35915
HIGH 8.8

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: nfc: nci: Fix uninit-value in nci_dev_up and nci_ntf_packet syzbot reported the following uninit-value access issue [1][2]: nci_rx_work() parses and processes received packet. When the payload length is zero, each message type handler reads uninitialized payload and KMSAN detects this issue. The receipt of a packet with a zero-size payload is considered unexpected, and therefore, such packets should be silently discarded. This patch resolved this issue by checking payload size before calling each message type handler codes.

Faiblesses (CWE)

  • CWE-908 — Utilisation d'une ressource non initialisée

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 8.8CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 8.8CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
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 6a2968aaf50c7a22fced77a5e24aa636281efca8 < 11387b2effbb55f58dc2111ef4b4b896f2756240 ; affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 < 03fe259649a551d336a7f20919b641ea100e3fff ; affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 < 755e53bbc61bc1aff90eafa64c8c2464fd3dfa3c ; affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 < ac68d9fa09e410fa3ed20fb721d56aa558695e16 ; affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 < b51ec7fc9f877ef869c01d3ea6f18f6a64e831a7 ; affected 6a2968aaf50c7a22fced77a5e24aa636281efca8 < a946ebee45b09294c8b0b0e77410b763c4d2817a
Linux · Linuxaffected 3.2 ; unaffected 0 < 3.2 ; unaffected 4.19.312 ≤ 4.19.* ; unaffected 5.4.274 ≤ 5.4.* ; unaffected 5.10.215 ≤ 5.10.* ; unaffected 5.15.154 ≤ 5.15.*

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