{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-50677",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-12-09T01:26:45.991Z",
        "datePublished": "2025-12-09T01:29:30.418Z",
        "dateUpdated": "2026-08-05T08:59:23.537Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:59:23.537Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nipmi: fix use after free in _ipmi_destroy_user()\n\nThe intf_free() function frees the \"intf\" pointer so we cannot\ndereference it again on the next line."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The UAF is reached by destroying an IPMI user via the local character-device path (close/release on /dev/ipmiN → ipmi_destroy_user → _ipmi_destroy_user) or the same teardown during local SMI unregister; no remote or adjacent packet path reaches this code.\nAC:H - module_put(intf->owner) only uses freed memory when intf is actually freed in the narrow window after the user kref_put and before that module_put, which requires a concurrent last-ref drop from ipmi_unregister_smi (rmmod/sysfs unbind/hot-remove) that a /dev/ipmi-only attacker cannot start.\nPR:L - ipmi_open/ipmi_create_user perform no capable() check; access is only gated by /dev/ipmiN DAC, and server/appliance deployments routinely grant that node to a non-root management group for ipmitool/freeipmi, matching established IPMI scoring.\nUI:N - The attacker drives open/close on their own IPMI fd; any concurrent unregister is an environmental teardown condition counted under Attack Complexity, not a separate victim interaction.\nS:U - This is a host-kernel heap use-after-free of struct ipmi_smi within the same OS security authority, with no VM escape, IOMMU bypass, or sandbox boundary crossing.\nC:H - After intf_free kfree()s the ipmi_smi, module_put(intf->owner) reads the owner pointer from freed slab (owner is the first field); reclaim/spray of that object yields an attacker-influenced pointer and a kernel read primitive, so confidentiality is High per UAF guidance.\nI:H - module_put() then performs atomic refcount updates through that stale/reclaimed module pointer, giving a write-into-freed-memory / decrement primitive that can corrupt module state or sprayed heap and enable control-flow hijack.\nA:H - Dereferencing the freed ipmi_smi for intf->owner readily oopses under poisoning/init_on_free/KASAN, and a corrupted module_put path can WARN/panic (panic_on_oops/warn), so availability impact is High."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/char/ipmi/ipmi_msghandler.c"
                    ],
                    "versions": [
                        {
                            "version": "f9d405a4bd6090ffbf3bba5e2da6b44c0e013cb3",
                            "lessThan": "35ad87bfe330f7ef6a19f772223c63296d643172",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "b642ced2cad496c32ae1f62b85fc395391190820",
                            "lessThan": "d23006f2a56e11a3103de0ca8b843bf7fd7d76fc",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "cbb79863fc3175ed5ac506465948b02a893a8235",
                            "lessThan": "f29d127b372e1b7662397d92341d9f7de198ff99",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "cbb79863fc3175ed5ac506465948b02a893a8235",
                            "lessThan": "bfce073089cb81482521c65061835aaa6d1a6cc0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "cbb79863fc3175ed5ac506465948b02a893a8235",
                            "lessThan": "f7fde441198a9ecb130c3ccec91ee2131d6998ee",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "cbb79863fc3175ed5ac506465948b02a893a8235",
                            "lessThan": "1fc9b20a7688000fcf4d7fbaa58e415a3cdda961",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "cbb79863fc3175ed5ac506465948b02a893a8235",
                            "lessThan": "a92ce570c81dc0feaeb12a429b4bc65686d17967",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4.19.92",
                            "lessThan": "4.19.270",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.7",
                            "lessThan": "5.4.229",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/char/ipmi/ipmi_msghandler.c"
                    ],
                    "versions": [
                        {
                            "version": "5.5",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.5",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.270",
                            "lessThanOrEqual": "4.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.229",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.163",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.87",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0.18",
                            "lessThanOrEqual": "6.0.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.4",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.2",
                            "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": "4.19.92",
                                    "versionEndExcluding": "4.19.270"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4.7",
                                    "versionEndExcluding": "5.4.229"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "5.10.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "5.15.87"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "6.0.18"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "6.1.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "6.2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/35ad87bfe330f7ef6a19f772223c63296d643172"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d23006f2a56e11a3103de0ca8b843bf7fd7d76fc"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f29d127b372e1b7662397d92341d9f7de198ff99"
                },
                {
                    "url": "https://git.kernel.org/stable/c/bfce073089cb81482521c65061835aaa6d1a6cc0"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f7fde441198a9ecb130c3ccec91ee2131d6998ee"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1fc9b20a7688000fcf4d7fbaa58e415a3cdda961"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a92ce570c81dc0feaeb12a429b4bc65686d17967"
                }
            ],
            "title": "ipmi: fix use after free in _ipmi_destroy_user()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}