cve-2024-49986
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: platform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors x86_android_tablet_remove() frees the pdevs[] array, so it should not be used after calling x86_android_tablet_remove(). When platform_device_register() fails, store the pdevs[x] PTR_ERR() value into the local ret variable before calling x86_android_tablet_remove() to avoid using pdevs[] after it has been freed.
Impacted products
Vendor Product Version
Linux Linux Version: 5eba0141206ea521bbcfcf5067c174e825e943dd
Version: 5eba0141206ea521bbcfcf5067c174e825e943dd
Version: 5eba0141206ea521bbcfcf5067c174e825e943dd
Version: 5eba0141206ea521bbcfcf5067c174e825e943dd
Version: 5eba0141206ea521bbcfcf5067c174e825e943dd
Create a notification for this product.
   Linux Linux Version: 5.17
Create a notification for this product.
Show details on NVD website


{
   containers: {
      adp: [
         {
            metrics: [
               {
                  other: {
                     content: {
                        id: "CVE-2024-49986",
                        options: [
                           {
                              Exploitation: "none",
                           },
                           {
                              Automatable: "no",
                           },
                           {
                              "Technical Impact": "partial",
                           },
                        ],
                        role: "CISA Coordinator",
                        timestamp: "2024-10-22T13:31:52.405386Z",
                        version: "2.0.3",
                     },
                     type: "ssvc",
                  },
               },
            ],
            providerMetadata: {
               dateUpdated: "2024-10-22T13:38:43.597Z",
               orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0",
               shortName: "CISA-ADP",
            },
            title: "CISA ADP Vulnrichment",
         },
      ],
      cna: {
         affected: [
            {
               defaultStatus: "unaffected",
               product: "Linux",
               programFiles: [
                  "drivers/platform/x86/x86-android-tablets/core.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     lessThan: "ba0b09a2f327319e252d8f3032019b958c0a5cd9",
                     status: "affected",
                     version: "5eba0141206ea521bbcfcf5067c174e825e943dd",
                     versionType: "git",
                  },
                  {
                     lessThan: "aac871e493fc8809e60209d9899b1af07e9dbfc8",
                     status: "affected",
                     version: "5eba0141206ea521bbcfcf5067c174e825e943dd",
                     versionType: "git",
                  },
                  {
                     lessThan: "f08adc5177bd4343df09033f62ab562c09ba7f7d",
                     status: "affected",
                     version: "5eba0141206ea521bbcfcf5067c174e825e943dd",
                     versionType: "git",
                  },
                  {
                     lessThan: "73a98cf79e4dbfa3d0c363e826c65aae089b313c",
                     status: "affected",
                     version: "5eba0141206ea521bbcfcf5067c174e825e943dd",
                     versionType: "git",
                  },
                  {
                     lessThan: "2fae3129c0c08e72b1fe93e61fd8fd203252094a",
                     status: "affected",
                     version: "5eba0141206ea521bbcfcf5067c174e825e943dd",
                     versionType: "git",
                  },
               ],
            },
            {
               defaultStatus: "affected",
               product: "Linux",
               programFiles: [
                  "drivers/platform/x86/x86-android-tablets/core.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     status: "affected",
                     version: "5.17",
                  },
                  {
                     lessThan: "5.17",
                     status: "unaffected",
                     version: "0",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.1.*",
                     status: "unaffected",
                     version: "6.1.118",
                     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\nplatform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors\n\nx86_android_tablet_remove() frees the pdevs[] array, so it should not\nbe used after calling x86_android_tablet_remove().\n\nWhen platform_device_register() fails, store the pdevs[x] PTR_ERR() value\ninto the local ret variable before calling x86_android_tablet_remove()\nto avoid using pdevs[] after it has been freed.",
            },
         ],
         providerMetadata: {
            dateUpdated: "2024-12-19T09:30:44.427Z",
            orgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            shortName: "Linux",
         },
         references: [
            {
               url: "https://git.kernel.org/stable/c/ba0b09a2f327319e252d8f3032019b958c0a5cd9",
            },
            {
               url: "https://git.kernel.org/stable/c/aac871e493fc8809e60209d9899b1af07e9dbfc8",
            },
            {
               url: "https://git.kernel.org/stable/c/f08adc5177bd4343df09033f62ab562c09ba7f7d",
            },
            {
               url: "https://git.kernel.org/stable/c/73a98cf79e4dbfa3d0c363e826c65aae089b313c",
            },
            {
               url: "https://git.kernel.org/stable/c/2fae3129c0c08e72b1fe93e61fd8fd203252094a",
            },
         ],
         title: "platform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors",
         x_generator: {
            engine: "bippy-5f407fcff5a0",
         },
      },
   },
   cveMetadata: {
      assignerOrgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      assignerShortName: "Linux",
      cveId: "CVE-2024-49986",
      datePublished: "2024-10-21T18:02:30.507Z",
      dateReserved: "2024-10-21T12:17:06.054Z",
      dateUpdated: "2024-12-19T09:30:44.427Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      nvd: "{\"cve\":{\"id\":\"CVE-2024-49986\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-10-21T18:15:19.020\",\"lastModified\":\"2024-11-17T15:15:18.707\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nplatform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors\\n\\nx86_android_tablet_remove() frees the pdevs[] array, so it should not\\nbe used after calling x86_android_tablet_remove().\\n\\nWhen platform_device_register() fails, store the pdevs[x] PTR_ERR() value\\ninto the local ret variable before calling x86_android_tablet_remove()\\nto avoid using pdevs[] after it has been freed.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: platform/x86: x86-android-tablets: Se corrige el use after free en errores platform_device_register() x86_android_tablet_remove() libera la matriz pdevs[], por lo que no se debe utilizar después de llamar a x86_android_tablet_remove(). cuando falla platform_device_register(), almacena el valor PTR_ERR() de pdevs[x] en la variable ret local antes de llamar a x86_android_tablet_remove() para evitar usar pdevs[] después de que se haya liberado.\"}],\"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:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"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\":\"5.17\",\"versionEndExcluding\":\"6.6.55\",\"matchCriteriaId\":\"9FF70C11-2F8C-4CF4-9F56-2966C90CAD37\"},{\"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\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"7F361E1D-580F-4A2D-A509-7615F73167A1\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/2fae3129c0c08e72b1fe93e61fd8fd203252094a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/73a98cf79e4dbfa3d0c363e826c65aae089b313c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/aac871e493fc8809e60209d9899b1af07e9dbfc8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/ba0b09a2f327319e252d8f3032019b958c0a5cd9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f08adc5177bd4343df09033f62ab562c09ba7f7d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
      vulnrichment: {
         containers: "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-49986\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-22T13:31:52.405386Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-22T13:31:55.514Z\"}}], \"cna\": {\"title\": \"platform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5eba0141206e\", \"lessThan\": \"ba0b09a2f327\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"5eba0141206e\", \"lessThan\": \"aac871e493fc\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"5eba0141206e\", \"lessThan\": \"f08adc5177bd\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"5eba0141206e\", \"lessThan\": \"73a98cf79e4d\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"5eba0141206e\", \"lessThan\": \"2fae3129c0c0\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/platform/x86/x86-android-tablets/core.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.17\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.17\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.1.118\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"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-rc2\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/platform/x86/x86-android-tablets/core.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/ba0b09a2f327319e252d8f3032019b958c0a5cd9\"}, {\"url\": \"https://git.kernel.org/stable/c/aac871e493fc8809e60209d9899b1af07e9dbfc8\"}, {\"url\": \"https://git.kernel.org/stable/c/f08adc5177bd4343df09033f62ab562c09ba7f7d\"}, {\"url\": \"https://git.kernel.org/stable/c/73a98cf79e4dbfa3d0c363e826c65aae089b313c\"}, {\"url\": \"https://git.kernel.org/stable/c/2fae3129c0c08e72b1fe93e61fd8fd203252094a\"}], \"x_generator\": {\"engine\": \"bippy-8e903de6a542\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nplatform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors\\n\\nx86_android_tablet_remove() frees the pdevs[] array, so it should not\\nbe used after calling x86_android_tablet_remove().\\n\\nWhen platform_device_register() fails, store the pdevs[x] PTR_ERR() value\\ninto the local ret variable before calling x86_android_tablet_remove()\\nto avoid using pdevs[] after it has been freed.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-11-17T15:02:47.150Z\"}}}",
         cveMetadata: "{\"cveId\": \"CVE-2024-49986\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-11-17T15:02:47.150Z\", \"dateReserved\": \"2024-10-21T12:17:06.054Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T18:02:30.507Z\", \"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.