xfrm: fix refcount leak in __xfrm_policy_check() (Linux Linux)

CVE-2022-50007
MEDIUM 5.5

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: xfrm: fix refcount leak in __xfrm_policy_check() The issue happens on an error path in __xfrm_policy_check(). When the fetching process of the object `pols[1]` fails, the function simply returns 0, forgetting to decrement the reference count of `pols[0]`, which is incremented earlier by either xfrm_sk_policy_lookup() or xfrm_policy_lookup(). This may result in memory leaks. Fix it by decreasing the reference count of `pols[0]` in that path.

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 134b0fc544ba062498451611cb6f3e4454221b3d < 18e6b6e2555c93f5ca09f2b85ef1fa025c8accea ; affected 134b0fc544ba062498451611cb6f3e4454221b3d < 8f94b933103ee1bda119543369cc18a1be5536db ; affected 134b0fc544ba062498451611cb6f3e4454221b3d < 0769491a8acd3e85ca4c3f65080eac2c824262df ; affected 134b0fc544ba062498451611cb6f3e4454221b3d < 63da7a2bbf3f28094920e0b8a17d2571a9bd842d ; affected 134b0fc544ba062498451611cb6f3e4454221b3d < 1305d7d4f35ca6f214a2d23b075aa6a924cff3be ; affected 134b0fc544ba062498451611cb6f3e4454221b3d < 26ad2398fe4984f4f6f930bcb3bc9047fa77265b
Linux · Linuxaffected 2.6.19 ; unaffected 0 < 2.6.19 ; unaffected 4.9.327 ≤ 4.9.* ; unaffected 4.14.292 ≤ 4.14.* ; unaffected 4.19.257 ≤ 4.19.* ; unaffected 5.4.212 ≤ 5.4.*

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