sfc: fix null pointer dereference in efx_hard_start_xmit (Linux Linux)

CVE-2022-48648
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.23 % · centile 13 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: sfc: fix null pointer dereference in efx_hard_start_xmit Trying to get the channel from the tx_queue variable here is wrong because we can only be here if tx_queue is NULL, so we shouldn't dereference it. As the above comment in the code says, this is very unlikely to happen, but it's wrong anyway so let's fix it. I hit this issue because of a different bug that caused tx_queue to be NULL. If that happens, this is the error message that we get here: BUG: unable to handle kernel NULL pointer dereference at 0000000000000020 [...] RIP: 0010:efx_hard_start_xmit+0x153/0x170 [sfc]

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 12804793b17c0e19115a90d98f2f3df0cb79e233 < b3b41d4d95d3822b2e459ecbc80d030ea6aec5e7 ; affected 12804793b17c0e19115a90d98f2f3df0cb79e233 < 8547c7bfc0617e7184e4da65b9b96681fcfe9998 ; affected 12804793b17c0e19115a90d98f2f3df0cb79e233 < b3b952168ee1f220ba729fa100fd9d5aa752eb03 ; affected 12804793b17c0e19115a90d98f2f3df0cb79e233 < 0a242eb2913a4aa3d6fbdb86559f27628e9466f3
Linux · Linuxaffected 5.10 ; unaffected 0 < 5.10 ; unaffected 5.10.146 ≤ 5.10.* ; unaffected 5.15.71 ≤ 5.15.* ; unaffected 5.19.12 ≤ 5.19.* ; unaffected 6.0 ≤ *

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