CVE-2026-31689 (GCVE-0-2026-31689)

Vulnerability from cvelistv5 – Published: 2026-04-27 17:34 – Updated: 2026-04-27 17:34
VLAI?
Title
EDAC/mc: Fix error path ordering in edac_mc_alloc()
Summary
In the Linux kernel, the following vulnerability has been resolved: EDAC/mc: Fix error path ordering in edac_mc_alloc() When the mci->pvt_info allocation in edac_mc_alloc() fails, the error path will call put_device() which will end up calling the device's release function. However, the init ordering is wrong such that device_initialize() happens *after* the failed allocation and thus the device itself and the release function pointer are not initialized yet when they're called: MCE: In-kernel MCE decoding enabled. ------------[ cut here ]------------ kobject: '(null)': is not initialized, yet kobject_put() is being called. WARNING: lib/kobject.c:734 at kobject_put, CPU#22: systemd-udevd CPU: 22 UID: 0 PID: 538 Comm: systemd-udevd Not tainted 7.0.0-rc1+ #2 PREEMPT(full) RIP: 0010:kobject_put Call Trace: <TASK> edac_mc_alloc+0xbe/0xe0 [edac_core] amd64_edac_init+0x7a4/0xff0 [amd64_edac] ? __pfx_amd64_edac_init+0x10/0x10 [amd64_edac] do_one_initcall ... Reorder the calling sequence so that the device is initialized and thus the release function pointer is properly set before it can be used. This was found by Claude while reviewing another EDAC patch.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 0bbb265f7089584aaa6d440805ca75ea4f3930d4 , < aae95970fad2127a1bd49d8713c7cd0677dcd2d6 (git)
Affected: 0bbb265f7089584aaa6d440805ca75ea4f3930d4 , < d3de72e2a2b9ee3a57734c1c068823e41a707715 (git)
Affected: 0bbb265f7089584aaa6d440805ca75ea4f3930d4 , < d20e98c2df9354cc744431ad8ccbf49405b8b40f (git)
Affected: 0bbb265f7089584aaa6d440805ca75ea4f3930d4 , < 87ce8ae511962e105bcb3534944208c6a9471ed9 (git)
Affected: 0bbb265f7089584aaa6d440805ca75ea4f3930d4 , < 75825648ce984ca4cebb28e4bd2bf8c3a7e837c5 (git)
Affected: 0bbb265f7089584aaa6d440805ca75ea4f3930d4 , < 51520e03e70d6c73e33ee7cbe0319767d05764fe (git)
Create a notification for this product.
    Linux Linux Affected: 5.19
