CVE-2026-72040 (GCVE-0-2026-72040)

Vulnerability from cvelistv5 – Published: 2026-08-15 05:51 – Updated: 2026-08-23 12:46
VLAI
Title
ipmi: fix refcount leak in i_ipmi_request()
Summary
In the Linux kernel, the following vulnerability has been resolved: ipmi: fix refcount leak in i_ipmi_request() When a caller provides a `supplied_recv` message to i_ipmi_request(), the function increments the user's `nr_msgs` reference count. If an error occurs later, the out_err cleanup path only frees the recv_msg if the function allocated it itself (i.e., !supplied_recv). In the supplied_recv case the cleanup is skipped, leaving the reference count elevated. The caller ipmi_request_supply_msgs() does not release the supplied_recv on error, so the reference is permanently leaked. Fix this by explicitly reverting the reference count operations when a supplied recv_msg with a valid user pointer is present in the error path: decrement nr_msgs and drop the user's kref.
Severity
No CVSS data available.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: f63723ca7d7623f9dae1990973cd158671f03c56 , < 122ca6b2af714e114c9b872a48372ace31a9ab1f (git)
Affected: 348121b29594d42d1635648fd3ed31dfa25351d5 , < 9409e18ffe7378d202efe1cf69989df9f67b0369 (git)
Affected: 53d6e403affbf6df2c859a0ea00ccfc1e72090ca , < e2a3b77df6aef031455dd83ea8ed4344b7dca1f9 (git)
Affected: b52da4054ee0bf9ecb44996f2c83236ff50b3812 , < f5c5065963024390ddad51bd455d1adc710de575 (git)
Affected: b52da4054ee0bf9ecb44996f2c83236ff50b3812 , < 0fd23994ec8c5436d9f0b50848deb87ed933e6b3 (git)
Affected: b52da4054ee0bf9ecb44996f2c83236ff50b3812 , < a3f3859cecacb64f18fd446271ece9a3b3f2d4de (git)
Affected: 0ed73be9a2547ffb9b5c1d879ad9bfab73d920b5 (git)
Affected: 6.1.157 , < 6.1.184 (semver)
Affected: 6.6.113 , < 6.6.148 (semver)
Affected: 6.12.54 , < 6.12.101 (semver)
Affected: 6.17.4 , < 6.18 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 6.18
Unaffected: 0 , < 6.18 (semver)
Unaffected: 6.1.184 , ≤ 6.1.* (semver)
Unaffected: 6.6.148 , ≤ 6.6.* (semver)
Unaffected: 6.12.101 , ≤ 6.12.* (semver)
Unaffected: 6.18.40 , ≤ 6.18.* (semver)
Unaffected: 7.1.5 , ≤ 7.1.* (semver)
Unaffected: 7.2 , ≤ * (original_commit_for_fix)
guessed 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": "122ca6b2af714e114c9b872a48372ace31a9ab1f",
              "status": "affected",
              "version": "f63723ca7d7623f9dae1990973cd158671f03c56",
              "versionType": "git"
            },
            {
              "lessThan": "9409e18ffe7378d202efe1cf69989df9f67b0369",
              "status": "affected",
              "version": "348121b29594d42d1635648fd3ed31dfa25351d5",
              "versionType": "git"
            },
            {
              "lessThan": "e2a3b77df6aef031455dd83ea8ed4344b7dca1f9",
              "status": "affected",
              "version": "53d6e403affbf6df2c859a0ea00ccfc1e72090ca",
              "versionType": "git"
            },
            {
              "lessThan": "f5c5065963024390ddad51bd455d1adc710de575",
              "status": "affected",
              "version": "b52da4054ee0bf9ecb44996f2c83236ff50b3812",
              "versionType": "git"
            },
            {
              "lessThan": "0fd23994ec8c5436d9f0b50848deb87ed933e6b3",
              "status": "affected",
              "version": "b52da4054ee0bf9ecb44996f2c83236ff50b3812",
              "versionType": "git"
            },
            {
              "lessThan": "a3f3859cecacb64f18fd446271ece9a3b3f2d4de",
              "status": "affected",
              "version": "b52da4054ee0bf9ecb44996f2c83236ff50b3812",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "0ed73be9a2547ffb9b5c1d879ad9bfab73d920b5",
              "versionType": "git"
            },
            {
              "lessThan": "6.1.184",
              "status": "affected",
              "version": "6.1.157",
              "versionType": "semver"
            },
            {
              "lessThan": "6.6.148",
              "status": "affected",
              "version": "6.6.113",
              "versionType": "semver"
            },
            {
              "lessThan": "6.12.101",
              "status": "affected",
              "version": "6.12.54",
              "versionType": "semver"
            },
            {
              "lessThan": "6.18",
              "status": "affected",
              "version": "6.17.4",
              "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": "6.18"
            },
            {
              "lessThan": "6.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.184",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.148",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.101",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.40",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.184",
                  "versionStartIncluding": "6.1.157",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.148",
                  "versionStartIncluding": "6.6.113",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.101",
                  "versionStartIncluding": "6.12.54",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.40",
                  "versionStartIncluding": "6.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.5",
                  "versionStartIncluding": "6.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "6.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.17.4",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nipmi: fix refcount leak in i_ipmi_request()\n\nWhen a caller provides a `supplied_recv` message to i_ipmi_request(),\nthe function increments the user\u0027s `nr_msgs` reference count. If an\nerror occurs later, the out_err cleanup path only frees the recv_msg\nif the function allocated it itself (i.e., !supplied_recv). In the\nsupplied_recv case the cleanup is skipped, leaving the reference count\nelevated. The caller ipmi_request_supply_msgs() does not release the\nsupplied_recv on error, so the reference is permanently leaked.\n\nFix this by explicitly reverting the reference count operations when a\nsupplied recv_msg with a valid user pointer is present in the error\npath: decrement nr_msgs and drop the user\u0027s kref."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-23T12:46:30.954Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/122ca6b2af714e114c9b872a48372ace31a9ab1f"
        },
        {
          "url": "https://git.kernel.org/stable/c/9409e18ffe7378d202efe1cf69989df9f67b0369"
        },
        {
          "url": "https://git.kernel.org/stable/c/e2a3b77df6aef031455dd83ea8ed4344b7dca1f9"
        },
        {
          "url": "https://git.kernel.org/stable/c/f5c5065963024390ddad51bd455d1adc710de575"
        },
        {
          "url": "https://git.kernel.org/stable/c/0fd23994ec8c5436d9f0b50848deb87ed933e6b3"
        },
        {
          "url": "https://git.kernel.org/stable/c/a3f3859cecacb64f18fd446271ece9a3b3f2d4de"
        }
      ],
      "title": "ipmi: fix refcount leak in i_ipmi_request()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-72040",
    "datePublished": "2026-08-15T05:51:59.975Z",
    "dateReserved": "2026-08-09T03:40:39.901Z",
    "dateUpdated": "2026-08-23T12:46:30.954Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-72040",
      "date": "2026-09-21",
      "epss": "0.00206",
      "percentile": "0.10943"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "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": "122ca6b2af714e114c9b872a48372ace31a9ab1f",
                    "status": "affected",
                    "version": "f63723ca7d7623f9dae1990973cd158671f03c56",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "9409e18ffe7378d202efe1cf69989df9f67b0369",
                    "status": "affected",
                    "version": "348121b29594d42d1635648fd3ed31dfa25351d5",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "e2a3b77df6aef031455dd83ea8ed4344b7dca1f9",
                    "status": "affected",
                    "version": "53d6e403affbf6df2c859a0ea00ccfc1e72090ca",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "f5c5065963024390ddad51bd455d1adc710de575",
                    "status": "affected",
                    "version": "b52da4054ee0bf9ecb44996f2c83236ff50b3812",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "0fd23994ec8c5436d9f0b50848deb87ed933e6b3",
                    "status": "affected",
                    "version": "b52da4054ee0bf9ecb44996f2c83236ff50b3812",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "a3f3859cecacb64f18fd446271ece9a3b3f2d4de",
                    "status": "affected",
                    "version": "b52da4054ee0bf9ecb44996f2c83236ff50b3812",
                    "versionType": "git"
                  },
                  {
                    "status": "affected",
                    "version": "0ed73be9a2547ffb9b5c1d879ad9bfab73d920b5",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "6.1.184",
                    "status": "affected",
                    "version": "6.1.157",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.6.148",
                    "status": "affected",
                    "version": "6.6.113",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.12.101",
                    "status": "affected",
                    "version": "6.12.54",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.18",
                    "status": "affected",
                    "version": "6.17.4",
                    "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": "6.18"
                  },
                  {
                    "lessThan": "6.18",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.184",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.148",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.101",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.40",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.1.*",
                    "status": "unaffected",
                    "version": "7.1.5",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.2",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nipmi: fix refcount leak in i_ipmi_request()\n\nWhen a caller provides a `supplied_recv` message to i_ipmi_request(),\nthe function increments the user\u0027s `nr_msgs` reference count. If an\nerror occurs later, the out_err cleanup path only frees the recv_msg\nif the function allocated it itself (i.e., !supplied_recv). In the\nsupplied_recv case the cleanup is skipped, leaving the reference count\nelevated. The caller ipmi_request_supply_msgs() does not release the\nsupplied_recv on error, so the reference is permanently leaked.\n\nFix this by explicitly reverting the reference count operations when a\nsupplied recv_msg with a valid user pointer is present in the error\npath: decrement nr_msgs and drop the user\u0027s kref."
          }
        ],
        "id": "CVE-2026-72040",
        "lastModified": "2026-08-23T13:16:37.900",
        "metrics": {},
        "published": "2026-08-15T06:21:13.123",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/0fd23994ec8c5436d9f0b50848deb87ed933e6b3"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/122ca6b2af714e114c9b872a48372ace31a9ab1f"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/9409e18ffe7378d202efe1cf69989df9f67b0369"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a3f3859cecacb64f18fd446271ece9a3b3f2d4de"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e2a3b77df6aef031455dd83ea8ed4344b7dca1f9"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/f5c5065963024390ddad51bd455d1adc710de575"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-08-19T10:02:44+00:00",
      "cve": "CVE-2026-72040",
      "id": "CVE-2026-72040",
      "initial_release_date": "2026-08-15T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: ipmi: fix refcount leak in i_ipmi_request()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-72040.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-09-15T01:30:58Z",
      "cve": "CVE-2026-72040",
      "id": "CVE-2026-72040",
      "initial_release_date": "2026-08-27T00:24:03Z",
      "product_status:known_affected": "123",
      "product_status:known_not_affected": "239",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-72040",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2026-72040.json",
      "version": "4"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…