cve-2024-49874
Vulnerability from cvelistv5
Published
2024-10-21 18:01
Modified
2024-12-19 09:28
Severity ?
EPSS score ?
0.03% (0.06116)
Summary
In the Linux kernel, the following vulnerability has been resolved: i3c: master: svc: Fix use after free vulnerability in svc_i3c_master Driver Due to Race Condition In the svc_i3c_master_probe function, &master->hj_work is bound with svc_i3c_master_hj_work, &master->ibi_work is bound with svc_i3c_master_ibi_work. And svc_i3c_master_ibi_work can start the hj_work, svc_i3c_master_irq_handler can start the ibi_work. If we remove the module which will call svc_i3c_master_remove to make cleanup, it will free master->base through i3c_master_unregister while the work mentioned above will be used. The sequence of operations that may lead to a UAF bug is as follows: CPU0 CPU1 | svc_i3c_master_hj_work svc_i3c_master_remove | i3c_master_unregister(&master->base)| device_unregister(&master->dev) | device_release | //free master->base | | i3c_master_do_daa(&master->base) | //use master->base Fix it by ensuring that the work is canceled before proceeding with the cleanup in svc_i3c_master_remove.
Impacted products
Vendor Product Version
Linux Linux Version: 87e0f28eda36c7843523aa8dd0c5dab3331e9718
Version: 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7
Version: 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7
Version: 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7
Version: 0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7
Create a notification for this product.
   Linux Linux Version: 6.4
Create a notification for this product.
Show details on NVD website


