cve-2022-48663
Vulnerability from cvelistv5
Published
2024-04-28 13:01
Modified
2024-12-19 08:05
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: gpio: mockup: fix NULL pointer dereference when removing debugfs We now remove the device's debugfs entries when unbinding the driver. This now causes a NULL-pointer dereference on module exit because the platform devices are unregistered *after* the global debugfs directory has been recursively removed. Fix it by unregistering the devices first.
Impacted products
Vendor Product Version
Linux Linux Version: 3815e66c2183f3430490e450ba16779cf5214ec6
Version: 3a10e8edee2b45a654f1f7b05f747129ec84cf9d
Version: bc55c1677edbe86a1c66a35e800df47dff16ad61
Version: 303e6da99429510b1e4edf833afe90ac8542e747
Create a notification for this product.
   Linux Linux Version: 5.10.144   
Version: 5.15.69   
Version: 5.19.10   
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-03T15:17:55.854Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/bdea98b98f844bd8a983ca880893e509a8b4162f"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/18352095a0d581f6aeb1e9fc9d68cc0152cd64b4"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/af0bfabf06c74c260265c30ba81a34e7dec0e881"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2022-48663",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-10T15:45:58.565669Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-11T17:33:54.124Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpio/gpio-mockup.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "bdea98b98f844bd8a983ca880893e509a8b4162f",
              "status": "affected",
              "version": "3815e66c2183f3430490e450ba16779cf5214ec6",
              "versionType": "git"
            },
            {
              "lessThan": "18352095a0d581f6aeb1e9fc9d68cc0152cd64b4",
              "status": "affected",
              "version": "3a10e8edee2b45a654f1f7b05f747129ec84cf9d",
              "versionType": "git"
            },
            {
              "lessThan": "af0bfabf06c74c260265c30ba81a34e7dec0e881",
              "status": "affected",
              "version": "bc55c1677edbe86a1c66a35e800df47dff16ad61",
              "versionType": "git"
            },
            {
              "lessThan": "b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68",
              "status": "affected",
              "version": "303e6da99429510b1e4edf833afe90ac8542e747",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpio/gpio-mockup.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "5.10.146",
              "status": "affected",
              "version": "5.10.144",
              "versionType": "semver"
            },
            {
              "lessThan": "5.15.71",
              "status": "affected",
              "version": "5.15.69",
              "versionType": "semver"
            },
            {
              "lessThan": "5.19.12",
              "status": "affected",
              "version": "5.19.10",
              "versionType": "semver"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: mockup: fix NULL pointer dereference when removing debugfs\n\nWe now remove the device\u0027s debugfs entries when unbinding the driver.\nThis now causes a NULL-pointer dereference on module exit because the\nplatform devices are unregistered *after* the global debugfs directory\nhas been recursively removed. Fix it by unregistering the devices first."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2024-12-19T08:05:18.465Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/bdea98b98f844bd8a983ca880893e509a8b4162f"
        },
        {
          "url": "https://git.kernel.org/stable/c/18352095a0d581f6aeb1e9fc9d68cc0152cd64b4"
        },
        {
          "url": "https://git.kernel.org/stable/c/af0bfabf06c74c260265c30ba81a34e7dec0e881"
        },
        {
          "url": "https://git.kernel.org/stable/c/b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68"
        }
      ],
      "title": "gpio: mockup: fix NULL pointer dereference when removing debugfs",
      "x_generator": {
        "engine": "bippy-5f407fcff5a0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-48663",
    "datePublished": "2024-04-28T13:01:36.158Z",
    "dateReserved": "2024-02-25T13:44:28.320Z",
    "dateUpdated": "2024-12-19T08:05:18.465Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-48663\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-04-28T13:15:07.980\",\"lastModified\":\"2025-01-14T14:53:12.910\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ngpio: mockup: fix NULL pointer dereference when removing debugfs\\n\\nWe now remove the device\u0027s debugfs entries when unbinding the driver.\\nThis now causes a NULL-pointer dereference on module exit because the\\nplatform devices are unregistered *after* the global debugfs directory\\nhas been recursively removed. Fix it by unregistering the devices first.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se resolvi\u00f3 la siguiente vulnerabilidad: gpio: maqueta: corrige la desreferencia del puntero NULL al eliminar debugfs Ahora eliminamos las entradas debugfs del dispositivo al desvincular el controlador. Esto ahora provoca una desreferencia del puntero NULL al salir del m\u00f3dulo porque los dispositivos de la plataforma no est\u00e1n registrados *despu\u00e9s* de que el directorio global debugfs se haya eliminado de forma recursiva. Solucionarlo cancelando el registro de los dispositivos primero.\"}],\"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\":\"5.10.144\",\"versionEndExcluding\":\"5.10.146\",\"matchCriteriaId\":\"2EAE3A2C-3F60-40DD-AF52-8B1F528F2683\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.15.69\",\"versionEndExcluding\":\"5.15.71\",\"matchCriteriaId\":\"E59B6451-2447-4C1E-AF94-1971FD9D8B1B\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.19.10\",\"versionEndExcluding\":\"5.19.12\",\"matchCriteriaId\":\"D95C917A-1411-4409-A9B3-E2F4514E6A56\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/18352095a0d581f6aeb1e9fc9d68cc0152cd64b4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/af0bfabf06c74c260265c30ba81a34e7dec0e881\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/bdea98b98f844bd8a983ca880893e509a8b4162f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/18352095a0d581f6aeb1e9fc9d68cc0152cd64b4\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/af0bfabf06c74c260265c30ba81a34e7dec0e881\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/bdea98b98f844bd8a983ca880893e509a8b4162f\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]}]}}",
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/bdea98b98f844bd8a983ca880893e509a8b4162f\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/18352095a0d581f6aeb1e9fc9d68cc0152cd64b4\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/af0bfabf06c74c260265c30ba81a34e7dec0e881\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-03T15:17:55.854Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-48663\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T15:45:58.565669Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-11T12:42:19.515Z\"}}], \"cna\": {\"title\": \"gpio: mockup: fix NULL pointer dereference when removing debugfs\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"3815e66c2183f3430490e450ba16779cf5214ec6\", \"lessThan\": \"bdea98b98f844bd8a983ca880893e509a8b4162f\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"3a10e8edee2b45a654f1f7b05f747129ec84cf9d\", \"lessThan\": \"18352095a0d581f6aeb1e9fc9d68cc0152cd64b4\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"bc55c1677edbe86a1c66a35e800df47dff16ad61\", \"lessThan\": \"af0bfabf06c74c260265c30ba81a34e7dec0e881\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"303e6da99429510b1e4edf833afe90ac8542e747\", \"lessThan\": \"b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/gpio/gpio-mockup.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.10.144\", \"lessThan\": \"5.10.146\", \"versionType\": \"semver\"}, {\"status\": \"affected\", \"version\": \"5.15.69\", \"lessThan\": \"5.15.71\", \"versionType\": \"semver\"}, {\"status\": \"affected\", \"version\": \"5.19.10\", \"lessThan\": \"5.19.12\", \"versionType\": \"semver\"}], \"programFiles\": [\"drivers/gpio/gpio-mockup.c\"], \"defaultStatus\": \"unaffected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/bdea98b98f844bd8a983ca880893e509a8b4162f\"}, {\"url\": \"https://git.kernel.org/stable/c/18352095a0d581f6aeb1e9fc9d68cc0152cd64b4\"}, {\"url\": \"https://git.kernel.org/stable/c/af0bfabf06c74c260265c30ba81a34e7dec0e881\"}, {\"url\": \"https://git.kernel.org/stable/c/b7df41a6f79dfb18ba2203f8c5f0e9c0b9b57f68\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ngpio: mockup: fix NULL pointer dereference when removing debugfs\\n\\nWe now remove the device\u0027s debugfs entries when unbinding the driver.\\nThis now causes a NULL-pointer dereference on module exit because the\\nplatform devices are unregistered *after* the global debugfs directory\\nhas been recursively removed. Fix it by unregistering the devices first.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-12-19T08:05:18.465Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-48663\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-12-19T08:05:18.465Z\", \"dateReserved\": \"2024-02-25T13:44:28.320Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-04-28T13:01:36.158Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


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.