CVE-2022-50677 (GCVE-0-2022-50677)
Vulnerability from cvelistv5
Published
2025-12-09 01:29
Modified
2026-08-05 08:59
Summary
In the Linux kernel, the following vulnerability has been resolved: ipmi: fix use after free in _ipmi_destroy_user() The intf_free() function frees the "intf" pointer so we cannot dereference it again on the next line.
Impacted products
Vendor Product Version
Linux Linux Version: f9d405a4bd6090ffbf3bba5e2da6b44c0e013cb3
Version: b642ced2cad496c32ae1f62b85fc395391190820
Version: cbb79863fc3175ed5ac506465948b02a893a8235
Version: cbb79863fc3175ed5ac506465948b02a893a8235
Version: cbb79863fc3175ed5ac506465948b02a893a8235
Version: cbb79863fc3175ed5ac506465948b02a893a8235
Version: cbb79863fc3175ed5ac506465948b02a893a8235
Version: 4.19.92   
Version: 5.4.7   
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/char/ipmi/ipmi_msghandler.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "35ad87bfe330f7ef6a19f772223c63296d643172",
              "status": "affected",
              "version": "f9d405a4bd6090ffbf3bba5e2da6b44c0e013cb3",
              "versionType": "git"
            },
            {
              "lessThan": "d23006f2a56e11a3103de0ca8b843bf7fd7d76fc",
              "status": "affected",
              "version": "b642ced2cad496c32ae1f62b85fc395391190820",
              "versionType": "git"
            },
            {
              "lessThan": "f29d127b372e1b7662397d92341d9f7de198ff99",
              "status": "affected",
              "version": "cbb79863fc3175ed5ac506465948b02a893a8235",
              "versionType": "git"
            },
            {
              "lessThan": "bfce073089cb81482521c65061835aaa6d1a6cc0",
              "status": "affected",
              "version": "cbb79863fc3175ed5ac506465948b02a893a8235",
              "versionType": "git"
            },
            {
              "lessThan": "f7fde441198a9ecb130c3ccec91ee2131d6998ee",
              "status": "affected",
              "version": "cbb79863fc3175ed5ac506465948b02a893a8235",
              "versionType": "git"
            },
            {
              "lessThan": "1fc9b20a7688000fcf4d7fbaa58e415a3cdda961",
              "status": "affected",
              "version": "cbb79863fc3175ed5ac506465948b02a893a8235",
              "versionType": "git"
            },
            {
              "lessThan": "a92ce570c81dc0feaeb12a429b4bc65686d17967",
              "status": "affected",
              "version": "cbb79863fc3175ed5ac506465948b02a893a8235",
              "versionType": "git"
            },
            {
              "lessThan": "4.19.270",
              "status": "affected",
              "version": "4.19.92",
              "versionType": "semver"
            },
            {
              "lessThan": "5.4.229",
              "status": "affected",
              "version": "5.4.7",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/char/ipmi/ipmi_msghandler.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.5"
            },
            {
              "lessThan": "5.5",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.270",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.229",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.87",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.18",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.270",
                  "versionStartIncluding": "4.19.92",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.229",
                  "versionStartIncluding": "5.4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.163",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.87",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.18",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.4",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "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": {
            "baseScore": 7,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "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 \u2192 ipmi_destroy_user \u2192 _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-\u003eowner) 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-\u003eowner) 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-\u003eowner 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."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:59:23.537Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "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"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50677",
    "datePublished": "2025-12-09T01:29:30.418Z",
    "dateReserved": "2025-12-09T01:26:45.991Z",
    "dateUpdated": "2026-08-05T08:59:23.537Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…