cve-2024-49957
Vulnerability from cvelistv5
Published
2024-10-21 18:02
Modified
2024-12-19 09:30
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix null-ptr-deref when journal load failed. During the mounting process, if journal_reset() fails because of too short journal, then lead to jbd2_journal_load() fails with NULL j_sb_buffer. Subsequently, ocfs2_journal_shutdown() calls jbd2_journal_flush()->jbd2_cleanup_journal_tail()-> __jbd2_update_log_tail()->jbd2_journal_update_sb_log_tail() ->lock_buffer(journal->j_sb_buffer), resulting in a null-pointer dereference error. To resolve this issue, we should check the JBD2_LOADED flag to ensure the journal was properly loaded. Additionally, use journal instead of osb->journal directly to simplify the code.
Impacted products
Vendor Product Version
Linux Linux Version: f6f50e28f0cb8d7bcdfaacc83129f005dede11b1
Version: f6f50e28f0cb8d7bcdfaacc83129f005dede11b1
Version: f6f50e28f0cb8d7bcdfaacc83129f005dede11b1
Version: f6f50e28f0cb8d7bcdfaacc83129f005dede11b1
Version: f6f50e28f0cb8d7bcdfaacc83129f005dede11b1
Version: f6f50e28f0cb8d7bcdfaacc83129f005dede11b1
Version: f6f50e28f0cb8d7bcdfaacc83129f005dede11b1
Version: f6f50e28f0cb8d7bcdfaacc83129f005dede11b1
Version: f6f50e28f0cb8d7bcdfaacc83129f005dede11b1
Create a notification for this product.
   Linux Linux Version: 2.6.32
Create a notification for this product.
Show details on NVD website