Unaffected: 0 , < 5.19 (semver)
Unaffected: 6.1.169 , ≤ 6.1.* (semver)
Unaffected: 6.6.135 , ≤ 6.6.* (semver)
Unaffected: 6.12.82 , ≤ 6.12.* (semver)
Unaffected: 6.18.23 , ≤ 6.18.* (semver)
Unaffected: 6.19.13 , ≤ 6.19.* (semver)
Unaffected: 7.0 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/edac/edac_mc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "aae95970fad2127a1bd49d8713c7cd0677dcd2d6",
              "status": "affected",
              "version": "0bbb265f7089584aaa6d440805ca75ea4f3930d4",
              "versionType": "git"
            },
            {
              "lessThan": "d3de72e2a2b9ee3a57734c1c068823e41a707715",
              "status": "affected",
              "version": "0bbb265f7089584aaa6d440805ca75ea4f3930d4",
              "versionType": "git"
            },
            {
              "lessThan": "d20e98c2df9354cc744431ad8ccbf49405b8b40f",
              "status": "affected",
              "version": "0bbb265f7089584aaa6d440805ca75ea4f3930d4",
              "versionType": "git"
            },
            {
              "lessThan": "87ce8ae511962e105bcb3534944208c6a9471ed9",
              "status": "affected",
              "version": "0bbb265f7089584aaa6d440805ca75ea4f3930d4",
              "versionType": "git"
            },
            {
              "lessThan": "75825648ce984ca4cebb28e4bd2bf8c3a7e837c5",
              "status": "affected",
              "version": "0bbb265f7089584aaa6d440805ca75ea4f3930d4",
              "versionType": "git"
            },
            {
              "lessThan": "51520e03e70d6c73e33ee7cbe0319767d05764fe",
              "status": "affected",
              "version": "0bbb265f7089584aaa6d440805ca75ea4f3930d4",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/edac/edac_mc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.19"
            },
            {
              "lessThan": "5.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.169",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.135",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.82",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.23",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.19.*",
              "status": "unaffected",
              "version": "6.19.13",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.169",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.135",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.82",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.23",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.19.13",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nEDAC/mc: Fix error path ordering in edac_mc_alloc()\n\nWhen the mci-\u003epvt_info allocation in edac_mc_alloc() fails, the error path\nwill call put_device() which will end up calling the device\u0027s release\nfunction.\n\nHowever, the init ordering is wrong such that device_initialize() happens\n*after* the failed allocation and thus the device itself and the release\nfunction pointer are not initialized yet when they\u0027re called:\n\n  MCE: In-kernel MCE decoding enabled.\n  ------------[ cut here ]------------\n  kobject: \u0027(null)\u0027: is not initialized, yet kobject_put() is being called.\n  WARNING: lib/kobject.c:734 at kobject_put, CPU#22: systemd-udevd\n  CPU: 22 UID: 0 PID: 538 Comm: systemd-udevd Not tainted 7.0.0-rc1+ #2 PREEMPT(full)\n  RIP: 0010:kobject_put\n  Call Trace:\n   \u003cTASK\u003e\n   edac_mc_alloc+0xbe/0xe0 [edac_core]\n   amd64_edac_init+0x7a4/0xff0 [amd64_edac]\n   ? __pfx_amd64_edac_init+0x10/0x10 [amd64_edac]\n   do_one_initcall\n   ...\n\nReorder the calling sequence so that the device is initialized and thus the\nrelease function pointer is properly set before it can be used.\n\nThis was found by Claude while reviewing another EDAC patch."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-04-27T17:34:27.793Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/aae95970fad2127a1bd49d8713c7cd0677dcd2d6"
        },
        {
          "url": "https://git.kernel.org/stable/c/d3de72e2a2b9ee3a57734c1c068823e41a707715"
        },
        {
          "url": "https://git.kernel.org/stable/c/d20e98c2df9354cc744431ad8ccbf49405b8b40f"
        },
        {
          "url": "https://git.kernel.org/stable/c/87ce8ae511962e105bcb3534944208c6a9471ed9"
        },
        {
          "url": "https://git.kernel.org/stable/c/75825648ce984ca4cebb28e4bd2bf8c3a7e837c5"
        },
        {
          "url": "https://git.kernel.org/stable/c/51520e03e70d6c73e33ee7cbe0319767d05764fe"
        }
      ],
      "title": "EDAC/mc: Fix error path ordering in edac_mc_alloc()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-31689",
    "datePublished": "2026-04-27T17:34:27.793Z",
    "dateReserved": "2026-03-09T15:48:24.131Z",
    "dateUpdated": "2026-04-27T17:34:27.793Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-31689",
      "date": "2026-05-05",
      "epss": "0.00032",
      "percentile": "0.09112"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-31689\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-04-27T18:16:54.387\",\"lastModified\":\"2026-04-27T18:32:22.917\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nEDAC/mc: Fix error path ordering in edac_mc_alloc()\\n\\nWhen the mci-\u003epvt_info allocation in edac_mc_alloc() fails, the error path\\nwill call put_device() which will end up calling the device\u0027s release\\nfunction.\\n\\nHowever, the init ordering is wrong such that device_initialize() happens\\n*after* the failed allocation and thus the device itself and the release\\nfunction pointer are not initialized yet when they\u0027re called:\\n\\n  MCE: In-kernel MCE decoding enabled.\\n  ------------[ cut here ]------------\\n  kobject: \u0027(null)\u0027: is not initialized, yet kobject_put() is being called.\\n  WARNING: lib/kobject.c:734 at kobject_put, CPU#22: systemd-udevd\\n  CPU: 22 UID: 0 PID: 538 Comm: systemd-udevd Not tainted 7.0.0-rc1+ #2 PREEMPT(full)\\n  RIP: 0010:kobject_put\\n  Call Trace:\\n   \u003cTASK\u003e\\n   edac_mc_alloc+0xbe/0xe0 [edac_core]\\n   amd64_edac_init+0x7a4/0xff0 [amd64_edac]\\n   ? __pfx_amd64_edac_init+0x10/0x10 [amd64_edac]\\n   do_one_initcall\\n   ...\\n\\nReorder the calling sequence so that the device is initialized and thus the\\nrelease function pointer is properly set before it can be used.\\n\\nThis was found by Claude while reviewing another EDAC patch.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/51520e03e70d6c73e33ee7cbe0319767d05764fe\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/75825648ce984ca4cebb28e4bd2bf8c3a7e837c5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/87ce8ae511962e105bcb3534944208c6a9471ed9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/aae95970fad2127a1bd49d8713c7cd0677dcd2d6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d20e98c2df9354cc744431ad8ccbf49405b8b40f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d3de72e2a2b9ee3a57734c1c068823e41a707715\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


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…

Detection rules are retrieved from Rulezet.

Loading…

Loading…