CVE-2025-39842 (GCVE-0-2025-39842)
Vulnerability from cvelistv5
Published
2025-09-19 15:26
Modified
2025-09-29 06:00
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: ocfs2: prevent release journal inode after journal shutdown Before calling ocfs2_delete_osb(), ocfs2_journal_shutdown() has already been executed in ocfs2_dismount_volume(), so osb->journal must be NULL. Therefore, the following calltrace will inevitably fail when it reaches jbd2_journal_release_jbd_inode(). ocfs2_dismount_volume()-> ocfs2_delete_osb()-> ocfs2_free_slot_info()-> __ocfs2_free_slot_info()-> evict()-> ocfs2_evict_inode()-> ocfs2_clear_inode()-> jbd2_journal_release_jbd_inode(osb->journal->j_journal, Adding osb->journal checks will prevent null-ptr-deref during the above execution path.
Impacted products
Vendor Product Version
Linux Linux Version: da5e7c87827e8caa6a1eeec6d95dcf74ab592a01
Version: da5e7c87827e8caa6a1eeec6d95dcf74ab592a01
Version: da5e7c87827e8caa6a1eeec6d95dcf74ab592a01
Version: da5e7c87827e8caa6a1eeec6d95dcf74ab592a01
Version: da5e7c87827e8caa6a1eeec6d95dcf74ab592a01
Create a notification for this product.
   Linux Linux Version: 5.16
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/ocfs2/inode.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "42c415c53ad2065088cc411d08925effa5b3d255",
              "status": "affected",
              "version": "da5e7c87827e8caa6a1eeec6d95dcf74ab592a01",
              "versionType": "git"
            },
            {
              "lessThan": "e9188f66e94955431ddbe2cd1cdf8ff2bb486abf",
              "status": "affected",
              "version": "da5e7c87827e8caa6a1eeec6d95dcf74ab592a01",
              "versionType": "git"
            },
            {
              "lessThan": "f4a917e6cd6c798f7adf39907f117fc754db1283",
              "status": "affected",
              "version": "da5e7c87827e8caa6a1eeec6d95dcf74ab592a01",
              "versionType": "git"
            },
            {
              "lessThan": "85e66331b60601d903cceaf8c10a234db863cd78",
              "status": "affected",
              "version": "da5e7c87827e8caa6a1eeec6d95dcf74ab592a01",
              "versionType": "git"
            },
            {
              "lessThan": "f46e8ef8bb7b452584f2e75337b619ac51a7cadf",
              "status": "affected",
              "version": "da5e7c87827e8caa6a1eeec6d95dcf74ab592a01",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/ocfs2/inode.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.16"
            },
            {
              "lessThan": "5.16",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.151",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.105",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.46",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.16.*",
              "status": "unaffected",
              "version": "6.16.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.17",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.151",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.105",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.46",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.16.6",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.17",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: prevent release journal inode after journal shutdown\n\nBefore calling ocfs2_delete_osb(), ocfs2_journal_shutdown() has already\nbeen executed in ocfs2_dismount_volume(), so osb-\u003ejournal must be NULL. \nTherefore, the following calltrace will inevitably fail when it reaches\njbd2_journal_release_jbd_inode().\n\nocfs2_dismount_volume()-\u003e\n  ocfs2_delete_osb()-\u003e\n    ocfs2_free_slot_info()-\u003e\n      __ocfs2_free_slot_info()-\u003e\n        evict()-\u003e\n          ocfs2_evict_inode()-\u003e\n            ocfs2_clear_inode()-\u003e\n\t      jbd2_journal_release_jbd_inode(osb-\u003ejournal-\u003ej_journal,\n\nAdding osb-\u003ejournal checks will prevent null-ptr-deref during the above\nexecution path."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-29T06:00:50.370Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/42c415c53ad2065088cc411d08925effa5b3d255"
        },
        {
          "url": "https://git.kernel.org/stable/c/e9188f66e94955431ddbe2cd1cdf8ff2bb486abf"
        },
        {
          "url": "https://git.kernel.org/stable/c/f4a917e6cd6c798f7adf39907f117fc754db1283"
        },
        {
          "url": "https://git.kernel.org/stable/c/85e66331b60601d903cceaf8c10a234db863cd78"
        },
        {
          "url": "https://git.kernel.org/stable/c/f46e8ef8bb7b452584f2e75337b619ac51a7cadf"
        }
      ],
      "title": "ocfs2: prevent release journal inode after journal shutdown",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-39842",
    "datePublished": "2025-09-19T15:26:17.075Z",
    "dateReserved": "2025-04-16T07:20:57.141Z",
    "dateUpdated": "2025-09-29T06:00:50.370Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-39842\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-19T16:15:42.930\",\"lastModified\":\"2025-09-22T21:23:01.543\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nocfs2: prevent release journal inode after journal shutdown\\n\\nBefore calling ocfs2_delete_osb(), ocfs2_journal_shutdown() has already\\nbeen executed in ocfs2_dismount_volume(), so osb-\u003ejournal must be NULL. \\nTherefore, the following calltrace will inevitably fail when it reaches\\njbd2_journal_release_jbd_inode().\\n\\nocfs2_dismount_volume()-\u003e\\n  ocfs2_delete_osb()-\u003e\\n    ocfs2_free_slot_info()-\u003e\\n      __ocfs2_free_slot_info()-\u003e\\n        evict()-\u003e\\n          ocfs2_evict_inode()-\u003e\\n            ocfs2_clear_inode()-\u003e\\n\\t      jbd2_journal_release_jbd_inode(osb-\u003ejournal-\u003ej_journal,\\n\\nAdding osb-\u003ejournal checks will prevent null-ptr-deref during the above\\nexecution path.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/42c415c53ad2065088cc411d08925effa5b3d255\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/85e66331b60601d903cceaf8c10a234db863cd78\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e9188f66e94955431ddbe2cd1cdf8ff2bb486abf\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f46e8ef8bb7b452584f2e75337b619ac51a7cadf\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f4a917e6cd6c798f7adf39907f117fc754db1283\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


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.
  • 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…