{
   containers: {
      adp: [
         {
            metrics: [
               {
                  other: {
                     content: {
                        id: "CVE-2024-49957",
                        options: [
                           {
                              Exploitation: "none",
                           },
                           {
                              Automatable: "no",
                           },
                           {
                              "Technical Impact": "partial",
                           },
                        ],
                        role: "CISA Coordinator",
                        timestamp: "2024-10-22T13:35:36.575300Z",
                        version: "2.0.3",
                     },
                     type: "ssvc",
                  },
               },
            ],
            providerMetadata: {
               dateUpdated: "2024-10-22T13:38:48.252Z",
               orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0",
               shortName: "CISA-ADP",
            },
            title: "CISA ADP Vulnrichment",
         },
      ],
      cna: {
         affected: [
            {
               defaultStatus: "unaffected",
               product: "Linux",
               programFiles: [
                  "fs/ocfs2/journal.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     lessThan: "fd89d92c1140cee8f59de336cb37fa65e359c123",
                     status: "affected",
                     version: "f6f50e28f0cb8d7bcdfaacc83129f005dede11b1",
                     versionType: "git",
                  },
                  {
                     lessThan: "703b2c7e0798d263154dc8593dc2345f75dc077f",
                     status: "affected",
                     version: "f6f50e28f0cb8d7bcdfaacc83129f005dede11b1",
                     versionType: "git",
                  },
                  {
                     lessThan: "bf605ae98dab5c15c5b631d4d7f88898cb41b649",
                     status: "affected",
                     version: "f6f50e28f0cb8d7bcdfaacc83129f005dede11b1",
                     versionType: "git",
                  },
                  {
                     lessThan: "ff55291fb36779819211b596da703389135f5b05",
                     status: "affected",
                     version: "f6f50e28f0cb8d7bcdfaacc83129f005dede11b1",
                     versionType: "git",
                  },
                  {
                     lessThan: "82dfdd1e31e774578f76ce6dc90c834f96403a0f",
                     status: "affected",
                     version: "f6f50e28f0cb8d7bcdfaacc83129f005dede11b1",
                     versionType: "git",
                  },
                  {
                     lessThan: "86a89e75e9e4dfa768b97db466ad6bedf2e7ea5b",
                     status: "affected",
                     version: "f6f50e28f0cb8d7bcdfaacc83129f005dede11b1",
                     versionType: "git",
                  },
                  {
                     lessThan: "f60e94a83db799bde625ac8671a5b4a6354e7120",
                     status: "affected",
                     version: "f6f50e28f0cb8d7bcdfaacc83129f005dede11b1",
                     versionType: "git",
                  },
                  {
                     lessThan: "387bf565cc03e2e8c720b8b4798efea4aacb6962",
                     status: "affected",
                     version: "f6f50e28f0cb8d7bcdfaacc83129f005dede11b1",
                     versionType: "git",
                  },
                  {
                     lessThan: "5784d9fcfd43bd853654bb80c87ef293b9e8e80a",
                     status: "affected",
                     version: "f6f50e28f0cb8d7bcdfaacc83129f005dede11b1",
                     versionType: "git",
                  },
               ],
            },
            {
               defaultStatus: "affected",
               product: "Linux",
               programFiles: [
                  "fs/ocfs2/journal.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     status: "affected",
                     version: "2.6.32",
                  },
                  {
                     lessThan: "2.6.32",
                     status: "unaffected",
                     version: "0",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "4.19.*",
                     status: "unaffected",
                     version: "4.19.323",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "5.4.*",
                     status: "unaffected",
                     version: "5.4.285",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "5.10.*",
                     status: "unaffected",
                     version: "5.10.227",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "5.15.*",
                     status: "unaffected",
                     version: "5.15.168",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.1.*",
                     status: "unaffected",
                     version: "6.1.113",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.6.*",
                     status: "unaffected",
                     version: "6.6.55",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.10.*",
                     status: "unaffected",
                     version: "6.10.14",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.11.*",
                     status: "unaffected",
                     version: "6.11.3",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "*",
                     status: "unaffected",
                     version: "6.12",
                     versionType: "original_commit_for_fix",
                  },
               ],
            },
         ],
         descriptions: [
            {
               lang: "en",
               value: "In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: fix null-ptr-deref when journal load failed.\n\nDuring the mounting process, if journal_reset() fails because of too short\njournal, then lead to jbd2_journal_load() fails with NULL j_sb_buffer. \nSubsequently, ocfs2_journal_shutdown() calls\njbd2_journal_flush()->jbd2_cleanup_journal_tail()->\n__jbd2_update_log_tail()->jbd2_journal_update_sb_log_tail()\n->lock_buffer(journal->j_sb_buffer), resulting in a null-pointer\ndereference error.\n\nTo resolve this issue, we should check the JBD2_LOADED flag to ensure the\njournal was properly loaded.  Additionally, use journal instead of\nosb->journal directly to simplify the code.",
            },
         ],
         providerMetadata: {
            dateUpdated: "2024-12-19T09:30:08.641Z",
            orgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            shortName: "Linux",
         },
         references: [
            {
               url: "https://git.kernel.org/stable/c/fd89d92c1140cee8f59de336cb37fa65e359c123",
            },
            {
               url: "https://git.kernel.org/stable/c/703b2c7e0798d263154dc8593dc2345f75dc077f",
            },
            {
               url: "https://git.kernel.org/stable/c/bf605ae98dab5c15c5b631d4d7f88898cb41b649",
            },
            {
               url: "https://git.kernel.org/stable/c/ff55291fb36779819211b596da703389135f5b05",
            },
            {
               url: "https://git.kernel.org/stable/c/82dfdd1e31e774578f76ce6dc90c834f96403a0f",
            },
            {
               url: "https://git.kernel.org/stable/c/86a89e75e9e4dfa768b97db466ad6bedf2e7ea5b",
            },
            {
               url: "https://git.kernel.org/stable/c/f60e94a83db799bde625ac8671a5b4a6354e7120",
            },
            {
               url: "https://git.kernel.org/stable/c/387bf565cc03e2e8c720b8b4798efea4aacb6962",
            },
            {
               url: "https://git.kernel.org/stable/c/5784d9fcfd43bd853654bb80c87ef293b9e8e80a",
            },
         ],
         title: "ocfs2: fix null-ptr-deref when journal load failed.",
         x_generator: {
            engine: "bippy-5f407fcff5a0",
         },
      },
   },
   cveMetadata: {
      assignerOrgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      assignerShortName: "Linux",
      cveId: "CVE-2024-49957",
      datePublished: "2024-10-21T18:02:11.046Z",
      dateReserved: "2024-10-21T12:17:06.048Z",
      dateUpdated: "2024-12-19T09:30:08.641Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      nvd: "{\"cve\":{\"id\":\"CVE-2024-49957\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-10-21T18:15:16.950\",\"lastModified\":\"2024-11-08T16:15:33.963\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nocfs2: fix null-ptr-deref when journal load failed.\\n\\nDuring the mounting process, if journal_reset() fails because of too short\\njournal, then lead to jbd2_journal_load() fails with NULL j_sb_buffer. \\nSubsequently, ocfs2_journal_shutdown() calls\\njbd2_journal_flush()->jbd2_cleanup_journal_tail()->\\n__jbd2_update_log_tail()->jbd2_journal_update_sb_log_tail()\\n->lock_buffer(journal->j_sb_buffer), resulting in a null-pointer\\ndereference error.\\n\\nTo resolve this issue, we should check the JBD2_LOADED flag to ensure the\\njournal was properly loaded.  Additionally, use journal instead of\\nosb->journal directly to simplify the code.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ocfs2: se corrige el error null-ptr-deref cuando falla la carga del diario. Durante el proceso de montaje, si journal_reset() falla debido a que el diario es demasiado corto, entonces provoca que jbd2_journal_load() falle con j_sb_buffer NULL. Posteriormente, ocfs2_journal_shutdown() llama a jbd2_journal_flush()->jbd2_cleanup_journal_tail()-> __jbd2_update_log_tail()->jbd2_journal_update_sb_log_tail() ->lock_buffer(journal->j_sb_buffer), lo que da como resultado un error de desreferencia de puntero nulo. Para resolver este problema, debemos verificar el indicador JBD2_LOADED para asegurarnos de que el diario se cargó correctamente. Además, use journal en lugar de osb->journal directamente para simplificar el código.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-476\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"2.6.32\",\"versionEndExcluding\":\"5.10.227\",\"matchCriteriaId\":\"BF903132-A3AF-4A91-AFA9-3C8A9C378FAE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.11\",\"versionEndExcluding\":\"5.15.168\",\"matchCriteriaId\":\"4D51C05D-455B-4D8D-89E7-A58E140B864C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16\",\"versionEndExcluding\":\"6.1.113\",\"matchCriteriaId\":\"D01BD22E-ACD1-4618-9D01-6116570BE1EE\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.2\",\"versionEndExcluding\":\"6.6.55\",\"matchCriteriaId\":\"E90B9576-56C4-47BC-AAB0-C5B2D438F5D0\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.7\",\"versionEndExcluding\":\"6.10.14\",\"matchCriteriaId\":\"4C16BCE0-FFA0-4599-BE0A-1FD65101C021\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.11\",\"versionEndExcluding\":\"6.11.3\",\"matchCriteriaId\":\"54D9C704-D679-41A7-9C40-10A6B1E7FFE9\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/387bf565cc03e2e8c720b8b4798efea4aacb6962\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/5784d9fcfd43bd853654bb80c87ef293b9e8e80a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/703b2c7e0798d263154dc8593dc2345f75dc077f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/82dfdd1e31e774578f76ce6dc90c834f96403a0f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/86a89e75e9e4dfa768b97db466ad6bedf2e7ea5b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/bf605ae98dab5c15c5b631d4d7f88898cb41b649\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/f60e94a83db799bde625ac8671a5b4a6354e7120\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/fd89d92c1140cee8f59de336cb37fa65e359c123\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ff55291fb36779819211b596da703389135f5b05\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
      vulnrichment: {
         containers: "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-49957\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-22T13:35:36.575300Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-22T13:35:39.743Z\"}}], \"cna\": {\"title\": \"ocfs2: fix null-ptr-deref when journal load failed.\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"f6f50e28f0cb\", \"lessThan\": \"bf605ae98dab\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f6f50e28f0cb\", \"lessThan\": \"ff55291fb367\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f6f50e28f0cb\", \"lessThan\": \"82dfdd1e31e7\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f6f50e28f0cb\", \"lessThan\": \"86a89e75e9e4\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f6f50e28f0cb\", \"lessThan\": \"f60e94a83db7\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f6f50e28f0cb\", \"lessThan\": \"387bf565cc03\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"f6f50e28f0cb\", \"lessThan\": \"5784d9fcfd43\", \"versionType\": \"git\"}], \"programFiles\": [\"fs/ocfs2/journal.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"2.6.32\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"2.6.32\", \"versionType\": \"custom\"}, {\"status\": \"unaffected\", \"version\": \"5.10.227\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.168\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1.113\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.55\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10.14\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"6.10.*\"}, {\"status\": \"unaffected\", \"version\": \"6.11.3\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"6.11.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12-rc1\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"fs/ocfs2/journal.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/bf605ae98dab5c15c5b631d4d7f88898cb41b649\"}, {\"url\": \"https://git.kernel.org/stable/c/ff55291fb36779819211b596da703389135f5b05\"}, {\"url\": \"https://git.kernel.org/stable/c/82dfdd1e31e774578f76ce6dc90c834f96403a0f\"}, {\"url\": \"https://git.kernel.org/stable/c/86a89e75e9e4dfa768b97db466ad6bedf2e7ea5b\"}, {\"url\": \"https://git.kernel.org/stable/c/f60e94a83db799bde625ac8671a5b4a6354e7120\"}, {\"url\": \"https://git.kernel.org/stable/c/387bf565cc03e2e8c720b8b4798efea4aacb6962\"}, {\"url\": \"https://git.kernel.org/stable/c/5784d9fcfd43bd853654bb80c87ef293b9e8e80a\"}], \"x_generator\": {\"engine\": \"bippy-c9c4e1df01b2\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nocfs2: fix null-ptr-deref when journal load failed.\\n\\nDuring the mounting process, if journal_reset() fails because of too short\\njournal, then lead to jbd2_journal_load() fails with NULL j_sb_buffer. \\nSubsequently, ocfs2_journal_shutdown() calls\\njbd2_journal_flush()->jbd2_cleanup_journal_tail()->\\n__jbd2_update_log_tail()->jbd2_journal_update_sb_log_tail()\\n->lock_buffer(journal->j_sb_buffer), resulting in a null-pointer\\ndereference error.\\n\\nTo resolve this issue, we should check the JBD2_LOADED flag to ensure the\\njournal was properly loaded.  Additionally, use journal instead of\\nosb->journal directly to simplify the code.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-10-21T18:02:11.046Z\"}}}",
         cveMetadata: "{\"cveId\": \"CVE-2024-49957\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-10-22T13:38:48.252Z\", \"dateReserved\": \"2024-10-21T12:17:06.048Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T18:02:11.046Z\", \"assignerShortName\": \"Linux\"}",
         dataType: "CVE_RECORD",
         dataVersion: "5.1",
      },
   },
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



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.