{
   containers: {
      adp: [
         {
            metrics: [
               {
                  other: {
                     content: {
                        id: "CVE-2024-49874",
                        options: [
                           {
                              Exploitation: "none",
                           },
                           {
                              Automatable: "no",
                           },
                           {
                              "Technical Impact": "partial",
                           },
                        ],
                        role: "CISA Coordinator",
                        timestamp: "2024-10-22T13:46:33.404172Z",
                        version: "2.0.3",
                     },
                     type: "ssvc",
                  },
               },
            ],
            providerMetadata: {
               dateUpdated: "2024-10-22T13:48:51.538Z",
               orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0",
               shortName: "CISA-ADP",
            },
            title: "CISA ADP Vulnrichment",
         },
      ],
      cna: {
         affected: [
            {
               defaultStatus: "unaffected",
               product: "Linux",
               programFiles: [
                  "drivers/i3c/master/svc-i3c-master.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     lessThan: "56bddf543d4d7ddeff3f87b554ddacfdf086bffe",
                     status: "affected",
                     version: "87e0f28eda36c7843523aa8dd0c5dab3331e9718",
                     versionType: "git",
                  },
                  {
                     lessThan: "4ac637122930cc4ab7e2c22e364cf3aaf96b05b1",
                     status: "affected",
                     version: "0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7",
                     versionType: "git",
                  },
                  {
                     lessThan: "4318998892bf8fe99f97bea18c37ae7b685af75a",
                     status: "affected",
                     version: "0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7",
                     versionType: "git",
                  },
                  {
                     lessThan: "27b55724d3f781dd6e635e89dc6e2fd78fa81a00",
                     status: "affected",
                     version: "0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7",
                     versionType: "git",
                  },
                  {
                     lessThan: "61850725779709369c7e907ae8c7c75dc7cec4f3",
                     status: "affected",
                     version: "0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7",
                     versionType: "git",
                  },
               ],
            },
            {
               defaultStatus: "affected",
               product: "Linux",
               programFiles: [
                  "drivers/i3c/master/svc-i3c-master.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     status: "affected",
                     version: "6.4",
                  },
                  {
                     lessThan: "6.4",
                     status: "unaffected",
                     version: "0",
                     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\ni3c: master: svc: Fix use after free vulnerability in svc_i3c_master Driver Due to Race Condition\n\nIn the svc_i3c_master_probe function, &master->hj_work is bound with\nsvc_i3c_master_hj_work, &master->ibi_work is bound with\nsvc_i3c_master_ibi_work. And svc_i3c_master_ibi_work  can start the\nhj_work, svc_i3c_master_irq_handler can start the ibi_work.\n\nIf we remove the module which will call svc_i3c_master_remove to\nmake cleanup, it will free master->base through i3c_master_unregister\nwhile the work mentioned above will be used. The sequence of operations\nthat may lead to a UAF bug is as follows:\n\nCPU0                                         CPU1\n\n                                    | svc_i3c_master_hj_work\nsvc_i3c_master_remove               |\ni3c_master_unregister(&master->base)|\ndevice_unregister(&master->dev)     |\ndevice_release                      |\n//free master->base                 |\n                                    | i3c_master_do_daa(&master->base)\n                                    | //use master->base\n\nFix it by ensuring that the work is canceled before proceeding with the\ncleanup in svc_i3c_master_remove.",
            },
         ],
         providerMetadata: {
            dateUpdated: "2024-12-19T09:28:02.872Z",
            orgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            shortName: "Linux",
         },
         references: [
            {
               url: "https://git.kernel.org/stable/c/56bddf543d4d7ddeff3f87b554ddacfdf086bffe",
            },
            {
               url: "https://git.kernel.org/stable/c/4ac637122930cc4ab7e2c22e364cf3aaf96b05b1",
            },
            {
               url: "https://git.kernel.org/stable/c/4318998892bf8fe99f97bea18c37ae7b685af75a",
            },
            {
               url: "https://git.kernel.org/stable/c/27b55724d3f781dd6e635e89dc6e2fd78fa81a00",
            },
            {
               url: "https://git.kernel.org/stable/c/61850725779709369c7e907ae8c7c75dc7cec4f3",
            },
         ],
         title: "i3c: master: svc: Fix use after free vulnerability in svc_i3c_master Driver Due to Race Condition",
         x_generator: {
            engine: "bippy-5f407fcff5a0",
         },
      },
   },
   cveMetadata: {
      assignerOrgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      assignerShortName: "Linux",
      cveId: "CVE-2024-49874",
      datePublished: "2024-10-21T18:01:14.762Z",
      dateReserved: "2024-10-21T12:17:06.020Z",
      dateUpdated: "2024-12-19T09:28:02.872Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      nvd: "{\"cve\":{\"id\":\"CVE-2024-49874\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-10-21T18:15:08.983\",\"lastModified\":\"2024-12-14T21:15:26.707\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ni3c: master: svc: Fix use after free vulnerability in svc_i3c_master Driver Due to Race Condition\\n\\nIn the svc_i3c_master_probe function, &master->hj_work is bound with\\nsvc_i3c_master_hj_work, &master->ibi_work is bound with\\nsvc_i3c_master_ibi_work. And svc_i3c_master_ibi_work  can start the\\nhj_work, svc_i3c_master_irq_handler can start the ibi_work.\\n\\nIf we remove the module which will call svc_i3c_master_remove to\\nmake cleanup, it will free master->base through i3c_master_unregister\\nwhile the work mentioned above will be used. The sequence of operations\\nthat may lead to a UAF bug is as follows:\\n\\nCPU0                                         CPU1\\n\\n                                    | svc_i3c_master_hj_work\\nsvc_i3c_master_remove               |\\ni3c_master_unregister(&master->base)|\\ndevice_unregister(&master->dev)     |\\ndevice_release                      |\\n//free master->base                 |\\n                                    | i3c_master_do_daa(&master->base)\\n                                    | //use master->base\\n\\nFix it by ensuring that the work is canceled before proceeding with the\\ncleanup in svc_i3c_master_remove.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: i3c: master: svc: Se corrige la vulnerabilidad de use after free en el controlador svc_i3c_master debido a la condición de ejecución En la función svc_i3c_master_probe, &master->hj_work está vinculado con svc_i3c_master_hj_work, &master->ibi_work está vinculado con svc_i3c_master_ibi_work. Y svc_i3c_master_ibi_work puede iniciar hj_work, svc_i3c_master_irq_handler puede iniciar ibi_work. Si eliminamos el módulo que llamará a svc_i3c_master_remove para realizar la limpieza, liberará master->base a través de i3c_master_unregister mientras que el trabajo mencionado anteriormente se utilizará. La secuencia de operaciones que pueden provocar un error de UAF es la siguiente: CPU0 CPU1 | Solucione el problema asegurándose de que el trabajo se cancele antes de continuar con la limpieza en svc_i3c_master_remove.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.0,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"HIGH\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.0,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-416\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.4\",\"versionEndExcluding\":\"6.6.55\",\"matchCriteriaId\":\"56DA35BA-143D-4269-9914-273743A40222\"},{\"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/27b55724d3f781dd6e635e89dc6e2fd78fa81a00\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/4318998892bf8fe99f97bea18c37ae7b685af75a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/4ac637122930cc4ab7e2c22e364cf3aaf96b05b1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/56bddf543d4d7ddeff3f87b554ddacfdf086bffe\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/61850725779709369c7e907ae8c7c75dc7cec4f3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
      vulnrichment: {
         containers: "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-49874\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-22T13:46:33.404172Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-22T13:46:36.510Z\"}}], \"cna\": {\"title\": \"i3c: master: svc: Fix use after free vulnerability in svc_i3c_master Driver Due to Race Condition\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"87e0f28eda36c7843523aa8dd0c5dab3331e9718\", \"lessThan\": \"56bddf543d4d7ddeff3f87b554ddacfdf086bffe\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7\", \"lessThan\": \"4ac637122930cc4ab7e2c22e364cf3aaf96b05b1\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7\", \"lessThan\": \"4318998892bf8fe99f97bea18c37ae7b685af75a\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7\", \"lessThan\": \"27b55724d3f781dd6e635e89dc6e2fd78fa81a00\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"0f74f8b6675cc36d689abb4d9b3d75ab4049b7d7\", \"lessThan\": \"61850725779709369c7e907ae8c7c75dc7cec4f3\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/i3c/master/svc-i3c-master.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.4\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.4\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.6.55\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10.14\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.10.*\"}, {\"status\": \"unaffected\", \"version\": \"6.11.3\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.11.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/i3c/master/svc-i3c-master.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/56bddf543d4d7ddeff3f87b554ddacfdf086bffe\"}, {\"url\": \"https://git.kernel.org/stable/c/4ac637122930cc4ab7e2c22e364cf3aaf96b05b1\"}, {\"url\": \"https://git.kernel.org/stable/c/4318998892bf8fe99f97bea18c37ae7b685af75a\"}, {\"url\": \"https://git.kernel.org/stable/c/27b55724d3f781dd6e635e89dc6e2fd78fa81a00\"}, {\"url\": \"https://git.kernel.org/stable/c/61850725779709369c7e907ae8c7c75dc7cec4f3\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ni3c: master: svc: Fix use after free vulnerability in svc_i3c_master Driver Due to Race Condition\\n\\nIn the svc_i3c_master_probe function, &master->hj_work is bound with\\nsvc_i3c_master_hj_work, &master->ibi_work is bound with\\nsvc_i3c_master_ibi_work. And svc_i3c_master_ibi_work  can start the\\nhj_work, svc_i3c_master_irq_handler can start the ibi_work.\\n\\nIf we remove the module which will call svc_i3c_master_remove to\\nmake cleanup, it will free master->base through i3c_master_unregister\\nwhile the work mentioned above will be used. The sequence of operations\\nthat may lead to a UAF bug is as follows:\\n\\nCPU0                                         CPU1\\n\\n                                    | svc_i3c_master_hj_work\\nsvc_i3c_master_remove               |\\ni3c_master_unregister(&master->base)|\\ndevice_unregister(&master->dev)     |\\ndevice_release                      |\\n//free master->base                 |\\n                                    | i3c_master_do_daa(&master->base)\\n                                    | //use master->base\\n\\nFix it by ensuring that the work is canceled before proceeding with the\\ncleanup in svc_i3c_master_remove.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-12-19T09:28:02.872Z\"}}}",
         cveMetadata: "{\"cveId\": \"CVE-2024-49874\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-12-19T09:28:02.872Z\", \"dateReserved\": \"2024-10-21T12:17:06.020Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T18:01:14.762Z\", \"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.