CVE-2026-98388 (GCVE-0-2026-98388)
Vulnerability from cvelistv5
Published
2026-10-14 13:25
Modified
2026-10-19 09:18
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: exec: do_close_on_exec() before taking exec_update_lock do_close_on_exec() currently happens while holding the exec_update_lock, which is used in a lot of places that access process state to synchronize access checks. I recently added another such use of exec_update_lock, causing a regression. do_close_on_exec() can block waiting for a reply from a filesystem. That means a hung filesystem can block codepaths that use exec_update_lock; and it also means that a FUSE filesystem which attempts to inspect the calling process can deadlock. To avoid such problems, move do_close_on_exec() before the exec_update_lock is taken, but after the FD table has been copied if necessary. I have looked through all the calls between the old and new position of the do_close_on_exec() call; there seems to be no file descriptor table access in between.
Impacted products
Vendor Product Version
Linux Linux Version: ae1e630bcaac739f625822078edbaea98366930d
Version: d54f14655fd7d7b293698a8b6918563c4c0465e7
Version: bb43679356f1f2a4c6b1c88aec4f021e5b5c74e9
Version: 7456ae990a9738962b33146916fabca62ae3d4e0
Version: 4bfe8c481846cee52473a2f7d7b30ee8e6749fc4
Version: f9b4b03ccc9c69bf7f7298d4559906ebea7143b3
Version: 6650527444dadc63d84aa939d14ecba4fadb2f69
Version: 6650527444dadc63d84aa939d14ecba4fadb2f69
Version: c1cfd63326f5d09999134e9052c353faf738286e
Version: 5.10.261   ≤
Version: 5.15.212   ≤
Version: 6.1.178   ≤
Version: 6.6.145   ≤
Version: 6.12.97   ≤
Version: 6.18.40   ≤
Version: 7.1.4   ≤
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/exec.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "955973fff4a36d39a848b00cac1706863f568fe1",
              "status": "affected",
              "version": "ae1e630bcaac739f625822078edbaea98366930d",
              "versionType": "git"
            },
            {
              "lessThan": "550feab5b01000ab314868b62211fb3ddfd600e8",
              "status": "affected",
              "version": "d54f14655fd7d7b293698a8b6918563c4c0465e7",
              "versionType": "git"
            },
            {
              "lessThan": "5aacc19ba2b1faf84c4a2f2cf9a1784e03d1ff38",
              "status": "affected",
              "version": "bb43679356f1f2a4c6b1c88aec4f021e5b5c74e9",
              "versionType": "git"
            },
            {
              "lessThan": "3feb4020bfb7ccf0d347f27051639d25e19cd65d",
              "status": "affected",
              "version": "7456ae990a9738962b33146916fabca62ae3d4e0",
              "versionType": "git"
            },
            {
              "lessThan": "0d86cd6b709c39216e6ee5ea8f0fc4242bbb2b53",
              "status": "affected",
              "version": "4bfe8c481846cee52473a2f7d7b30ee8e6749fc4",
              "versionType": "git"
            },
            {
              "lessThan": "19ddef61ee0a49782a60f8f497e50597ad5de2da",
              "status": "affected",
              "version": "f9b4b03ccc9c69bf7f7298d4559906ebea7143b3",
              "versionType": "git"
            },
            {
              "lessThan": "63be3d8511bdafa095cd14a393cbf3c58dbbb928",
              "status": "affected",
              "version": "6650527444dadc63d84aa939d14ecba4fadb2f69",
              "versionType": "git"
            },
            {
              "lessThan": "e780259b54e618ceb4763fbc21314acf3565e813",
              "status": "affected",
              "version": "6650527444dadc63d84aa939d14ecba4fadb2f69",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "c1cfd63326f5d09999134e9052c353faf738286e",
              "versionType": "git"
            },
            {
              "lessThan": "5.10.271",
              "status": "affected",
              "version": "5.10.261",
              "versionType": "semver"
            },
            {
              "lessThan": "5.15.222",
              "status": "affected",
              "version": "5.15.212",
              "versionType": "semver"
            },
            {
              "lessThan": "6.1.189",
              "status": "affected",
              "version": "6.1.178",
              "versionType": "semver"
            },
            {
              "lessThan": "6.6.158",
              "status": "affected",
              "version": "6.6.145",
              "versionType": "semver"
            },
            {
              "lessThan": "6.12.111",
              "status": "affected",
              "version": "6.12.97",
              "versionType": "semver"
            },
            {
              "lessThan": "6.18.53",
              "status": "affected",
              "version": "6.18.40",
              "versionType": "semver"
            },
            {
              "lessThan": "7.2",
              "status": "affected",
              "version": "7.1.4",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/exec.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "7.2"
            },
            {
              "lessThan": "7.2",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.271",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.222",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.189",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.158",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.111",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.53",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.7",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.271",
                  "versionStartIncluding": "5.10.261",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.222",
                  "versionStartIncluding": "5.15.212",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.189",
                  "versionStartIncluding": "6.1.178",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.158",
                  "versionStartIncluding": "6.6.145",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.111",
                  "versionStartIncluding": "6.12.97",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.53",
                  "versionStartIncluding": "6.18.40",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.7",
                  "versionStartIncluding": "7.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3",
                  "versionStartIncluding": "7.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "7.1.4",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nexec: do_close_on_exec() before taking exec_update_lock\n\ndo_close_on_exec() currently happens while holding the exec_update_lock,\nwhich is used in a lot of places that access process state to\nsynchronize access checks.\nI recently added another such use of exec_update_lock, causing a\nregression.\n\ndo_close_on_exec() can block waiting for a reply from a filesystem.\nThat means a hung filesystem can block codepaths that use\nexec_update_lock; and it also means that a FUSE filesystem which\nattempts to inspect the calling process can deadlock.\n\nTo avoid such problems, move do_close_on_exec() before the\nexec_update_lock is taken, but after the FD table has been copied if\nnecessary.\n\nI have looked through all the calls between the old and new position of\nthe do_close_on_exec() call; there seems to be no file descriptor table\naccess in between."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-19T09:18:39.224Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/955973fff4a36d39a848b00cac1706863f568fe1"
        },
        {
          "url": "https://git.kernel.org/stable/c/550feab5b01000ab314868b62211fb3ddfd600e8"
        },
        {
          "url": "https://git.kernel.org/stable/c/5aacc19ba2b1faf84c4a2f2cf9a1784e03d1ff38"
        },
        {
          "url": "https://git.kernel.org/stable/c/3feb4020bfb7ccf0d347f27051639d25e19cd65d"
        },
        {
          "url": "https://git.kernel.org/stable/c/0d86cd6b709c39216e6ee5ea8f0fc4242bbb2b53"
        },
        {
          "url": "https://git.kernel.org/stable/c/19ddef61ee0a49782a60f8f497e50597ad5de2da"
        },
        {
          "url": "https://git.kernel.org/stable/c/63be3d8511bdafa095cd14a393cbf3c58dbbb928"
        },
        {
          "url": "https://git.kernel.org/stable/c/e780259b54e618ceb4763fbc21314acf3565e813"
        }
      ],
      "title": "exec: do_close_on_exec() before taking exec_update_lock",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-98388",
    "datePublished": "2026-10-14T13:25:52.117Z",
    "dateReserved": "2026-09-25T10:25:14.346Z",
    "dateUpdated": "2026-10-19T09:18:39.224Z",
    "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…