CVE-2022-49569
spi: bcm2835: bcm2835_spi_handle_err(): fix NULL pointer deref for non DMA transfers
MEDIUM 5.5
En bref
- Source
- NVD
- EPSS
- EPSS 0.26 % · centile 18 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Linux
- Statut NVD
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: spi: bcm2835: bcm2835_spi_handle_err(): fix NULL pointer deref for non DMA transfers In case a IRQ based transfer times out the bcm2835_spi_handle_err() function is called. Since commit 1513ceee70f2 ("spi: bcm2835: Drop dma_pending flag") the TX and RX DMA transfers are unconditionally canceled, leading to NULL pointer derefs if ctlr->dma_tx or ctlr->dma_rx are not set. Fix the NULL pointer deref by checking that ctlr->dma_tx and ctlr->dma_rx are valid pointers before accessing them.
Faiblesses (CWE)
- CWE-476 — Déréférencement de pointeur nul
Références
- https://git.kernel.org/stable/c/76668d2a2f367d25ff448e6d7087406af7d7bb2b
- https://git.kernel.org/stable/c/684896e675edd8b669fd3e9f547c5038222d85bc
- https://git.kernel.org/stable/c/58466e05390043d2805685c70f55f3f59711bdf2
- https://git.kernel.org/stable/c/49ffa473218012e765682343de2052eb4c1f06a7
- https://git.kernel.org/stable/c/4ceaa684459d414992acbefb4e4c31f2dfc50641
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | CISA-ADP |
| CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | NVD · nvd@nist.gov (Primary) |
| CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | NVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) |
Références européennes
- ENISA EUVD · EUVD-2022-54663
- GCVE · GCVE-0-2022-49569
Avis du CERT-FR
- CERTFR-2025-AVI-0336 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0307 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0252 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
Configurations affectées (CPE NVD)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.4 < 5.4.208cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.5 < 5.10.134cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.11 < 5.15.58cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.16 < 5.18.15cpe:2.3:o:linux:linux_kernel:5.19:rc1:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.19:rc2:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.19:rc3:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.19:rc4:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.19:rc5:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.19:rc6:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:5.19:rc7:*:*:*:*:*:*
Produits affectés
| Produit | Versions |
|---|---|
| Linux · Linux | affected 1513ceee70f2bd523e025efe0c715328e1a43ffd < 76668d2a2f367d25ff448e6d7087406af7d7bb2b ; affected 1513ceee70f2bd523e025efe0c715328e1a43ffd < 684896e675edd8b669fd3e9f547c5038222d85bc ; affected 1513ceee70f2bd523e025efe0c715328e1a43ffd < 58466e05390043d2805685c70f55f3f59711bdf2 ; affected 1513ceee70f2bd523e025efe0c715328e1a43ffd < 49ffa473218012e765682343de2052eb4c1f06a7 ; affected 1513ceee70f2bd523e025efe0c715328e1a43ffd < 4ceaa684459d414992acbefb4e4c31f2dfc50641 |
| Linux · Linux | affected 5.4 ; unaffected 0 < 5.4 ; unaffected 5.4.208 ≤ 5.4.* ; unaffected 5.10.134 ≤ 5.10.* ; unaffected 5.15.58 ≤ 5.15.* ; unaffected 5.18.15 ≤ 5.18.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |