{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-50007",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-06-18T10:57:27.388Z",
        "datePublished": "2025-06-18T11:01:12.447Z",
        "dateUpdated": "2026-05-11T19:10:55.254Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-05-11T19:10:55.254Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: fix refcount leak in __xfrm_policy_check()\n\nThe issue happens on an error path in __xfrm_policy_check(). When the\nfetching process of the object `pols[1]` fails, the function simply\nreturns 0, forgetting to decrement the reference count of `pols[0]`,\nwhich is incremented earlier by either xfrm_sk_policy_lookup() or\nxfrm_policy_lookup(). This may result in memory leaks.\n\nFix it by decreasing the reference count of `pols[0]` in that path."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/xfrm/xfrm_policy.c"
                    ],
                    "versions": [
                        {
                            "version": "134b0fc544ba062498451611cb6f3e4454221b3d",
                            "lessThan": "18e6b6e2555c93f5ca09f2b85ef1fa025c8accea",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "134b0fc544ba062498451611cb6f3e4454221b3d",
                            "lessThan": "8f94b933103ee1bda119543369cc18a1be5536db",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "134b0fc544ba062498451611cb6f3e4454221b3d",
                            "lessThan": "0769491a8acd3e85ca4c3f65080eac2c824262df",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "134b0fc544ba062498451611cb6f3e4454221b3d",
                            "lessThan": "63da7a2bbf3f28094920e0b8a17d2571a9bd842d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "134b0fc544ba062498451611cb6f3e4454221b3d",
                            "lessThan": "1305d7d4f35ca6f214a2d23b075aa6a924cff3be",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "134b0fc544ba062498451611cb6f3e4454221b3d",
                            "lessThan": "26ad2398fe4984f4f6f930bcb3bc9047fa77265b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "134b0fc544ba062498451611cb6f3e4454221b3d",
                            "lessThan": "d66c052879791313f90c0584420f196a038fb8b8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "134b0fc544ba062498451611cb6f3e4454221b3d",
                            "lessThan": "9c9cb23e00ddf45679b21b4dacc11d1ae7961ebe",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/xfrm/xfrm_policy.c"
                    ],
                    "versions": [
                        {
                            "version": "2.6.19",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "2.6.19",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.9.327",
                            "lessThanOrEqual": "4.9.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.14.292",
                            "lessThanOrEqual": "4.14.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.257",
                            "lessThanOrEqual": "4.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.212",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.140",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.64",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.19.6",
                            "lessThanOrEqual": "5.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.19",
                                    "versionEndExcluding": "4.9.327"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.19",
                                    "versionEndExcluding": "4.14.292"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.19",
                                    "versionEndExcluding": "4.19.257"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.19",
                                    "versionEndExcluding": "5.4.212"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.19",
                                    "versionEndExcluding": "5.10.140"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.19",
                                    "versionEndExcluding": "5.15.64"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.19",
                                    "versionEndExcluding": "5.19.6"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.19",
                                    "versionEndExcluding": "6.0"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/18e6b6e2555c93f5ca09f2b85ef1fa025c8accea"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8f94b933103ee1bda119543369cc18a1be5536db"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0769491a8acd3e85ca4c3f65080eac2c824262df"
                },
                {
                    "url": "https://git.kernel.org/stable/c/63da7a2bbf3f28094920e0b8a17d2571a9bd842d"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1305d7d4f35ca6f214a2d23b075aa6a924cff3be"
                },
                {
                    "url": "https://git.kernel.org/stable/c/26ad2398fe4984f4f6f930bcb3bc9047fa77265b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d66c052879791313f90c0584420f196a038fb8b8"
                },
                {
                    "url": "https://git.kernel.org/stable/c/9c9cb23e00ddf45679b21b4dacc11d1ae7961ebe"
                }
            ],
            "title": "xfrm: fix refcount leak in __xfrm_policy_check()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}