net: cdc_eem: fix tx fixup skb leak (Linux Linux)

CVE-2021-47236
MEDIUM 5.5

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: net: cdc_eem: fix tx fixup skb leak when usbnet transmit a skb, eem fixup it in eem_tx_fixup(), if skb_copy_expand() failed, it return NULL, usbnet_start_xmit() will have no chance to free original skb. fix it by free orginal skb in eem_tx_fixup() first, then check skb clone status, if failed, return NULL to usbnet.

Faiblesses (CWE)

  • CWE-401 — Mémoire non libérée après sa durée de vie utile

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 9f722c0978b04acba209f8ca1896ad05814bc3a3 < f12554b0ff639e74612cc01b3b4a049e098d2d65 ; affected 9f722c0978b04acba209f8ca1896ad05814bc3a3 < 14184ec5c958b589ba934da7363a2877879204df ; affected 9f722c0978b04acba209f8ca1896ad05814bc3a3 < 1bcacd6088d61c0ac6a990d87975600a81f3247e ; affected 9f722c0978b04acba209f8ca1896ad05814bc3a3 < f4e6a7f19c82f39b1803e91c54718f0d7143767d ; affected 9f722c0978b04acba209f8ca1896ad05814bc3a3 < 81de2ed06df8b5451e050fe6a318af3263dbff3f ; affected 9f722c0978b04acba209f8ca1896ad05814bc3a3 < 05b2b9f7d24b5663d9b47427fe1555bdafd3ea02
Linux · Linuxaffected 2.6.30 ; unaffected 0 < 2.6.30 ; unaffected 4.4.274 ≤ 4.4.* ; unaffected 4.9.274 ≤ 4.9.* ; unaffected 4.14.238 ≤ 4.14.* ; unaffected 4.19.196 ≤ 4.19.*

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